Incomplete sound device detection in PulseAudio with alsa-lib 1.2.5
alsa-project/alsa-lib issue #143 was opened from foutrelis:
(Copying my comments over from #142 since it appears to be a different issue to that one. Sorry for the noise there!)
After upgrading to alsa-lib 1.2.5 Chromium stopped playing audio until pulseaudio was restarted. Upon closer inspection, pactl list cards is now missing the HDA Intel HDMI card and only shows the HDA Intel PCH one.
Some error messages I've gathered:
- After upgrading to alsa-lib and before restarting pulseaudio, attempting to play a video in Chromium would result in:
pulseaudio[625]: Error opening PCM device front:0: Invalid argument
- Restarting pulseaudio with alsa-lib 1.2.5 installed logs the following to the journal:
``` pulseaudio[66345]: Failed to find a working profile. pulseaudio[66345]: Failed to load module "module-alsa-card" (argument: "device_id="1" name="pci-0000_00_03.0" card_name="alsa_card.pci-0000_00_03.0" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes avoid_resampling=no card_properties="module-udev-detect.discovered=1""): initialization failed. ```
Git bisect points to commit 63f7745be504e447923f2cde421177a2fca99340 as the first commit that results in the Failed to find a working profile error.
After restarting pulseaudio with alsa-lib 1.2.5 installed, it appears that pactl list cards shows one fewer cards on my laptop which has this audio hardware:
``` $ lspci | grep Audio 00:03.0 Audio device: Intel Corporation Haswell-ULT HD Audio Controller (rev 0b) 00:1b.0 Audio device: Intel Corporation 8 Series HD Audio Controller (rev 04) ```
[alsa-lib-1.2.4-pactl-list-cards.txt](https://github.com/alsa-project/alsa-lib/files/6575475/alsa-lib-1.2.4-pactl-list-cards.txt) [alsa-lib-1.2.5-pactl-list-cards.txt](https://github.com/alsa-project/alsa-lib/files/6575476/alsa-lib-1.2.5-pactl-list-cards.txt)
pulseaudio -v output:
[pulseaudio-verbose.txt](https://github.com/alsa-project/alsa-lib/files/6577650/pulseaudio-verbose.txt)
Issue URL : https://github.com/alsa-project/alsa-lib/issues/143
Repository URL: https://github.com/alsa-project/alsa-lib