PulseAudio does not detect sound card correctly on X1 Carbon
Hey!
When compiling PulseAudio from 13.99.1 + cabd387e in Debian unstable with:
- kernel 5.5.7
- ALSA 1.2.2 (including UCM2 configuration files)
- SOF firmwares 1.4.2 from Alsa Project
on a X1 Carbon Gen7 with 00:1f.3 Audio device [0403]: Intel Corporation Cannon Point-LP High Definition Audio Controller [8086:9dc8] (rev 11)
, PulseAudio does not pick the sound card automatically:
mars 03 07:31:16 guybrush pulseaudio[1385]: E: [pulseaudio] module.c: Failed to load module "module-alsa-card" (argument: "device_id="0" name="pci-0000_00_1f.3-platform-skl_hda_dsp_generic" card_name="alsa_card.pci-0000_00_1f.3-platform-skl_hda_dsp_generic" 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.
mars 03 07:31:16 guybrush pulseaudio[1385]: W: [pulseaudio] alsa-ucm.c: UCM file does not specify 'PlaybackChannels' or 'CaptureChannels'for device HDMI3, assuming stereo duplex.
mars 03 07:31:16 guybrush pulseaudio[1385]: W: [pulseaudio] alsa-ucm.c: UCM file does not specify 'PlaybackChannels' or 'CaptureChannels'for device HDMI2, assuming stereo duplex.
mars 03 07:31:16 guybrush pulseaudio[1385]: W: [pulseaudio] alsa-ucm.c: UCM file does not specify 'PlaybackChannels' or 'CaptureChannels'for device HDMI1, assuming stereo duplex.
mars 03 07:31:16 guybrush pulseaudio[1385]: W: [pulseaudio] alsa-ucm.c: UCM file does not specify 'PlaybackChannels' or 'CaptureChannels'for device Headphones2, assuming stereo duplex.
mars 03 07:31:16 guybrush pulseaudio[1385]: W: [pulseaudio] alsa-ucm.c: UCM file does not specify 'PlaybackChannels' or 'CaptureChannels'for device Mic, assuming stereo duplex.
mars 03 07:31:16 guybrush pulseaudio[1385]: W: [pulseaudio] alsa-ucm.c: UCM file does not specify 'PlaybackChannels' or 'CaptureChannels'for device Speaker, assuming stereo duplex.
mars 03 07:31:16 guybrush pulseaudio[1385]: W: [pulseaudio] alsa-ucm.c: UCM file does not specify 'PlaybackChannels' or 'CaptureChannels'for device Headphones1, assuming stereo duplex.
mars 03 07:31:16 guybrush pulseaudio[1385]: E: [pulseaudio] module-alsa-card.c: Failed to find a working profile.
We have to add this to /etc/pulse/default.pa
to get it working:
load-module module-alsa-source device=hw:0,7 channels=4
load-module module-alsa-sink device=hw:0,0 channels=4
Then, it works fine. However, no profiles, no HDMI support, etc. It seems unclear if there is still work to do to support SOF devices. Some people are trying to copy UCM2 files to /usr/share/alsa/ucm
with various successes. Are there missing bits in the kernel/ALSA to make it work out-of-the-box?
Thanks.