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>
# 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