I also tried installing an Asus Xonar SE sound card. This PCIE card is also treated as a USB device by Linux and I could get the analog output working but not the digital output. https://www.asus.com/us/Motherboards-Co ... /Xonar-SE/ The Asus Xonar card is not currently in my system.
I am confident that the issue is not the TOSLINK input on the stereo receiver/amp or the fiber cable as they worked well from my older Linux (Gentoo) system. On that system there was a S/PDIF entry in alsamixer for the motherboard sound device.
Is there some additional kernel module needed for USB audio digital output?
I am using the Intel audio:
Code: Select all
$ lspci | grep -i audio
00:1f.3 Audio device: Intel Corporation Alder Lake-S HD Audio Controller (rev 11)
01:00.1 Audio device: NVIDIA Corporation GA104 High Definition Audio Controller (rev a1)
# lspci -s 00:1f.3 -v
00:1f.3 Audio device: Intel Corporation Alder Lake-S HD Audio Controller (rev 11)
DeviceName: Onboard - Sound
Subsystem: ASUSTeK Computer Inc. Alder Lake-S HD Audio Controller
Flags: bus master, fast devsel, latency 32, IRQ 17
Memory at 4002218000 (64-bit, non-prefetchable) [size=16K]
Memory at 4002000000 (64-bit, non-prefetchable) [size=1M]
Capabilities: [50] Power Management version 3
Capabilities: [80] Vendor Specific Information: Len=14 <?>
Capabilities: [60] MSI: Enable- Count=1/1 Maskable- 64bit+
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intelCode: Select all
$ lsmod | grep -i snd
snd_seq 73728 0
snd_pcm_oss 53248 0
snd_mixer_oss 28672 1 snd_pcm_oss
snd_hda_codec_hdmi 65536 1
snd_usb_audio 290816 10
snd_hwdep 16384 1 snd_usb_audio
snd_usbmidi_lib 32768 1 snd_usb_audio
snd_rawmidi 36864 1 snd_usbmidi_lib
snd_hda_intel 32768 3
snd_seq_device 16384 2 snd_seq,snd_rawmidi
snd_intel_dspcfg 16384 1 snd_hda_intel
snd_hda_codec 106496 2 snd_hda_codec_hdmi,snd_hda_intel
snd_hda_core 61440 3 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
snd_pcm 122880 7 snd_hda_codec_hdmi,snd_hda_intel,snd_usb_audio,snd_hda_codec,snd_pcm_oss,snd_hda_core
snd_timer 32768 2 snd_seq,snd_pcm
snd 90112 38 snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_usb_audio,snd_usbmidi_lib,snd_hda_codec,snd_timer,snd_pcm_oss,snd_pcm,snd_rawmidi,snd_mixer_oss
soundcore 16384 1 sndFrom: alsa-info.sh:
Code: Select all
!!DMI Information
!!---------------
Manufacturer: ASUS
Product Name: System Product Name
Product Version: System Version
Firmware Version: 1720
System SKU: SKU
Board Vendor: ASUSTeK COMPUTER INC.
Board Name: ROG STRIX Z690-E GAMING WIFI
...
!!ALSA Version
!!------------
Driver version: k5.19.12-gentoo-1
Library version: 1.2.7.2
Utilities version: 1.2.7
!!Loaded ALSA modules
!!-------------------
snd_hda_intel (card 1)
snd_usb_audio (card 2)
!!Sound Servers on this system
!!----------------------------
Pulseaudio:
Installed - Yes (/usr/bin/pulseaudio)
Running - Yes
!!Soundcards recognised by ALSA
!!-----------------------------
1 [NVidia ]: HDA-Intel - HDA NVidia
HDA NVidia at 0x95080000 irq 17
2 [Audio ]: USB-Audio - USB Audio
Generic USB Audio at usb-0000:00:14.0-4, high speed
!!PCI Soundcards installed in the system
!!--------------------------------------
00:1f.3 Audio device [0403]: Intel Corporation Alder Lake-S HD Audio Controller [8086:7ad0] (rev 11)
DeviceName: Onboard - Sound
01:00.1 Audio device [0403]: NVIDIA Corporation GA104 High Definition Audio Controller [10de:228b] (rev a1)
Subsystem: eVga.com. Corp. GA104 High Definition Audio Controller [3842:3797]
...
Bus 001 Device 002: ID 0b05:1996 ASUSTek Computer, Inc. USB Audio
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 239 Miscellaneous Device
bDeviceSubClass 2
bDeviceProtocol 1 Interface Association
bMaxPacketSize0 64
idVendor 0x0b05 ASUSTek Computer, Inc.
idProduct 0x1996
bcdDevice 0.13
iManufacturer 3 Generic
iProduct 1 USB Audio
...
AudioControl Interface Descriptor:
bLength 12
bDescriptorType 36
bDescriptorSubtype 3 (OUTPUT_TERMINAL)
bTerminalID 24
wTerminalType 0x0605 SPDIF interface
bAssocTerminal 16
bSourceID 32
bCSourceID 8
bmControls 0x0000
iTerminal 0After reading https://alsa.opensrc.org/DigitalOut the following shows that the SPDIF interface should be available:
Code: Select all
$ aplay -L | grep 'S/PDIF' -B 2
iec958:CARD=Audio,DEV=0
USB Audio, USB Audio
IEC958 (S/PDIF) Digital Audio Output
iec958:CARD=Audio,DEV=1
USB Audio, USB Audio #1
IEC958 (S/PDIF) Digital Audio OutputWhere do I use that "iec958:CARD=Audio,DEV=0" or "iec958:CARD=Audio,DEV=1" ? I tried in alsamixer -> F6 -> "enter device name ..." It didn't work.If you see IEC958 or S/PDIF in that list you can use the complete identification including the CARD and DEV parameters as a playback device instead of ```hw:x,y```.
Any suggestions for for getting TOSLINK output working would be greatly appreciated. (If I should provide more info please ask.)

