Hello Guys,
I’m facing a problem with the Audio Block on an " Generic x86_64 (legacy MBR)" Base Image,
The Problem is that often times the sound card for HDMI is not detected. We have a custom audio block where the only change is that we added this line to the pulseaudio/block.pa file:
set-card-profile 0 output:hdmi-stereo
This works fine sometimes. But often i get the following error:
audio E: [pulseaudio] main.c: No card found by this name or index.
audio E: [pulseaudio] main.c: Sink alsa_output.hda-intel.hdmi-stereo does not exist.
When i run cat /proc/asound/cards, this is the output:
0 [hda-intel ]: HDA-Intel - HDA Intel PCH
HDA Intel PCH at 0x4000100000 irq 147
When i run “aplay --list-pcms” to check if the sound card is detected, i can see it.
Discard all samples (playback) or generate zero samples (capture)
default:CARD=hda-intel
HDA Intel PCH, ALC897 Analog
Default Audio Device
sysdefault:CARD=hda-intel
HDA Intel PCH, ALC897 Analog
Default Audio Device
front:CARD=hda-intel,DEV=0
HDA Intel PCH, ALC897 Analog
Front output / input
surround21:CARD=hda-intel,DEV=0
HDA Intel PCH, ALC897 Analog
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=hda-intel,DEV=0
HDA Intel PCH, ALC897 Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=hda-intel,DEV=0
HDA Intel PCH, ALC897 Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=hda-intel,DEV=0
HDA Intel PCH, ALC897 Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=hda-intel,DEV=0
HDA Intel PCH, ALC897 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=hda-intel,DEV=0
HDA Intel PCH, ALC897 Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
hdmi:CARD=hda-intel,DEV=0
HDA Intel PCH, HDMI 0
HDMI Audio Output
hdmi:CARD=hda-intel,DEV=1
HDA Intel PCH, HDMI 1
HDMI Audio Output
hdmi:CARD=hda-intel,DEV=2
HDA Intel PCH, HDMI 2
HDMI Audio Output
hdmi:CARD=hda-intel,DEV=3
HDA Intel PCH, HDMI 3
HDMI Audio Output
hdmi:CARD=hda-intel,DEV=4
HDA Intel PCH, HDMI 4
HDMI Audio Output
I can also play a test sound via: speaker-test -Dhdmi:CARD=hda-intel -c 6
. and this works fine.
So i can’t really see the problem here. The sound card is there, the connection works, and i’m able to play a test sound. But pulseaudio just doesn’t detect the source and sink?
I would greatly appreciate any help here, this is a problem that has bugged us for ages.
Thanks you guys