You are not logged in.

#1 2024-08-11 17:25:44

ozooha
Member
Registered: 2009-09-29
Posts: 184

Pipewire Sound: Use the HDMI one instead of the default S/PDIF

Hi,
I use the Gnome DE with Pipewire for sound.
The current setup uses Pipewire through S/PDIF into a receiver for surround sound (5.1).
I have two monitors and one of them is a TV which I use primarily for watching videos etc.
The PC has S/PDIF toslink connects to a receiver for sound and two HDMIs into the monitors for the visuals.
The TV has a standalone toslink/S/PDIF connected to the same receiver for the TV audio to be fed into the receiver.
How can I use this option, i.e. the HDMI from my PC into the TV and then its audio  (through the TV) into the receiver?
Use the above approach for audio instead of the default toslink/ S/PDIF?
The audio settings on Gnome does provide that option - i.e. through the TV's HDMI for the audio, but when I switch to that option, the sound results in a continuous loud hissing sound.

I am not sure what outputs I can provide you to assist me in getting this option to work for me.
but below are some basic ones. Let me know if I yo require anything else.
OZooHA

ozooha$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Generic [HD-Audio Generic], device 0: ALC892 Analog [ALC892 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Generic [HD-Audio Generic], device 1: ALC892 Digital [ALC892 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: HDMI [HDA ATI HDMI], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: HDMI [HDA ATI HDMI], device 8: HDMI 2 [ASUS VP228]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: HDMI [HDA ATI HDMI], device 9: HDMI 3 [SAMSUNG]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: HDMI [HDA ATI HDMI], device 10: HDMI 4 [HDMI 4]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
ozooha$ aplay -L                              
null
    Discard all samples (playback) or generate zero samples (capture)
pipewire
    PipeWire Sound Server
default
    Default ALSA Output (currently PipeWire Media Server)
sysdefault:CARD=Generic
    HD-Audio Generic, ALC892 Analog
    Default Audio Device
front:CARD=Generic,DEV=0
    HD-Audio Generic, ALC892 Analog
    Front output / input
surround21:CARD=Generic,DEV=0
    HD-Audio Generic, ALC892 Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Generic,DEV=0
    HD-Audio Generic, ALC892 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Generic,DEV=0
    HD-Audio Generic, ALC892 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Generic,DEV=0
    HD-Audio Generic, ALC892 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Generic,DEV=0
    HD-Audio Generic, ALC892 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Generic,DEV=0
    HD-Audio Generic, ALC892 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Generic,DEV=0
    HD-Audio Generic, ALC892 Digital
    IEC958 (S/PDIF) Digital Audio Output
dca:CARD=Generic,DEV=0
    HD-Audio Generic, ALC892 Digital
    DTS Encoding through IEC958 (S/PDIF)
hdmi:CARD=HDMI,DEV=0
    HDA ATI HDMI, HDMI 0
    HDMI Audio Output
hdmi:CARD=HDMI,DEV=1
    HDA ATI HDMI, HDMI 1
    HDMI Audio Output
hdmi:CARD=HDMI,DEV=2
    HDA ATI HDMI, ASUS VP228
    HDMI Audio Output
hdmi:CARD=HDMI,DEV=3
    HDA ATI HDMI, SAMSUNG
    HDMI Audio Output
hdmi:CARD=HDMI,DEV=4
    HDA ATI HDMI, HDMI 4
    HDMI Audio Output
dcahdmi:CARD=HDMI,DEV=0
    HDA ATI HDMI, HDMI 0
    DTS Encoding through HDMI
dcahdmi:CARD=HDMI,DEV=1
    HDA ATI HDMI, HDMI 1
    DTS Encoding through HDMI
dcahdmi:CARD=HDMI,DEV=2
    HDA ATI HDMI, ASUS VP228
    DTS Encoding through HDMI
dcahdmi:CARD=HDMI,DEV=3
    HDA ATI HDMI, SAMSUNG
    DTS Encoding through HDMI
dcahdmi:CARD=HDMI,DEV=4
    HDA ATI HDMI, HDMI 4
    DTS Encoding through HDMI
ozooha$ pactl info
Server String: /run/user/1000/pulse/native
Library Protocol Version: 35
Server Protocol Version: 35
Is Local: yes
Client Index: 513
Tile Size: 65472
User Name: ozooha
Host Name: OZLinux
Server Name: PulseAudio (on PipeWire 1.2.2)
Server Version: 15.0.0
Default Sample Specification: float32le 2ch 48000Hz
Default Channel Map: front-left,front-right
Default Sink: alsa_output.pci-0000_00_14.2.iec958-dts-surround-51
Default Source: alsa_input.pci-0000_00_14.2.analog-stereo
Cookie: 8a24:5daa
ozooha$ pactl list sinks | grep -B1 -A9 State:
Sink #49
	State: SUSPENDED
	Name: alsa_output.pci-0000_01_00.1.hdmi-stereo-extra2
	Description: Baffin HDMI/DP Audio [Radeon RX 550 640SP / RX 560/560X] Digital Stereo (HDMI 3)
	Driver: PipeWire
	Sample Specification: s32le 2ch 48000Hz
	Channel Map: front-left,front-right
	Owner Module: 4294967295
	Mute: no
	Volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
	        balance 0.00
--
Sink #59
	State: SUSPENDED
	Name: alsa_output.pci-0000_00_14.2.iec958-dts-surround-51
	Description: Built-in Audio Digital Surround 5.1 (IEC958/DTS)
	Driver: PipeWire
	Sample Specification: s32le 6ch 48000Hz
	Channel Map: front-left,front-right,rear-left,rear-right,front-center,lfe
	Owner Module: 4294967295
	Mute: no
	Volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB,   rear-left: 65536 / 100% / 0.00 dB,   rear-right: 65536 / 100% / 0.00 dB,   front-center: 65536 / 100% / 0.00 dB,   lfe: 65536 / 100% / 0.00 dB
	        balance 0.00

Last edited by ozooha (2024-08-11 17:42:27)

Offline

Board footer

Powered by FluxBB