You are not logged in.

#1 2025-12-12 04:45:08

KMacha
Member
Registered: 2025-04-24
Posts: 2

Getting Surround Sound using Toslink Cable

Hey all.

I have a desktop with an MSI MAG-X870 Tomahawk WIFI Motherboard. The motherboard has a S/PDIF port which I have connected to a logitech z906 via the toslink cable.

Currently on my system I am using the pipewire package, alongside wireplumber, pipewire-pulse, pipewire-alsa and pipewire-audio.

In pavucontrol, in the configuration tab, the connection is recognised as USB Audio, and only has the HiFi profiles (HiFi 2.0, HiFi 7.1, HiFi 5.1) and the Pro Audio profile from pipewire. Using the HiFi 2.0 or the HiFi 5.1 profiles, the sound works in stereo.

I am testing in mpv with an audio source with ac3 to try and passthrough to the z906, but it doesn't work.

In the ArchWiki for pulseaudio/examples , there is a mention of disabling UCM/hifi, to get pulseaudio's profiles, but upon trying that option and getting the pulseaudio profiles among them (Digital Stereo Duplex (Iec958), Digital Stereo (iec958) output), with those profiles, no sound is outputted.

I have tried using alsa alone, pulseaudio alone, and using pipewire, none of them are able to work.

Any help regarding this would be highly appreciated.

Also the msi mag-x870 motherboard allows for connecting for 5.1 sound via 3 cables:
1 for the front speakers connected to the rear headphone jack
1 for the center speaker and sub-woofer connected to the rear microphone jack
1 for the surround speakers connected to the cases front microphone jack.

Connecting it like this, sound only comes from the front speakers,

On Windows, it uses the realtek software to "retask" the jacks, I have tried using hdajackretask as suggested in the alsa archwiki here but it doesn't detect any of the headphone/microphone jacks.

again any help regarding this would be highly appreciated.

Current Kernel Version:

 6.17.9-arch1-1 

output of aplay -l

**** List of PLAYBACK Hardware Devices ****
card 0: Audio [USB Audio], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Audio [USB Audio], device 1: USB Audio [USB Audio #1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Audio [USB Audio], device 2: USB Audio [USB Audio #2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Audio [USB Audio], device 3: USB Audio [USB Audio #3]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [GS32QC]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: Generic_1 [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: Generic_1 [HD-Audio Generic], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: Generic_1 [HD-Audio Generic], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: Generic_1 [HD-Audio Generic], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

output of lspci -k -nn -d ::0403

01:00.1 Audio device [0403]: NVIDIA Corporation GA102 High Definition Audio Controller [10de:1aef] (rev a1)
	Subsystem: EVGA Corporation Device [3842:3982]
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel
72:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Radeon High Definition Audio Controller [1002:1640]
	Subsystem: Micro-Star International Co., Ltd. [MSI] Device [1462:7e51]
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel
72:00.6 Audio device [0403]: Advanced Micro Devices, Inc. [AMD] Ryzen HD Audio Controller [1022:15e3]
	DeviceName: Realtek ALC1220
	Subsystem: Micro-Star International Co., Ltd. [MSI] Device [1462:ee51]
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel

Offline

Board footer

Powered by FluxBB