]> git.alsa-project.org Git - alsa-lib.git/commitdiff
conf: USB-Audio: use PCM device 1 for IEC958 on C-Media HIFI Decode Audio
authorBrian Kroth <bpkroth@gmail.com>
Fri, 16 Oct 2026 19:30:42 +0000 (14:30 -0500)
committerJaroslav Kysela <perex@perex.cz>
Mon, 30 Nov 2026 21:11:38 +0000 (22:11 +0100)
The C-Media "HIFI Decode Audio" USB device (0d8c:0089) exposes its
analog DAC on PCM device 0 (USB interface 1, up to 768 kHz and DSD)
and its optical S/PDIF output on PCM device 1 (USB interface 2, up to
192 kHz). Device 2 is the non-PCM alternate setting of the same
S/PDIF endpoint.

Without an entry here, iec958:CARD=... resolves to device 0, so the
"Digital Stereo (IEC958)" output in PipeWire/PulseAudio plays through
the analog jack and the optical output stays silent.

Closes: https://github.com/alsa-project/alsa-lib/pull/534
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Signed-off-by: Brian Kroth <bpkroth@gmail.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/conf/cards/USB-Audio.conf

index 5120b2abf07aa7da1b7d3571770ac391865759f7..6a43b02604bf92c215f866faba0b28ebfb00a062 100644 (file)
@@ -37,6 +37,8 @@ USB-Audio.pcm.surround40_type {
 # If a device does not use the first PCM device for digital data, the device
 # number for the iec958 device can be changed here.
 USB-Audio.pcm.iec958_device {
+       "C-Media HIFI Decode Audio" 1
+
        # "NoiseBlaster 3000" 42
        "USB Sound Blaster HD" 1
        "SB Omni Surround 5.1" 1