View previous topic :: View next topic |
Author |
Message |
PoissonAerohead n00b
Joined: 07 Dec 2020 Posts: 25
|
Posted: Tue Apr 06, 2021 4:46 am Post subject: No Sound - aplay Cannot Open Any Device |
|
|
I recently made my way through a Gentoo install for a home built machine and have just about everything working except sound. The motherboard is micro ATX and so has the standard 3 rear port arrangement, along with a front mic and headphone port. The graphics card is a Radeon RX 550 with HDMI and DP. There is also a native motherboard HDMI, but the processor has no integrated graphics so that one is inactive. I know this question gets asked a lot over the years, but it looks like the causes are varied.
Relevant outputs:
Audio devices:
Code: | ~ $ lspci | grep -i audio
08:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Baffin HDMI/DP Audio [Radeon RX 550 640SP / RX 560/560X]
0a:00.4 Audio device: Advanced Micro Devices, Inc. [AMD] Starship/Matisse HD Audio Controller |
(Subset of lspci -nkk)
Code: | ...
08:00.0 0300: 1002:699f (rev c7)
Subsystem: 1da2:e367
Kernel driver in use: amdgpu
08:00.1 0403: 1002:aae0
Subsystem: 1da2:aae0
Kernel driver in use: snd_hda_intel
...
0a:00.4 0403: 1022:1487
Subsystem: 1565:824d
Kernel driver in use: snd_hda_intel
...
|
Devices according to aplay:
Code: | ~ $ aplay -l
**** List of PLAYBACK Hardware Devices ****
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
card 1: Generic [HD-Audio Generic], device 0: Generic Analog [Generic Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0 |
PCMs according to aplay:
Code: | aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
hdmi:CARD=HDMI,DEV=0
HDA ATI HDMI, HDMI 0
HDMI Audio Output
hdmi:CARD=HDMI,DEV=1
HDA ATI HDMI, HDMI 1
HDMI Audio Output
hdmi:CARD=HDMI,DEV=2
HDA ATI HDMI, HDMI 2
HDMI Audio Output
hdmi:CARD=HDMI,DEV=3
HDA ATI HDMI, HDMI 3
HDMI Audio Output
hdmi:CARD=HDMI,DEV=4
HDA ATI HDMI, HDMI 4
HDMI Audio Output
default:CARD=Generic
HD-Audio Generic, Generic Analog
Default Audio Device
sysdefault:CARD=Generic
HD-Audio Generic, Generic Analog
Default Audio Device
front:CARD=Generic,DEV=0
HD-Audio Generic, Generic Analog
Front output / input
surround21:CARD=Generic,DEV=0
HD-Audio Generic, Generic Analog
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Generic,DEV=0
HD-Audio Generic, Generic Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=Generic,DEV=0
HD-Audio Generic, Generic Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Generic,DEV=0
HD-Audio Generic, Generic Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Generic,DEV=0
HD-Audio Generic, Generic Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Generic,DEV=0
HD-Audio Generic, Generic Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers |
Devices according to the kernel:
Code: | ~ $ cat /proc/asound/devices
1: : sequencer
2: [ 0- 3]: digital audio playback
3: [ 0- 7]: digital audio playback
4: [ 1- 0]: digital audio playback
5: [ 1- 0]: digital audio capture
6: [ 1- 2]: digital audio capture
7: [ 1- 0]: hardware dependent
8: [ 0- 8]: digital audio playback
9: [ 0- 9]: digital audio playback
10: [ 0-10]: digital audio playback
11: [ 0- 0]: hardware dependent
12: [ 1] : control
13: [ 0] : control
33: : timer |
Cards according to the kernel:
Code: | ~ $ cat /proc/asound/cards
0 [HDMI ]: HDA-Intel - HDA ATI HDMI
HDA ATI HDMI at 0xfce60000 irq 61
1 [Generic ]: HDA-Intel - HD-Audio Generic
HD-Audio Generic at 0xfc900000 irq 63 |
Kernel card0 items:
Code: | ~ $ ls /proc/asound/card0/
codec#0 eld#0.0 eld#0.1 eld#0.2 eld#0.3 eld#0.4 id pcm10p pcm3p pcm7p pcm8p pcm9p |
(Card0 codec#0 is ATI R6xx HDMI)
Kernel card1 items:
Code: | ~ $ ls /proc/asound/card1/
codec#0 id pcm0c pcm0p pcm2c |
(Card1 codec#0 is Codec: Realtek Generic)
kernel logging:
Code: | ~ $ dmesg | grep -iEe 'audio|sound|snd'
[ 0.124046] ACPI: Added _OSI(Linux-Lenovo-NV-HDMI-Audio)
[ 0.142327] Advanced Linux Sound Architecture Driver Initialized.
[ 1.153794] snd_hda_intel 0000:08:00.1: Force to non-snoop mode
[ 1.155117] snd_hda_intel 0000:0a:00.4: enabling device (0000 -> 0002)
[ 1.158179] snd_hda_intel 0000:08:00.1: bound 0000:08:00.0 (ops 0xffffffffaf4cb100)
[ 1.166182] snd_hda_codec_generic hdaudioC1D0: autoconfig for Generic: line_outs=1 (0x21/0x0/0x0/0x0/0x0) type:line
[ 1.166996] snd_hda_codec_generic hdaudioC1D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[ 1.167805] snd_hda_codec_generic hdaudioC1D0: hp_outs=1 (0x17/0x0/0x0/0x0/0x0)
[ 1.168578] snd_hda_codec_generic hdaudioC1D0: mono: mono_out=0x0
[ 1.169344] snd_hda_codec_generic hdaudioC1D0: inputs:
[ 1.175738] snd_hda_codec_generic hdaudioC1D0: Rear Mic=0x18
[ 1.177152] snd_hda_codec_generic hdaudioC1D0: Front Mic=0x19
[ 1.178553] snd_hda_codec_generic hdaudioC1D0: Line=0x16
[ 1.191339] No soundcards found.
[ 1.197209] input: HD-Audio Generic Rear Mic as /devices/pci0000:00/0000:00:08.1/0000:0a:00.4/sound/card1/input8
[ 1.197977] input: HD-Audio Generic Front Mic as /devices/pci0000:00/0000:00:08.1/0000:0a:00.4/sound/card1/input9
[ 1.198743] input: HD-Audio Generic Line as /devices/pci0000:00/0000:00:08.1/0000:0a:00.4/sound/card1/input10
[ 1.199518] input: HD-Audio Generic Line Out as /devices/pci0000:00/0000:00:08.1/0000:0a:00.4/sound/card1/input11
[ 1.200279] input: HDA ATI HDMI HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:03.1/0000:08:00.1/sound/card0/input3
[ 1.201039] input: HD-Audio Generic Front Headphone as /devices/pci0000:00/0000:00:08.1/0000:0a:00.4/sound/card1/input12
[ 1.201811] input: HDA ATI HDMI HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:03.1/0000:08:00.1/sound/card0/input4
[ 1.202576] input: HDA ATI HDMI HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:03.1/0000:08:00.1/sound/card0/input5
[ 1.203361] input: HDA ATI HDMI HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:03.1/0000:08:00.1/sound/card0/input6
[ 1.204115] input: HDA ATI HDMI HDMI/DP,pcm=10 as /devices/pci0000:00/0000:00:03.1/0000:08:00.1/sound/card0/input |
The only thing weird about the last one is the "No soundcards found" message, but it looks like everything is there.
So here are some failed command outputs:
Code: | ~ $ aplay track01.cdda.wav
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.3.2-r1/work/alsa-lib-1.2.3.2/src/pcm/pcm_dmix.c:1090:(snd_pcm_dmix_open) unable to open slave
aplay: main:830: audio open error: No such file or directory
~ $ aplay -D HDMI track01.cdda.wav
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.3.2-r1/work/alsa-lib-1.2.3.2/src/pcm/pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM HDMI
aplay: main:830: audio open error: No such file or directory
~ $ aplay -D Generic track01.cdda.wav
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.3.2-r1/work/alsa-lib-1.2.3.2/src/pcm/pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM Generic
aplay: main:830: audio open error: No such file or directory |
Using sudo does not help this. Interestigly, alsamixer seems to be OK. As card0 is the default, alsamixer and alsamixer -c 0 are the same:
Code: | ~ $ alsamixer -c 0
┌───────────────────────────────────────────────────────────────────── AlsaMixer v1.2.3 ──────────────────────────────────────────────────────────────────────┐
│ Card: HDA ATI HDMI F1: Help │
│ Chip: ATI R6xx HDMI F2: System information │
│ View: F3:[Playback] F4: Capture F5: All F6: Select sound card │
│ Item: S/PDIF [Off] Esc: Exit │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ ┌──┐ ┌──┐ ┌──┐ ┌──┐ ┌──┐ │
│ │MM│ │MM│ │MM│ │MM│ │MM│ │
│ └──┘ └──┘ └──┘ └──┘ └──┘ │
│ < S/PDIF >S/PDIF 1 S/PDIF 2 S/PDIF 3 S/PDIF 4 │
│ │
│ │
│ │
│ │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ |
and:
Code: | ~ $ alsamixer -c 1
┌───────────────────────────────────────────────────────────────────── AlsaMixer v1.2.3 ──────────────────────────────────────────────────────────────────────┐
│ Card: HD-Audio Generic F1: Help │
│ Chip: Realtek Generic F2: System information │
│ View: F3:[Playback] F4: Capture F5: All F6: Select sound card │
│ Item: Master [dB gain: -65.25] Esc: Exit │
│ │
│ │
│ │
│ │
│ │
│ ┌──┐ ┌──┐ ┌──┐ ┌──┐ ┌──┐ ┌──┐ ┌──┐ │
│ │ │ │▒▒│ │ │ │▒▒│ │▒▒│ │▒▒│ │ │ │
│ │ │ │▒▒│ │ │ │▒▒│ │▒▒│ │▒▒│ │ │ │
│ │ │ │▒▒│ │ │ │▒▒│ │▒▒│ │▒▒│ │ │ │
│ │ │ │▒▒│ │ │ │▒▒│ │▒▒│ │▒▒│ │ │ │
│ │ │ │▒▒│ │ │ │▒▒│ │▒▒│ │▒▒│ │ │ │
│ │ │ │▒▒│ │ │ │▒▒│ │▒▒│ │▒▒│ │ │ │
│ │ │ │▒▒│ │ │ │▒▒│ │▒▒│ │▒▒│ │ │ │
│ │ │ │▒▒│ │ │ │▒▒│ │▒▒│ │▒▒│ │ │ │
│ │ │ │▒▒│ │ │ │▒▒│ │▒▒│ │▒▒│ │ │ │
│ │ │ │▒▒│ │ │ │▒▒│ │▒▒│ │▒▒│ │ │ │
│ │ │ │▒▒│ │ │ │▒▒│ │▒▒│ │▒▒│ │ │ │
│ │ │ │▒▒│ │ │ │▒▒│ │▒▒│ │▒▒│ │ │ │
│ │ │ │▒▒│ │ │ │▒▒│ │▒▒│ │▒▒│ │ │ │
│ │ │ │▒▒│ │ │ │▒▒│ │▒▒│ │▒▒│ │ │ │
│ │ │ │▒▒│ │ │ │▒▒│ │▒▒│ │▒▒│ │ │ │
│ │ │ │▒▒│ │ │ │▒▒│ │▒▒│ │▒▒│ │ │ │
│ │ │ │▒▒│ │ │ │▒▒│ │▒▒│ │▒▒│ │ │ │
│ │ │ │▒▒│ │ │ │▒▒│ │▒▒│ │▒▒│ │ │ │
│ ├──┤ ┌──┐ ├──┤ └──┘ ├──┤ ├──┤ ├──┤ Enabled 2ch └──┘ │
│ │MM│ │OO│ │OO│ │OO│ │OO│ │OO│ │
│ └──┘ └──┘ └──┘ └──┘ └──┘ └──┘ │
│ 0 100<>100 0<>0 100<>100 100 100 0<>0 │
│ < Master > Headphone Front Front Mic Boos Surround Center LFE Auto-Mute Mode Channel Mode Rear Mic Boost │
│ │
│ │
│ │
│ │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ |
I know they are muted, but that should not cause an error. What can I do to investigate the cause of this? |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54663 Location: 56N 3W
|
Posted: Tue Apr 06, 2021 9:43 am Post subject: |
|
|
PoissonAerohead,
That all looks "mostly harmless" except for the
Code: | Card: HD-Audio Generic
Chip: Realtek Generic | in alsomixer.
Please put your entire dmesg and kernel .config onto pastebins.
Logs are useful for what they show and for what they don't show that should be there but is missing.
We can't deduce the missing stuff from filtered logs.
wegetpaste can help with pastebins.
Which sound output do you want to use?
One of the outputs on the video card, or the on board analogue output? _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
gasmat n00b
Joined: 15 Feb 2021 Posts: 10 Location: Italy
|
Posted: Tue Apr 06, 2021 9:46 am Post subject: |
|
|
If you have already created the ~/.asoundrc configuration file (remember to delete it if you will install pulseaudio), you can try to add your user to the audio group:
Code: | sudo usermod -a -G audio <your username> |
Or you can try changing the output to another card... _________________ Chi vuol esser lieto sia, di doman non c'è certezza |
|
Back to top |
|
|
PoissonAerohead n00b
Joined: 07 Dec 2020 Posts: 25
|
Posted: Tue Apr 06, 2021 6:46 pm Post subject: |
|
|
gasmat: my user is already in group audio, but I tested with sudo as well anyway.
NeddySeagoon:
Quote: | Please put your entire dmesg and kernel .config onto pastebins. |
Please see the following links:
dmesg: https://dpaste.com/3WE36JZZ3
kernel config: https://dpaste.com/ANDCXN58B
Please let me know if there is anything else I can post or try.
Quote: | Which sound output do you want to use? |
As I am getting the computer up and running, ideally I would like to prove both outputs work. I can then select what I want in an asoundrc. There are positives to each. HDMI allows for loudness control with the TV remote. Apparently, though, only one program can use it at a time, unless you put a particular setting in asoundrc which will cause some quality degradation? Also, apparently the beginning of the audio is chopped up as the connection is made? I need to get it working to verify how big these issues these are. Using rear port analog sound is not as slick as HDMI, but may avoid these issues and I can always put an ordinary sound bar under the TV (I was attempting to test the rear sound port last night with basically a very cheap item like this). Any advice regarding this is welcome. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54663 Location: 56N 3W
|
Posted: Tue Apr 06, 2021 7:14 pm Post subject: |
|
|
PoissonAerohead,
Until you know which codec you need build all the codecs.
Code: | CONFIG_SND_HDA=y
CONFIG_SND_HDA_INTEL=y
# CONFIG_SND_HDA_INTEL_DETECT_DMIC is not set
CONFIG_SND_HDA_HWDEP=y
CONFIG_SND_HDA_RECONFIG=y
# CONFIG_SND_HDA_INPUT_BEEP is not set
CONFIG_SND_HDA_PATCH_LOADER=y
# CONFIG_SND_HDA_CODEC_REALTEK is not set
# CONFIG_SND_HDA_CODEC_ANALOG is not set
# CONFIG_SND_HDA_CODEC_SIGMATEL is not set
# CONFIG_SND_HDA_CODEC_VIA is not set
CONFIG_SND_HDA_CODEC_HDMI=y
# CONFIG_SND_HDA_CODEC_CIRRUS is not set
# CONFIG_SND_HDA_CODEC_CONEXANT is not set
# CONFIG_SND_HDA_CODEC_CA0110 is not set
# CONFIG_SND_HDA_CODEC_CA0132 is not set
# CONFIG_SND_HDA_CODEC_CMEDIA is not set
# CONFIG_SND_HDA_CODEC_SI3054 is not set
CONFIG_SND_HDA_GENERIC=y
CONFIG_SND_HDA_POWER_SAVE_DEFAULT=0 |
Code: | CONFIG_SND_HDA_CODEC_HDMI=y | will be right for the HDMI outputs.
The loosing the first few seconds on HDMI output, while the stream is opened is a real thing.
The 5.10 kernel has a hack which is equivalent to playing silence, which you da as follows.
Create a file /etc/local.d/play_silence.start with the following content.
Code: | #!/bin/bash
# due to a kernel bug, alsa takes a few seconds to open a
# stream to HDMI (all digital?) outputs, so the first
# few seconds of everything are lost.
# the work around is to continuosly play silence
# so that the sound stream is never closed.
aplay -c2 -r48000 -fS16_LE < /dev/zero & |
You will get dmix for free.
Rebuild your kernel and boot into the new kernel. Use to check the build time is newer than Mon Apr 5 17:54:33 PDT 2021 as that's the build time of the kernel that was running when you posted dmesg.
None of this stops HDMI working but you will probably need an /etc/asound.conf to route output to the right device.
As you say, all the HDMI outputs on your video card are muted. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
PoissonAerohead n00b
Joined: 07 Dec 2020 Posts: 25
|
Posted: Tue Apr 06, 2021 8:08 pm Post subject: |
|
|
I still have no sound but it definitely updated the Generic card (note the new chip name ALC891):
Code: | $ aplay -l
**** List of PLAYBACK Hardware Devices ****
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
card 1: Generic [HD-Audio Generic], device 0: ALC891 Analog [ALC891 Analog] |
Code: | ~ $ aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
hdmi:CARD=HDMI,DEV=0
HDA ATI HDMI, HDMI 0
HDMI Audio Output
hdmi:CARD=HDMI,DEV=1
HDA ATI HDMI, HDMI 1
HDMI Audio Output
hdmi:CARD=HDMI,DEV=2
HDA ATI HDMI, HDMI 2
HDMI Audio Output
hdmi:CARD=HDMI,DEV=3
HDA ATI HDMI, HDMI 3
HDMI Audio Output
hdmi:CARD=HDMI,DEV=4
HDA ATI HDMI, HDMI 4
HDMI Audio Output
default:CARD=Generic
HD-Audio Generic, ALC891 Analog
Default Audio Device
sysdefault:CARD=Generic
HD-Audio Generic, ALC891 Analog
Default Audio Device
front:CARD=Generic,DEV=0
HD-Audio Generic, ALC891 Analog
Front output / input
surround21:CARD=Generic,DEV=0
HD-Audio Generic, ALC891 Analog
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Generic,DEV=0
HD-Audio Generic, ALC891 Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=Generic,DEV=0
HD-Audio Generic, ALC891 Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Generic,DEV=0
HD-Audio Generic, ALC891 Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Generic,DEV=0
HD-Audio Generic, ALC891 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Generic,DEV=0
HD-Audio Generic, ALC891 Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers |
Code: | ~ $ cat /proc/asound/card1/codec#0
Codec: Realtek ALC891
... |
Code: | ~ $ alsamixer -c 1
┌──────────────────────────────────────────────────────────────────────────────────────── AlsaMixer v1.2.3 ────────────────────────────────────────────────────────────────────────────────────────┐
│ Card: HD-Audio Generic F1: Help │
│ Chip: Realtek ALC891 F2: System information │
│ View: F3:[Playback] F4: Capture F5: All F6: Select sound card │
│ Item: Master [dB gain: -20.25] Esc: Exit │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ ┌──┐ ┌──┐ ┌──┐ ┌──┐ ┌──┐ ┌──┐ ┌──┐ ┌──┐ ┌──┐ ┌──┐ │
│ │ │ │▒▒│ │ │ │ │ │▒▒│ │▒▒│ │▒▒│ │ │ │ │ │ │ │
│ │ │ │▒▒│ │ │ │ │ │▒▒│ │▒▒│ │▒▒│ │ │ │ │ │ │ │
│ │ │ │▒▒│ │ │ │ │ │▒▒│ │▒▒│ │▒▒│ │ │ │ │ │ │ │
│ │ │ │▒▒│ │ │ │ │ │▒▒│ │▒▒│ │▒▒│ │ │ │ │ │ │ │
│ │ │ │▒▒│ │ │ │ │ │▒▒│ │▒▒│ │▒▒│ │ │ │ │ │ │ │
│ │ │ │▒▒│ │ │ │ │ │▒▒│ │▒▒│ │▒▒│ │ │ │ │ │ │ │
│ │ │ │▒▒│ │ │ │ │ │▒▒│ │▒▒│ │▒▒│ │ │ │ │ │ │ │
│ │ │ │▒▒│ │ │ │ │ │▒▒│ │▒▒│ │▒▒│ │ │ │ │ │ │ │
│ │ │ │▒▒│ │ │ │ │ │▒▒│ │▒▒│ │▒▒│ │ │ │ │ │ │ │
│ │ │ │▒▒│ │ │ │ │ │▒▒│ │▒▒│ │▒▒│ │ │ │ │ │ │ │
│ │ │ │▒▒│ │ │ │ │ │▒▒│ │▒▒│ │▒▒│ │ │ │ │ │ │ │
│ │ │ │▒▒│ │ │ │ │ │▒▒│ │▒▒│ │▒▒│ │ │ │ │ │ │ │
│ │ │ │▒▒│ │ │ │ │ │▒▒│ │▒▒│ │▒▒│ │ │ │ │ │ │ │
│ │▒▒│ │▒▒│ │ │ │ │ │▒▒│ │▒▒│ │▒▒│ │ │ │ │ │ │ │
│ │▒▒│ │▒▒│ │ │ │ │ │▒▒│ │▒▒│ │▒▒│ │ │ │ │ │ │ │
│ │▒▒│ │▒▒│ │ │ │ │ │▒▒│ │▒▒│ │▒▒│ │ │ │ │ │ │ │
│ │▒▒│ │▒▒│ │ │ │ │ │▒▒│ │▒▒│ │▒▒│ │ │ │ │ │ │ │
│ │▒▒│ │▒▒│ │ │ │ │ │▒▒│ │▒▒│ │▒▒│ │ │ │ │ │ │ │
│ │▒▒│ │▒▒│ │ │ │ │ │▒▒│ │▒▒│ │▒▒│ │ │ │ │ │ │ │
│ │▒▒│ │▒▒│ │ │ │ │ │▒▒│ │▒▒│ │▒▒│ │ │ │ │ │ │ │
│ │▒▒│ │▒▒│ │ │ │ │ │▒▒│ │▒▒│ │▒▒│ │ │ │ │ │ │ │
│ │▒▒│ │▒▒│ │ │ │ │ │▒▒│ │▒▒│ │▒▒│ │ │ │ │ │ │ │
│ ├──┤ ┌──┐ ├──┤ ├──┤ └──┘ ├──┤ ├──┤ ├──┤ ├──┤ Enabled 2ch Disabled ├──┤ └──┘ │
│ │OO│ │OO│ │OO│ │MM│ │OO│ │OO│ │OO│ │MM│ │MM│ │
│ └──┘ └──┘ └──┘ └──┘ └──┘ └──┘ └──┘ └──┘ └──┘ │
│ 41 100<>100 0<>0 0<>0 100<>100 100 100 0<>0 0<>0 0<>0 │
│ < Master > Headphone Front Front Mic Front Mic Bo Surround Center LFE Line Auto-Mute Mo Channel Mode Loopback Mix Rear Mic Rear Mic Boo │
│ │
│ │
│ │
│ │
│ │
│ │
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ |
dmesg: https://dpaste.com/E7YY59Z98
kernel config: https://dpaste.com/CXTV7ZZ5G
Card 1 (Generic Analog) is still giving me the error. I figured out how to not get an error on Card 0, and I think it may just be getting the syntax right. There is still no sound:
Code: | ~ $ aplay track01.cdda.wav
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.3.2-r1/work/alsa-lib-1.2.3.2/src/pcm/pcm_dmix.c:1090:(snd_pcm_dmix_open) unable to open slave
aplay: main:830: audio open error: No such file or directory
~ $ aplay -D default track01.cdda.wav
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.3.2-r1/work/alsa-lib-1.2.3.2/src/pcm/pcm_dmix.c:1090:(snd_pcm_dmix_open) unable to open slave
aplay: main:830: audio open error: No such file or directory
~ $ aplay -D hdmi track01.cdda.wav
Playing WAVE 'track01.cdda.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
^CAborted by signal Interrupt... |
While playing to the hdmi device I went into alsamixer -c 0 and attempted to unmute each item individually (S/PDIF [0-4]?) and then all items simultaneously. I turned up the television volume and there was no sound. Note that I can to toggle between MM and 00 with the m key, but when it is unmuted, I cannot change the level. Is this normal for HDMI? 0 is no gain reduction anyway...
EDIT: I just plugged the TV into my newer laptop, which has an HDMI port. It is running Parabola, which is an Arch derivative. There is only 1 card, which has both the analog speaker and the HDMI outputs. The same thing happened (I muted the speaker and headphones and tried toggling all the S/PDIF items and no sound played on the TV). I am thinking there is something I do not understand about how to get sound to HDMI. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54663 Location: 56N 3W
|
Posted: Tue Apr 06, 2021 9:40 pm Post subject: |
|
|
PoissonAerohead,
Lets stick with HDMI as that's nearly there. Analogue is looking better too.
Here you have 5 HDMI outputs, they are devices 3, 7, 8, 9, and 10 on card 0.
I've removed card 1 for clarity.
Code: | ~ $ cat /proc/asound/devices
1: : sequencer
2: [ 0- 3]: digital audio playback
3: [ 0- 7]: digital audio playback
8: [ 0- 8]: digital audio playback
9: [ 0- 9]: digital audio playback
10: [ 0-10]: digital audio playback
11: [ 0- 0]: hardware dependent
13: [ 0] : control
33: : timer |
Unless you tell alsa differently, it sends output to cand0 devece0, which is not what you want. You need to send the output to one of the devices you have got. That's 3, 7, 8, 9, or 10
Its trial and error which one.
Make an /etc/asound.conf
Code: | pcm_slave.slave_rate48000Hz {
# 2: [ 1- 3]: digital audio playback
# 3: [ 1- 7]: digital audio playback
# 4: [ 1- 8]: digital audio playback Video Card DP
# 5: [ 1- 9]: digital audio playback
# 6: [ 1-10]: digital audio playback
pcm "hw:1,8"
# This is the rate the sound card does.
# Any random input rates are resampled to this.
rate 48000
}
pcm.rate44100Hz {
type plug
slave slave_rate48000Hz
}
defaults.pcm.card 1
defaults.pcm.device 8
defaults.ctl.card 1 |
This provides sample rate conversion to 48000 samples/sec, which is what HDMI sinks expect.
The comments reflect my system. You will need changes in 4 lines.
Code: | defaults.pcm.card 1
defaults.pcm.device 8
defaults.ctl.card 1 | You need card 0 in two places there, where I have card 1.
The is hw:<card>,<device> so you want card 0
The 8 in defaults.pcm.device 8 and in pcm "hw:1,8" is the device on the card that alsa will send output to.
You may not have 5 physical HDMI outputs on your video card but the electronics are there.
The /etc/asound.conf is read every time you play something, so there is no need to reboot to test.
Its correct that there are no volume controls on any digital outputs. A digital output is up to eight multiplexed channels. Volume contol would require demultiplexing, some digital multipliers then remultiplexing. That can't be done without changing the latency. Its both difficult and expensive, so its not implemented. Its much simpler once the audio has been converted back to the analogue domain. In short, use the controls on the sound system that is rendering the digital signal. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
PoissonAerohead n00b
Joined: 07 Dec 2020 Posts: 25
|
Posted: Wed Apr 07, 2021 12:22 am Post subject: |
|
|
Thanks, I found it (HDMI 9). Its weird that the card registers all 5 HDMI ports even though only the fourth exists. I should think the information is available through the gpu driver in some way too.
Quote: | Its correct that there are no volume controls on any digital outputs. A digital output is up to eight multiplexed channels. Volume contol would require demultiplexing, some digital multipliers then remultiplexing. That can't be done without changing the latency. Its both difficult and expensive, so its not implemented. Its much simpler once the audio has been converted back to the analogue domain. In short, use the controls on the sound system that is rendering the digital signal.
|
OK I thought so, makes perfect sense. Multiplication in the analog realm is basically at the speed of light in a semiconductor of a few millimeters, in the digital domain it is at least 100 clock cycles (plus decode and re-encode).
I saw in an old posting of this question that someone watched aplay in strace or some program like that to find out the incorrect path, so I will research that and see if I can determine what is wrong (or at least pose a more useful question to you). |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54663 Location: 56N 3W
|
Posted: Wed Apr 07, 2021 7:53 am Post subject: |
|
|
PoissonAerohead,
All five are in the HDMI electronics on the video card. You just have one physical connector.
When the masks are made to manufucture the chip, its step and repeat. Which is trivial.
Its allows the same chip to be used on video card with up to 5 outputs, rather than needing different chips or several chips.
The software can see all the electronics, even if its not all utilised.
Getting back to analogue
Code: | Card: HD-Audio Generic
Chip: Realtek ALC891 |
That HD-Audio Generic makes me nervous. I'll poke about your pastebins some more.
Don't lose your working for HDMI /etc/asound.conf because the approach is going to be make one work, then the other, which will break the first. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
PoissonAerohead n00b
Joined: 07 Dec 2020 Posts: 25
|
Posted: Fri Apr 09, 2021 11:46 pm Post subject: |
|
|
NeddySeagoon
Thanks, please let me know if there is any further information I can provide. You are right that it seems weird the card has no name when the chip clearly does now. Is there maybe somewhere I can get a vendor name/number? In a verbose version of lspci or directly from /sys or /proc? Maybe I canl try some installation media (Gentoo or Arch maybe) that have enormous kernels and see if I can get more info, and if so, check lsmod or something?
I'm not sure if this would be relevant, but I was thinking of maybe unplugging the HD Audio plug on the motherboard that goes to the font (there is a front headphone jack and mic input) to see if that cuts down on my options at all. Additionally, I do intend on running it in some kind of tracer or debugger to see exactly what it is trying to open, since the aplay message is a bit terse and uninformative.
I understand the manufacturing reason for the hardware to be the same across many devices. I'm just surprised that the card actually reports all 5. I would have expected the firmware on the card to just ignore the other 4, but I guess that is not how it works. Also, to be clear, the video card has 1 HDMI, 1 DP, and one DVI. I believe the DP also carries sound and i do not see a DP in the aplay output or in alsamixer. Does ALSA view this as the same as HDMI?
Yes, I'll be sure not to lose the working config I have for now. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54663 Location: 56N 3W
|
Posted: Sat Apr 10, 2021 10:14 am Post subject: |
|
|
PoissonAerohead,
Sorry, I dropped this thread. Yes, HDMI and DP both carry digital audio. That's two of your HDMI sound outputs.
Alsamixer cannot determine the physical connector. You can do the same trial and error with the display port if you like.
Getting back to analogue audio, there is no need to unplug anything. Be aware that alsa may mix up some of the control naming, so that Headphone and something else is swapped over.
It will do that regardless of what actually connected.
Lets recap with a self consistent data set. That will be so we can see the hardware. It has the Vendor and device IDs.
The full dmesg, so we can see what the kernel did as it detected your hardware.
The full kernel .config, in case we need to change it.
The last two items need to go onto a pastebin.
Something to check in the BIOS. Many system allow you to choose between AC97 and High Definition for the front panel connector.
AC97 is an old standard that has a different pin out to High Definition. If you have that option at all, choose High Definition. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
PoissonAerohead n00b
Joined: 07 Dec 2020 Posts: 25
|
Posted: Sun Apr 11, 2021 9:03 am Post subject: |
|
|
NeddySeagoon,
Quote: | Sorry, I dropped this thread. |
Nonsense, I'm more than satisfied with the tech support I'm getting for the price. In fact, I would pay double,
Code: | lspci -nnk
00:00.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Root Complex [1022:1480]
Subsystem: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Root Complex [1022:1450]
00:01.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge [1022:1482]
00:01.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse GPP Bridge [1022:1483]
Kernel driver in use: pcieport
00:01.3 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse GPP Bridge [1022:1483]
Kernel driver in use: pcieport
00:02.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge [1022:1482]
00:03.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge [1022:1482]
00:03.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse GPP Bridge [1022:1483]
Kernel driver in use: pcieport
00:04.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge [1022:1482]
00:05.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge [1022:1482]
00:07.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge [1022:1482]
00:07.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Internal PCIe GPP Bridge 0 to bus[E:B] [1022:1484]
Kernel driver in use: pcieport
00:08.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge [1022:1482]
00:08.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Internal PCIe GPP Bridge 0 to bus[E:B] [1022:1484]
Kernel driver in use: pcieport
00:08.2 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Internal PCIe GPP Bridge 0 to bus[E:B] [1022:1484]
Kernel driver in use: pcieport
00:08.3 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Internal PCIe GPP Bridge 0 to bus[E:B] [1022:1484]
Kernel driver in use: pcieport
00:14.0 SMBus [0c05]: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller [1022:790b] (rev 61)
Subsystem: Biostar Microtech Int'l Corp FCH SMBus Controller [1565:370b]
00:14.3 ISA bridge [0601]: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge [1022:790e] (rev 51)
Subsystem: Biostar Microtech Int'l Corp FCH LPC Bridge [1565:370b]
00:18.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 0 [1022:1440]
00:18.1 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 1 [1022:1441]
00:18.2 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 2 [1022:1442]
00:18.3 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 3 [1022:1443]
00:18.4 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 4 [1022:1444]
00:18.5 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 5 [1022:1445]
00:18.6 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 6 [1022:1446]
00:18.7 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 7 [1022:1447]
01:00.0 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Device [1022:43bc] (rev 02)
Subsystem: ASMedia Technology Inc. Device [1b21:1142]
Kernel driver in use: xhci_hcd
01:00.1 SATA controller [0106]: Advanced Micro Devices, Inc. [AMD] Device [1022:43b8] (rev 02)
Subsystem: ASMedia Technology Inc. Device [1b21:1062]
Kernel driver in use: ahci
01:00.2 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:43b3] (rev 02)
Kernel driver in use: pcieport
02:04.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] 300 Series Chipset PCIe Port [1022:43b4] (rev 02)
Kernel driver in use: pcieport
02:05.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] 300 Series Chipset PCIe Port [1022:43b4] (rev 02)
Kernel driver in use: pcieport
02:06.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] 300 Series Chipset PCIe Port [1022:43b4] (rev 02)
Kernel driver in use: pcieport
02:07.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] 300 Series Chipset PCIe Port [1022:43b4] (rev 02)
Kernel driver in use: pcieport
03:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 15)
Subsystem: Biostar Microtech Int'l Corp RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [1565:2312]
Kernel driver in use: r8169
07:00.0 Network controller [0280]: Qualcomm Atheros AR928X Wireless Network Adapter (PCI-Express) [168c:002a] (rev 01)
Subsystem: Askey Computer Corp. AR928X Wireless Network Adapter (PCI-Express) [144f:7156]
Kernel driver in use: ath9k
08:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Lexa PRO [Radeon 540/540X/550/550X / RX 540X/550/550X] [1002:699f] (rev c7)
Subsystem: Sapphire Technology Limited Lexa PRO [Radeon RX 550] [1da2:e367]
Kernel driver in use: amdgpu
08:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Baffin HDMI/DP Audio [Radeon RX 550 640SP / RX 560/560X] [1002:aae0]
Subsystem: Sapphire Technology Limited Baffin HDMI/DP Audio [Radeon RX 550 640SP / RX 560/560X] [1da2:aae0]
Kernel driver in use: snd_hda_intel
09:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Function [1022:148a]
Subsystem: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Function [1022:148a]
0a:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Reserved SPP [1022:1485]
Subsystem: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Reserved SPP [1022:1485]
0a:00.1 Encryption controller [1080]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Cryptographic Coprocessor PSPCPP [1022:1486]
Subsystem: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Cryptographic Coprocessor PSPCPP [1022:1486]
0a:00.3 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Matisse USB 3.0 Host Controller [1022:149c]
Subsystem: Biostar Microtech Int'l Corp Matisse USB 3.0 Host Controller [1565:370b]
Kernel driver in use: xhci_hcd
0a:00.4 Audio device [0403]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse HD Audio Controller [1022:1487]
Subsystem: Biostar Microtech Int'l Corp Starship/Matisse HD Audio Controller [1565:824d]
Kernel driver in use: snd_hda_intel
0b:00.0 SATA controller [0106]: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] [1022:7901] (rev 51)
Subsystem: Biostar Microtech Int'l Corp FCH SATA Controller [AHCI mode] [1565:550d]
Kernel driver in use: ahci
0c:00.0 SATA controller [0106]: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] [1022:7901] (rev 51)
Subsystem: Biostar Microtech Int'l Corp FCH SATA Controller [AHCI mode] [1565:550d]
Kernel driver in use: ahci |
It is picking up that the audio controller is at least Biostar (that is the motherboard manufacturer). See 0a:00.4.
Quote: | The full dmesg, so we can see what the kernel did as it detected your hardware. |
https://dpaste.com/6THPMBPGG
Quote: | The full kernel .config, in case we need to change it. |
https://dpaste.com/55A9Q4TZ5
For good measure:
Code: |
alsamixer -c 1
┌─────────────────────────────────────────────────────────────────── AlsaMixer v1.2.3 ───────────────────────────────────────────────────────────────────┐
│ Card: HD-Audio Generic F1: Help │
│ Chip: Realtek ALC891 F2: System information │
│ View: F3:[Playback] F4: Capture F5: All F6: Select sound card │
│ Item: Master [dB gain: -20.25] Esc: Exit │
│ │
│ │
│ │
│ │
│ ┌──┐ ┌──┐ ┌──┐ ┌──┐ ┌──┐ ┌──┐ ┌──┐ ┌──┐ ┌──┐ ┌──┐ │
│ │ │ │▒▒│ │ │ │ │ │▒▒│ │▒▒│ │▒▒│ │ │ │ │ │ │ │
│ │ │ │▒▒│ │ │ │ │ │▒▒│ │▒▒│ │▒▒│ │ │ │ │ │ │ │
│ │ │ │▒▒│ │ │ │ │ │▒▒│ │▒▒│ │▒▒│ │ │ │ │ │ │ │
│ │ │ │▒▒│ │ │ │ │ │▒▒│ │▒▒│ │▒▒│ │ │ │ │ │ │ │
│ │ │ │▒▒│ │ │ │ │ │▒▒│ │▒▒│ │▒▒│ │ │ │ │ │ │ │
│ │ │ │▒▒│ │ │ │ │ │▒▒│ │▒▒│ │▒▒│ │ │ │ │ │ │ │
│ │ │ │▒▒│ │ │ │ │ │▒▒│ │▒▒│ │▒▒│ │ │ │ │ │ │ │
│ │ │ │▒▒│ │ │ │ │ │▒▒│ │▒▒│ │▒▒│ │ │ │ │ │ │ │
│ │ │ │▒▒│ │ │ │ │ │▒▒│ │▒▒│ │▒▒│ │ │ │ │ │ │ │
│ │ │ │▒▒│ │ │ │ │ │▒▒│ │▒▒│ │▒▒│ │ │ │ │ │ │ │
│ │ │ │▒▒│ │ │ │ │ │▒▒│ │▒▒│ │▒▒│ │ │ │ │ │ │ │
│ │▒▒│ │▒▒│ │ │ │ │ │▒▒│ │▒▒│ │▒▒│ │ │ │ │ │ │ │
│ │▒▒│ │▒▒│ │ │ │ │ │▒▒│ │▒▒│ │▒▒│ │ │ │ │ │ │ │
│ │▒▒│ │▒▒│ │ │ │ │ │▒▒│ │▒▒│ │▒▒│ │ │ │ │ │ │ │
│ │▒▒│ │▒▒│ │ │ │ │ │▒▒│ │▒▒│ │▒▒│ │ │ │ │ │ │ │
│ │▒▒│ │▒▒│ │ │ │ │ │▒▒│ │▒▒│ │▒▒│ │ │ │ │ │ │ │
│ │▒▒│ │▒▒│ │ │ │ │ │▒▒│ │▒▒│ │▒▒│ │ │ │ │ │ │ │
│ │▒▒│ │▒▒│ │ │ │ │ │▒▒│ │▒▒│ │▒▒│ │ │ │ │ │ │ │
│ ├──┤ ┌──┐ ├──┤ ├──┤ └──┘ ├──┤ ├──┤ ├──┤ ├──┤ Enabled 2ch Disabled ├──┤ └──┘ │
│ │OO│ │OO│ │OO│ │MM│ │OO│ │OO│ │OO│ │MM│ │MM│ │
│ └──┘ └──┘ └──┘ └──┘ └──┘ └──┘ └──┘ └──┘ └──┘ │
│ 41 100<>100 0<>0 0<>0 100<>100 100 100 0<>0 0<>0 0<>0 │
│ < Master >Headphone Front Front Mic Front Mic Surround Center LFE Line Auto-Mute Channel M Loopback Rear Mic Rear Mic │
│ │
│ │
│ │
│ │
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ |
For what it's worth, the motherboard is small and so fits the 6 usual audio ports into 3 (blue, green, and pink only) https://biostar-usa.com/app/en-us/mb/introduction.php?S_ID=881. I'm not sure if this requires any special configuration (because the 6 usual ports actually clash with one another).
Additionally, this Vendor/Product combination (1565:824d) has turned up at this fedora forum, with a nice list of working platforms (Gentoo is not mentioned as it is not for the faint of heart). This gives me confidence that at least Arch and a few others can work with it. I may do a little Installer investigation like I described to see if I learn anything useful. I don't think their modprobe suggestions will help me, as I have everything built in. https://ask.fedoraproject.org/t/audio-output-problem-in-fedora-31/4456 |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54663 Location: 56N 3W
|
Posted: Sun Apr 11, 2021 3:40 pm Post subject: |
|
|
PoissonAerohead,
From the PCIe bus all looks well.
Code: | 08:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Baffin HDMI/DP Audio [Radeon RX 550 640SP / RX 560/560X] [1002:aae0]
Subsystem: Sapphire Technology Limited Baffin HDMI/DP Audio [Radeon RX 550 640SP / RX 560/560X] [1da2:aae0]
Kernel driver in use: snd_hda_intel
0a:00.4 Audio device [0403]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse HD Audio Controller [1022:1487]
Subsystem: Biostar Microtech Int'l Corp Starship/Matisse HD Audio Controller [1565:824d]
Kernel driver in use: snd_hda_intel |
The numbers that matter are the Vendor and Device IDs at the end of the first line of output for each device.
dmesg looks OK too. Code: | [ 1.374485] #0: HDA ATI HDMI at 0xfce60000 irq 61
[ 1.375351] #1: HD-Audio Generic at 0xfc900000 irq 63 | Just the generic does not sit well.
We know that you only need Code: | CONFIG_SND_HDA_CODEC_REALTEK=y
CONFIG_SND_HDA_CODEC_HDMI=y | for codecs. The others are just bloat.
alsamixer says Code: | Chip: Realtek ALC891 |
As you have lots of analogue sound inputs and outputs multiplexed into three jack sockets, the hardware may not auto detect the right multiplexer setting.
To fix that it needs module parameters passed to snd_hda_intel when it starts. See /usr/src/linux/Documentation/sound/hd-audio/models.rst for a list of model= parameters.
Eww. Your codec isn't listed.
The general idea in that you do trial and error with the model= list for your codec until you find one that works.
The hard way to do this is with sound support built into the kernel. Module parameters are passed on the kernel command line. See the top of /usr/src/linux/Documentation/admin-guide/kernel-parameters.rst
All those reboots get tiring. It may be faster to rebuild the kernel with snd_hda_intel and the codecs made as loadable modules so you can use Code: | modprobe -r snd_hda_intel
modprobe snd_hda_intel model=<next_on_list> | to find one that work.
You need a model list, or maybe one of the other ALC ones work.
It gets a little more complex too. The analogue sound card is card1, so you need an /etc/asound.conf to redirect output to card1.
If you have never tested with a suitable /etc/asound.conf, maybe it just works :) _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|