Re: any hope for alsamixer controls for AMD RX 5500/5500M GPU?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Alan, thank you for the quick and helpful reply.  After sending
the initial message to the list, I discovered that the GPU's
sound device has hideous latency when doing things like jumping
ahead or backward in mplayer.  Worse, when pausing and resuming
mplayer, a substantial fraction of a second of sound is lost.
For my use cases, those are intolerable problems with that sound
device.  I'll have to abandon the idea of using sound output
through the GPU.

On the off chance it might help someone else with a similar GPU
sound issue, here's a summary of what I found through "aplay -l"
and "amixer ...".  Comparing the below results vs. the
motherboard sound 'card' that does show a volume control in
alsamixer, it would appear the GPU's sound device does not
provide volume control at all.

First, "aplay -l" does show the devices numbered oddly:

card 0: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA ATI HDMI], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA ATI HDMI], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA ATI HDMI], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA ATI HDMI], device 10: HDMI 4 [HDMI 4]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Doing "amixer -c 0" gives this:

Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'IEC958',1
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'IEC958',2
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'IEC958',3
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'IEC958',4
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]

Doing "amixer -c 0 info" gives this:

Card hw:0 'HDMI'/'HDA ATI HDMI at 0xfcea0000 irq 107'
  Mixer name    : 'ATI R6xx HDMI'
  Components    : 'HDA:1002aa01,00aa0100,00100700'
  Controls      : 35
  Simple ctrls  : 5

Doing "amixer -c 0 scontrols" gives this:

Simple mixer control 'IEC958',0
Simple mixer control 'IEC958',1
Simple mixer control 'IEC958',2
Simple mixer control 'IEC958',3
Simple mixer control 'IEC958',4

Doing "amixer -c 0 controls" gives this:

numid=25,iface=CARD,name='HDMI/DP,pcm=10 Jack'
numid=1,iface=CARD,name='HDMI/DP,pcm=3 Jack'
numid=7,iface=CARD,name='HDMI/DP,pcm=7 Jack'
numid=13,iface=CARD,name='HDMI/DP,pcm=8 Jack'
numid=19,iface=CARD,name='HDMI/DP,pcm=9 Jack'
numid=2,iface=MIXER,name='IEC958 Playback Con Mask'
numid=8,iface=MIXER,name='IEC958 Playback Con Mask',index=1
numid=14,iface=MIXER,name='IEC958 Playback Con Mask',index=2
numid=20,iface=MIXER,name='IEC958 Playback Con Mask',index=3
numid=26,iface=MIXER,name='IEC958 Playback Con Mask',index=4
numid=3,iface=MIXER,name='IEC958 Playback Pro Mask'
numid=9,iface=MIXER,name='IEC958 Playback Pro Mask',index=1
numid=15,iface=MIXER,name='IEC958 Playback Pro Mask',index=2
numid=21,iface=MIXER,name='IEC958 Playback Pro Mask',index=3
numid=27,iface=MIXER,name='IEC958 Playback Pro Mask',index=4
numid=4,iface=MIXER,name='IEC958 Playback Default'
numid=10,iface=MIXER,name='IEC958 Playback Default',index=1
numid=16,iface=MIXER,name='IEC958 Playback Default',index=2
numid=22,iface=MIXER,name='IEC958 Playback Default',index=3
numid=28,iface=MIXER,name='IEC958 Playback Default',index=4
numid=5,iface=MIXER,name='IEC958 Playback Switch'
numid=11,iface=MIXER,name='IEC958 Playback Switch',index=1
numid=17,iface=MIXER,name='IEC958 Playback Switch',index=2
numid=23,iface=MIXER,name='IEC958 Playback Switch',index=3
numid=29,iface=MIXER,name='IEC958 Playback Switch',index=4
numid=6,iface=PCM,name='ELD',device=3
numid=31,iface=PCM,name='Playback Channel Map',device=3
numid=12,iface=PCM,name='ELD',device=7
numid=32,iface=PCM,name='Playback Channel Map',device=7
numid=18,iface=PCM,name='ELD',device=8
numid=33,iface=PCM,name='Playback Channel Map',device=8
numid=24,iface=PCM,name='ELD',device=9
numid=34,iface=PCM,name='Playback Channel Map',device=9
numid=30,iface=PCM,name='ELD',device=10
numid=35,iface=PCM,name='Playback Channel Map',device=10

Thanks,

Robert



-------- Original Message --------
> From: Alan Corey <alan01346@xxxxxxxxx>
> Date: Sun, 29 May 2022 02:30:50 -0400
> Message-ID: <CAOh3dDa87mZNYr6Sab9n7BUK3JvUeb2bQyUkyaSwDFP8EhEYTQ@xxxxxxxxxxxxxx>
> Subject: Re:  any hope for alsamixer controls for AMD RX 5500/5500M GPU?
> To: rm.riches@xxxxxxxxxxxxxx
> Cc: ALSA-User <Alsa-user@xxxxxxxxxxxxxxxxxxxxx>


> Use amixer, not alsamixer at first.  It lets you see devices a different
> way.
> 
> I remember at least 1 device where something started numbering at 0 and
> something else at 1.  If it starts at 1, 0 will be invalid, but you can try
> going the other way.  Compare going off the end one way with being just on
> the wrong pin.
> 
> 
> On Sat, May 28, 2022, 11:23 PM Robert M. Riches Jr. <
> rm.riches@xxxxxxxxxxxxxx> wrote:
> 
> > Is there any hope of getting alsamixer controls for an AMD RX
> > 5500/5500M GPU?
> >
> > I'm running Devuan Chimaera with kernel 5.10.0-14-amd64
> > and the version numbers on most "*alsa*" packages between
> > 1.2.4-1 and 1.2.4-2.  I am _NOT_ running PulseAudio.
> >
> > My GPU shows up to "lspci -nn" as this:
> >
> > 0b:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc.
> > [AMD/ATI] Navi 14 [Radeon RX 5500/5500M / Pro 5500M] [1002:7340] (rev c5)
> >
> > After switching from DisplayPort-to-DVI to DisplayPort-to-HDMI
> > to drive the visual side of the monitor, I had to switch to
> > sending sound output through the GPU rather than the motherboard
> > audio device.  Now, alsamixer does not show a volume control.
> >
> > This is my current .asoundrc file:
> >
> > vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv cut here
> > vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
> > pcm.Generic { type hw; card Generic; }
> > ctl.Generic { type hw; card Generic; }
> > pcm.HDMI { type hw; card HDMI device 8; }
> > ctl.HDMI { type hw; card HDMI; }
> > pcm.!default {
> >   type plug
> >   slave.pcm "HDMI"
> > }
> > ctl.!default ctl.HDMI
> > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cut here
> > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> >
> > If I add the "device 8" part to the ctl.HDMI line, alsamixer
> > refuses to run:
> >     cannot open mixer: Invalid argument
> >
> > Is there any hope of getting alsamixer to show a volume control
> > for that audio device?  Or, is the hardware design such that the
> > volume control and so forth would need to be done in software
> > (as in PulseAudio)?  (If the latter, I'll probably have to plug
> > in a set of separate speakers and go back to the motherboard's
> > audio device.)
> >
> > Thanks,
> >
> > Robert
> >
> >
> > _______________________________________________
> > Alsa-user mailing list
> > Alsa-user@xxxxxxxxxxxxxxxxxxxxx
> > https://lists.sourceforge.net/lists/listinfo/alsa-user


_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user



[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux