Dear Debian community,
I'm running Bookworm with XFCE; Linux version 6.1.0-15-amd64
(debian-ker...@lists.debian.org) (gcc-12 (Debian 12.2.0-14) 12.2.0, GNU
ld (GNU Binutils for Debian) 2.40) and since yesterday, I cannot seem to
use the analog audio card any more.
The card isn't showing up in `pavucontrol` or in `aplay` and `arecord`:
```
cgelinek@gar:/tmp$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 2: PCH_1 [HDA Intel PCH], device 3: HDMI 0 [Q32V3WG5]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: PCH_1 [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: PCH_1 [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: PCH_1 [HDA Intel PCH], device 9: HDMI 3 [HDMI 3]
Subdevices: 1/1
Subdevice #0: subdevice #0
cgelinek@gar:/tmp$ arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: U0x46d0x825 [USB Device 0x46d:0x825], device 0: USB Audio [USB
Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
cgelinek@gar:/tmp$ aplay -L | grep -A 1 default
sysdefault
Default Audio Device
--
default
Default ALSA Output (currently PipeWire Media Server)
```
Note that the USB Audio device is a webcam and its microphone is
working. I don't have speakers on my monitors, so I can't test the HDMI
playback devices. The analog devices (front audio, line-in/out) are now
completely missing.
Other debug info:
```
cgelinek@gar:/tmp$ cat /proc/asound/modules
0 snd_usb_audio
1 snd_hda_intel
2 snd_hda_intel
cgelinek@gar:/tmp$ sudo lspci -v | grep -A7 -i "audio"
00:1f.3 Audio device: Intel Corporation Device 7a50 (rev 11)
DeviceName: Onboard - Sound
Subsystem: Micro-Star International Co., Ltd. [MSI] Device 9e02
Flags: bus master, fast devsel, latency 32, IRQ 159, IOMMU group 10
Memory at 4201420000 (64-bit, non-prefetchable) [size=16K]
Memory at 4201300000 (64-bit, non-prefetchable) [size=1M]
Capabilities: [50] Power Management version 3
Capabilities: [80] Vendor Specific Information: Len=14 <?>
--
04:00.0 Audio device: Intel Corporation DG2 Audio Controller
Subsystem: Intel Corporation DG2 Audio Controller
Flags: bus master, fast devsel, latency 0, IRQ 160, IOMMU group 15
Memory at 81300000 (64-bit, non-prefetchable) [size=16K]
Capabilities: [50] Power Management version 3
Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [70] Express Endpoint, MSI 00
Capabilities: [100] Latency Tolerance Reporting
Kernel driver in use: snd_hda_intel
cgelinek@gar:/tmp$ lsof /dev/snd/*
lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1007/gvfs
Output information may be incomplete.
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
pipewire 1764 cgelinek 48u CHR 116,1 0t0 381 /dev/snd/seq
pipewire 1764 cgelinek 49u CHR 116,1 0t0 381 /dev/snd/seq
wireplumb 1766 cgelinek 32u CHR 116,10 0t0 788 /dev/snd/controlC0
wireplumb 1766 cgelinek 34u CHR 116,8 0t0 769 /dev/snd/controlC2
```
PipeWire and its PulseAudio interface seem to be running OK:
```
cgelinek@gar:/tmp$ pactl info | grep '^Server Name'
Server Name: PulseAudio (on PipeWire 0.3.65)
cgelinek@gar:/tmp$ for s in wireplumber pipewire-pulse.service
pipewire-pulse.socket ; do
systemctl --user status $s |head -n3
done
● wireplumber.service - Multimedia Service Session Manager
Loaded: loaded (/usr/lib/systemd/user/wireplumber.service;
enabled; preset: enabled)
Active: active (running) since Wed 2023-12-20 09:51:24 ACDT; 1h
43min ago
● pipewire-pulse.service - PipeWire PulseAudio
Loaded: loaded (/usr/lib/systemd/user/pipewire-pulse.service;
enabled; preset: enabled)
Active: active (running) since Wed 2023-12-20 09:51:24 ACDT; 1h
43min ago
● pipewire-pulse.socket - PipeWire PulseAudio
Loaded: loaded (/usr/lib/systemd/user/pipewire-pulse.socket;
enabled; preset: enabled)
Active: active (running) since Wed 2023-12-20 09:51:24 ACDT; 1h
43min ago
cgelinek@gar:/tmp$ aplay -L | grep -A 1 default
sysdefault
Default Audio Device
--
default
Default ALSA Output (currently PipeWire Media Server)
```
...but there is [a known
issue](https://wiki.debian.org/PipeWire#pacmd_fails_with_.22No_PulseAudio_daemon_running.22)
with `pacmd` - `pactl` works but also doesn't show the analog audio
interface I'm interested in:
```
cgelinek@gar:/tmp$ pacmd list-sinks
No PulseAudio daemon running, or not running as session daemon.
cgelinek@gar:/tmp$ pactl list short
1 libpipewire-module-rt {
nice.level = -11
#rt.prio = 88
#rt.time.soft = -1
#rt.time.hard = -1
}
2 libpipewire-module-protocol-native
3 libpipewire-module-profiler
5 libpipewire-module-metadata
7 libpipewire-module-spa-device-factory
9 libpipewire-module-spa-node-factory
11 libpipewire-module-client-node
13 libpipewire-module-client-device
15 libpipewire-module-portal
16 libpipewire-module-access {
# access.allowed to list an array of paths of allowed
# apps.
#access.allowed = [
# /usr/bin/pipewire-media-session
#]
# An array of rejected paths.
#access.rejected = [ ]
# An array of paths with restricted access.
#access.restricted = [ ]
# Anything not in the above lists gets assigned the
# access.force permission.
#access.force = flatpak
}
17 libpipewire-module-adapter
19 libpipewire-module-link-factory
21 libpipewire-module-session-manager
536870912 module-always-sink
50 alsa_output.pci-0000_04_00.0.pro-output-3 PipeWire s32le 2ch
48000Hz IDLE
51 alsa_output.pci-0000_04_00.0.pro-output-7 PipeWire s32le 8ch
48000Hz IDLE
52 alsa_output.pci-0000_04_00.0.pro-output-8 PipeWire s32le 8ch
48000Hz IDLE
53 alsa_output.pci-0000_04_00.0.pro-output-9 PipeWire s32le 8ch
48000Hz IDLE
50 alsa_output.pci-0000_04_00.0.pro-output-3.monitor PipeWire
s32le 2ch 48000Hz RUNNING
51 alsa_output.pci-0000_04_00.0.pro-output-7.monitor PipeWire
s32le 8ch 48000Hz RUNNING
52 alsa_output.pci-0000_04_00.0.pro-output-8.monitor PipeWire
s32le 8ch 48000Hz RUNNING
53 alsa_output.pci-0000_04_00.0.pro-output-9.monitor PipeWire
s32le 8ch 48000Hz RUNNING
54 alsa_input.usb-046d_0825_2F75F230-02.pro-input-0 PipeWire s16le
1ch 48000Hz RUNNING
152 50 151 PipeWire float32le 1ch 25Hz
153 51 151 PipeWire float32le 1ch 25Hz
154 52 151 PipeWire float32le 1ch 25Hz
155 53 151 PipeWire float32le 1ch 25Hz
156 54 151 PipeWire float32le 1ch 25Hz
31 PipeWire pipewire
32 PipeWire wireplumber
33 PipeWire wireplumber
108 PipeWire xdg-desktop-portal
109 PipeWire wrapper-2.0
114 PipeWire chromium
151 PipeWire pavucontrol
194 PipeWire pactl
42 alsa_card.pci-0000_04_00.0 alsa
43 alsa_card.usb-046d_0825_2F75F230-02 alsa
```
The command `sudo journalctl | grep -E '^-- Boot|Linux
version|snd_hda_intel|COMMAND=/usr/bin/apt' | less`
shows that the last boot without `no codecs found!` error was on Dec 18
14:42:21:
```
-- Boot d136ca76e4ea40a9a834eab9893bb6e6 --
Dec 18 14:42:21 gar kernel: Linux version 6.1.0-15-amd64
(debian-ker...@lists.debian.org) (gcc-12 (Debian 12.2.0-14) 12.2.0, GNU
ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT_DYNAMIC Debian
6.1.66-1 (2023-12-09)
Dec 18 14:42:22 gar kernel: snd_hda_intel 0000:00:1f.3: enabling device
(0000 -> 0002)
Dec 18 14:42:22 gar kernel: snd_hda_intel 0000:04:00.0: enabling device
(0000 -> 0002)
Dec 18 14:42:22 gar kernel: snd_hda_intel 0000:04:00.0: bound
0000:03:00.0 (ops i915_audio_component_bind_ops [i915])
Dec 18 14:42:22 gar kernel: snd_hda_intel 0000:04:00.0: Unknown capability 0
Dec 18 14:55:54 gar sudo[5634]: cgelinek : TTY=pts/0 ; PWD=/tmp ;
USER=root ; COMMAND=/usr/bin/apt update
Dec 18 14:56:02 gar sudo[5882]: cgelinek : TTY=pts/0 ; PWD=/tmp ;
USER=root ; COMMAND=/usr/bin/apt upgrade
Dec 18 15:05:44 gar sudo[9537]: cgelinek : TTY=pts/1 ; PWD=/tmp ;
USER=root ; COMMAND=/usr/bin/apt install lxi-tools
Dec 19 12:57:03 gar sudo[292080]: cgelinek : TTY=pts/1 ; PWD=/tmp ;
USER=root ; COMMAND=/usr/bin/apt install dostools mtools
Dec 19 12:57:09 gar sudo[292118]: cgelinek : TTY=pts/1 ; PWD=/tmp ;
USER=root ; COMMAND=/usr/bin/apt install dosfstools mtools
-- Boot 04775633c9404c2397019b8c9f7096bf --
Dec 19 13:37:16 gar kernel: Linux version 6.1.0-15-amd64
(debian-ker...@lists.debian.org) (gcc-12 (Debian 12.2.0-14) 12.2.0, GNU
ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT_DYNAMIC Debian
6.1.66-1 (2023-12-09)
Dec 19 13:37:16 gar kernel: snd_hda_intel 0000:00:1f.3: enabling device
(0000 -> 0002)
Dec 19 13:37:16 gar kernel: snd_hda_intel 0000:04:00.0: enabling device
(0000 -> 0002)
Dec 19 13:37:16 gar kernel: snd_hda_intel 0000:04:00.0: bound
0000:03:00.0 (ops i915_audio_component_bind_ops [i915])
Dec 19 13:37:16 gar kernel: snd_hda_intel 0000:00:1f.3: no codecs found!
Dec 19 13:37:16 gar kernel: snd_hda_intel 0000:04:00.0: Unknown capability 0
Dec 19 13:47:56 gar sudo[7579]: cgelinek : TTY=pts/0 ; PWD=/tmp ;
USER=root ; COMMAND=/usr/bin/apt install fwupdate
Dec 19 13:57:49 gar sudo[10925]: cgelinek : TTY=pts/0 ; PWD=/tmp ;
USER=root ; COMMAND=/usr/bin/apt update
<~~snip~~>
Dec 19 14:06:44 gar sudo[16948]: cgelinek : TTY=pts/0 ; PWD=/tmp ;
USER=root ; COMMAND=/usr/bin/apt full-upgrade
Dec 19 14:07:10 gar sudo[17104]: cgelinek : TTY=pts/0 ; PWD=/tmp ;
USER=root ; COMMAND=/usr/bin/apt update
Dec 19 14:07:14 gar sudo[17330]: cgelinek : TTY=pts/0 ; PWD=/tmp ;
USER=root ; COMMAND=/usr/bin/apt upgrade
Dec 19 14:25:40 gar sudo[21679]: cgelinek : TTY=pts/1 ; PWD=/tmp ;
USER=root ; COMMAND=/usr/bin/apt install intel-microcode
-- Boot 8d6dfd16e4fe4f798897e0c0b251ffa0 --
Dec 19 14:30:24 gar kernel: Linux version 6.1.0-15-amd64
(debian-ker...@lists.debian.org) (gcc-12 (Debian 12.2.0-14) 12.2.0, GNU
ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT_DYNAMIC Debian
6.1.66-1 (2023-12-09)
Dec 19 14:30:24 gar kernel: snd_hda_intel 0000:00:1f.3: enabling device
(0000 -> 0002)
Dec 19 14:30:24 gar kernel: snd_hda_intel 0000:04:00.0: enabling device
(0000 -> 0002)
Dec 19 14:30:24 gar kernel: snd_hda_intel 0000:00:1f.3: no codecs found!
Dec 19 14:30:24 gar kernel: snd_hda_intel 0000:04:00.0: bound
0000:03:00.0 (ops i915_audio_component_bind_ops [i915])
Dec 19 14:30:24 gar kernel: snd_hda_intel 0000:04:00.0: Unknown capability 0
-- Boot 5fa333ac6b6c4b94a14923ea4e37e7e5 --
Dec 19 14:31:21 gar kernel: Linux version 6.1.0-15-amd64
(debian-ker...@lists.debian.org) (gcc-12 (Debian 12.2.0-14) 12.2.0, GNU
ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT_DYNAMIC Debian
6.1.66-1 (2023-12-09)
Dec 19 14:31:22 gar kernel: snd_hda_intel 0000:00:1f.3: enabling device
(0000 -> 0002)
Dec 19 14:31:22 gar kernel: snd_hda_intel 0000:04:00.0: enabling device
(0000 -> 0002)
Dec 19 14:31:22 gar kernel: snd_hda_intel 0000:04:00.0: bound
0000:03:00.0 (ops i915_audio_component_bind_ops [i915])
Dec 19 14:31:22 gar kernel: snd_hda_intel 0000:00:1f.3: no codecs found!
Dec 19 14:31:22 gar kernel: snd_hda_intel 0000:04:00.0: Unknown capability 0
-- Boot a4ff737c32fc457d9754080728413661 --
Dec 19 15:03:57 gar kernel: Linux version 6.1.0-15-amd64
(debian-ker...@lists.debian.org) (gcc-12 (Debian 12.2.0-14) 12.2.0, GNU
ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT_DYNAMIC Debian
6.1.66-1 (2023-12-09)
Dec 19 15:03:58 gar kernel: snd_hda_intel 0000:00:1f.3: enabling device
(0000 -> 0002)
Dec 19 15:03:58 gar kernel: snd_hda_intel 0000:04:00.0: enabling device
(0000 -> 0002)
Dec 19 15:03:58 gar kernel: snd_hda_intel 0000:04:00.0: bound
0000:03:00.0 (ops i915_audio_component_bind_ops [i915])
Dec 19 15:03:58 gar kernel: snd_hda_intel 0000:00:1f.3: no codecs found!
Dec 19 15:03:58 gar kernel: snd_hda_intel 0000:04:00.0: Unknown capability 0
Dec 19 15:55:11 gar sudo[16852]: cgelinek : TTY=pts/1 ; PWD=/tmp ;
USER=root ; COMMAND=/usr/bin/apt install show alsa-ucm-conf
Dec 19 15:55:15 gar sudo[16870]: cgelinek : TTY=pts/1 ; PWD=/tmp ;
USER=root ; COMMAND=/usr/bin/apt install alsa-ucm-conf
-- Boot eeb40a8fbce94b57a2d67ebb1fa709a8 --
```
I.e. that particular error appeared any time between Dec 18 14:42:21 and
Dec 19 13:37:16, but I cannot be 100% sure this is actually the cause of
the missing analog audio.
I also know that I received a new analog headset on Dec 19 between 12:21
and 12:45 and tested it successfully. But at some point that afternoon,
then I noticed that my analog audio wasn't working any more and I
started to investigate, the earliest entry in the journal hinting at
this is:
```
Dec 19 15:22:18 gar sudo[9362]: cgelinek : TTY=pts/0 ; PWD=/tmp ;
USER=root ; COMMAND=/usr/bin/systemctl status pipewire-session-manager
```
Unfortunately, I also did quite a few other things in-between, including
a BIOS upgrade after 12:57 (I needed `dosfstools` to
format the USB drive to store the BIOS), installed `fwupdate` at
13:47:56 and `intel-microcode` at 14:25:40,
so any of these actions could've caused this issue.
Some of these (AFAIR auto-configured) PulseAudio config files are still
pointing to the "analog-stereo" output:
```
cgelinek@gar:/tmp$ ls -rt ~/.config/pulse/*default* |xargs -i% sh -c 'ls
-l % ; cat %'
-rw-r--r-- 1 cgelinek tech 68 Jan 5 2023
/net/groper/u1/home/cgelinek/.config/pulse/fd54e00ba87640399a53c282574d152c-default-source
alsa_input.usb-046d_Logitech_Webcam_C930e_C9BD39BE-02.analog-stereo
-rw-r--r-- 1 cgelinek tech 43 Jan 5 2023
/net/groper/u1/home/cgelinek/.config/pulse/fd54e00ba87640399a53c282574d152c-default-sink
alsa_output.pci-0000_00_1b.0.analog-stereo
-rw------- 1 cgelinek tech 51 Feb 3 2023
/net/groper/u1/home/cgelinek/.config/pulse/b99ee978a72c496aad5dba3fe8d37d86-default-source
alsa_output.pci-0000_00_1b.0.analog-stereo.monitor
-rw------- 1 cgelinek tech 43 Feb 3 2023
/net/groper/u1/home/cgelinek/.config/pulse/b99ee978a72c496aad5dba3fe8d37d86-default-sink
alsa_output.pci-0000_00_1b.0.analog-stereo
-rw------- 1 cgelinek tech 18 Feb 21 2023
/net/groper/u1/home/cgelinek/.config/pulse/bd9c255d21584ac1bfbd0944a12e2ef0-default-source
auto_null.monitor
-rw------- 1 cgelinek tech 10 Feb 21 2023
/net/groper/u1/home/cgelinek/.config/pulse/bd9c255d21584ac1bfbd0944a12e2ef0-default-sink
auto_null
-rw-r--r-- 1 cgelinek tech 18 May 29 2023
/net/groper/u1/home/cgelinek/.config/pulse/fe82c5bb2e2442b589feb5b0ade1bdb0-default-source
auto_null.monitor
-rw-r--r-- 1 cgelinek tech 10 May 29 2023
/net/groper/u1/home/cgelinek/.config/pulse/fe82c5bb2e2442b589feb5b0ade1bdb0-default-sink
auto_null
-rw-r--r-- 1 cgelinek tech 18 Jun 16 2023
/net/groper/u1/home/cgelinek/.config/pulse/43c101b2491a4548bada47fae55a770f-default-source
auto_null.monitor
-rw-r--r-- 1 cgelinek tech 10 Jun 16 2023
/net/groper/u1/home/cgelinek/.config/pulse/43c101b2491a4548bada47fae55a770f-default-sink
auto_null
-rw-r--r-- 1 cgelinek tech 18 Aug 31 09:37
/net/groper/u1/home/cgelinek/.config/pulse/8640f28107864626a9a1491007dbb1af-default-source
auto_null.monitor
-rw-r--r-- 1 cgelinek tech 10 Aug 31 09:37
/net/groper/u1/home/cgelinek/.config/pulse/8640f28107864626a9a1491007dbb1af-default-sink
auto_null
cgelinek@gar:/tmp$ ll ~/.config/pulse/default.pa
ls: cannot access
'/net/groper/u1/home/cgelinek/.config/pulse/default.pa': No such file or
directory
```
At this point I was wondering about the kernel modules.
As I found on some forums, I also tried adding `snd_hda_intel
dmic_detect=0` or `snd-intel-dspcfg dsp_driver=0`
to/*/etc/modprobe.d/alsa-base.conf*/, but this didn't seem to have any
effect.
```
cgelinek@gar:/tmp$ sudo lsmod |grep snd
snd_seq_dummy 16384 0
snd_hrtimer 16384 2
snd_seq 90112 13 snd_seq_dummy
snd_sof_pci_intel_tgl 16384 0
snd_sof_intel_hda_common 188416 1 snd_sof_pci_intel_tgl
soundwire_intel 49152 1 snd_sof_intel_hda_common
snd_sof_intel_hda 20480 1 snd_sof_intel_hda_common
snd_sof_pci 24576 2
snd_sof_intel_hda_common,snd_sof_pci_intel_tgl
snd_sof_xtensa_dsp 16384 1 snd_sof_intel_hda_common
snd_sof 274432 2 snd_sof_pci,snd_sof_intel_hda_common
snd_sof_utils 20480 1 snd_sof
snd_soc_hdac_hda 24576 1 snd_sof_intel_hda_common
snd_hda_ext_core 40960 2 snd_sof_intel_hda_common,snd_soc_hdac_hda
snd_soc_acpi_intel_match 81920 2
snd_sof_intel_hda_common,snd_sof_pci_intel_tgl
snd_soc_acpi 16384 2
snd_soc_acpi_intel_match,snd_sof_intel_hda_common
snd_hda_codec_hdmi 81920 1
snd_soc_core 352256 4
soundwire_intel,snd_sof,snd_sof_intel_hda_common,snd_soc_hdac_hda
snd_compress 28672 1 snd_soc_core
snd_hda_intel 57344 6
snd_intel_dspcfg 36864 3
snd_hda_intel,snd_sof,snd_sof_intel_hda_common
snd_intel_sdw_acpi 20480 2 snd_sof_intel_hda_common,snd_intel_dspcfg
snd_usb_audio 376832 3
snd_hda_codec 184320 4
snd_hda_codec_hdmi,snd_hda_intel,snd_soc_hdac_hda,snd_sof_intel_hda
snd_usbmidi_lib 45056 1 snd_usb_audio
snd_hda_core 122880 7
snd_hda_codec_hdmi,snd_hda_intel,snd_hda_ext_core,snd_hda_codec,snd_sof_intel_hda_common,snd_soc_hdac_hda,snd_sof_intel_hda
snd_rawmidi 53248 1 snd_usbmidi_lib
snd_hwdep 16384 2 snd_usb_audio,snd_hda_codec
snd_seq_device 16384 2 snd_seq,snd_rawmidi
snd_pcm 159744 16
snd_hda_codec_hdmi,snd_hda_intel,snd_usb_audio,snd_hda_codec,soundwire_intel,snd_sof,snd_sof_intel_hda_common,snd_compress,snd_soc_core,snd_sof_utils,snd_hda_core
snd_timer 49152 3 snd_seq,snd_hrtimer,snd_pcm
mc 77824 5
videodev,snd_usb_audio,videobuf2_v4l2,uvcvideo,videobuf2_common
snd 126976 31
snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_usb_audio,snd_usbmidi_lib,snd_hda_codec,snd_sof,snd_timer,snd_compress,snd_soc_core,snd_pcm,snd_rawmidi
soundcore 16384 1 snd
usbcore 348160 6
xhci_hcd,snd_usb_audio,usbhid,snd_usbmidi_lib,uvcvideo,xhci_pci
```
The relevant journal entries (listed with `sudo journalctl | grep -E
'^-- Boot|Linux version|snd' | less`):
```-- Boot d136ca76e4ea40a9a834eab9893bb6e6 --
Dec 18 14:42:21 gar kernel: Linux version 6.1.0-15-amd64
(debian-ker...@lists.debian.org) (gcc-12 (Debian 12.2.0-14) 12.2.0, GNU
ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT_DYNAMIC Debian
6.1.66-1 (2023-12-09)
Dec 18 14:42:22 gar kernel: snd_hda_intel 0000:00:1f.3: enabling device
(0000 -> 0002)
Dec 18 14:42:22 gar kernel: snd_hda_intel 0000:04:00.0: enabling device
(0000 -> 0002)
Dec 18 14:42:22 gar kernel: snd_hda_intel 0000:04:00.0: bound
0000:03:00.0 (ops i915_audio_component_bind_ops [i915])
Dec 18 14:42:22 gar kernel: snd_hda_intel 0000:04:00.0: Unknown capability 0
Dec 18 14:42:22 gar kernel: snd_hda_codec_realtek hdaudioC1D0:
autoconfig for ALC897: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:line
Dec 18 14:42:22 gar kernel: snd_hda_codec_realtek hdaudioC1D0:
speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
Dec 18 14:42:22 gar kernel: snd_hda_codec_realtek hdaudioC1D0:
hp_outs=1 (0x1b/0x0/0x0/0x0/0x0)
Dec 18 14:42:22 gar kernel: snd_hda_codec_realtek hdaudioC1D0: mono:
mono_out=0x0
Dec 18 14:42:22 gar kernel: snd_hda_codec_realtek hdaudioC1D0: inputs:
Dec 18 14:42:22 gar kernel: snd_hda_codec_realtek hdaudioC1D0:
Front Mic=0x19
Dec 18 14:42:22 gar kernel: snd_hda_codec_realtek hdaudioC1D0: Rear
Mic=0x18
Dec 18 14:42:22 gar kernel: snd_hda_codec_realtek hdaudioC1D0:
Line=0x1a
Dec 18 14:42:23 gar kernel: usbcore: registered new interface driver
snd-usb-audio
Dec 18 15:27:43 gar Thunar[14751]: thunar-volman: Unsupported USB device
type "snd-usb-audio".
Dec 18 15:27:43 gar Thunar[14755]: thunar-volman: Unsupported USB device
type "snd-usb-audio".
-- Boot 04775633c9404c2397019b8c9f7096bf --
Dec 19 13:37:16 gar kernel: Linux version 6.1.0-15-amd64
(debian-ker...@lists.debian.org) (gcc-12 (Debian 12.2.0-14) 12.2.0, GNU
ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT_DYNAMIC Debian
6.1.66-1 (2023-12-09)
Dec 19 13:37:16 gar kernel: snd_hda_intel 0000:00:1f.3: enabling device
(0000 -> 0002)
Dec 19 13:37:16 gar kernel: snd_hda_intel 0000:04:00.0: enabling device
(0000 -> 0002)
Dec 19 13:37:16 gar kernel: snd_hda_intel 0000:04:00.0: bound
0000:03:00.0 (ops i915_audio_component_bind_ops [i915])
Dec 19 13:37:16 gar kernel: snd_hda_intel 0000:00:1f.3: no codecs found!
Dec 19 13:37:16 gar kernel: snd_hda_intel 0000:04:00.0: Unknown capability 0
Dec 19 13:37:18 gar kernel: usbcore: registered new interface driver
snd-usb-audio
-- Boot 8d6dfd16e4fe4f798897e0c0b251ffa0 --
```
suggest the `snd_hda_codec_realtek` module was loading when the sound
was working but now isn't, even through the firmware is installed:
```
cgelinek@gar:/tmp$ apt list --installed |grep firmware
WARNING: apt does not have a stable CLI interface. Use with caution in
scripts.
firmware-linux-free/stable,stable,now 20200122-1 all [installed,automatic]
firmware-misc-nonfree/stable,stable,now 20230210-5 all [installed]
firmware-realtek/stable,stable,now 20230210-5 all [installed]
firmware-sof-signed/stable,stable,now 2.2.4-1 all [installed]
```
As [mentioned on the Debian forums][2], I may need the
/*/etc/modprobe.d/amd64-microcode-blacklist.conf*/ file as I already
have /*/etc/modprobe.d/intel-microcode-blacklist.conf*/, which is in
[amd64-microcode][4] and which I had not installed:
```
cgelinek@gar:/tmp$ apt list --installed |grep microcode
WARNING: apt does not have a stable CLI interface. Use with caution in
scripts.
intel-microcode/stable,now 3.20231114.1~deb12u1 amd64 [installed]
```
But since `amd64-microcode` explicitly points to `intel-microcode` for
Intel processors (which I use), I was hesitant to install it. [This Arch
Linux thread][3] seems to be about a very similar problem, unfortunately
it doesn't include a solution - I already have the realtek and sof
firmware installed.
I also tried booting into a /*debian-live-12.4.0-amd64-xfce.iso*/ system
but that has the same problem (no codecs found!), besides also not
detecting any audio hardware except for the USB webcam.
Any other ideas what I missed or what else to try at this point would be
highly appreciated.
Thanks for your time,
Christian
[1]:
https://wiki.debian.org/PipeWire#pacmd_fails_with_.22No_PulseAudio_daemon_running.22
[2]: https://forums.debian.net/viewtopic.php?p=749659#p749659
[3]: https://bbs.archlinux.org/viewtopic.php?id=269291
[4]: https://packages.debian.org/bookworm/amd64/amd64-microcode/filelist