Help with HDMI sound

Hello! New Linux user here.
Please help me fix the sound issues on HDMI. Is not a hardware issues, same config (pc + tv) works fine on Windows.
I tried messing around with the sound troubleshooting wiki article but no luck.

inxi -Aa
Audio:
Device-1: Advanced Micro Devices [AMD/ATI] Navi 21/23 HDMI/DP Audio
driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
bus-ID: 0b:00.1 chip-ID: 1002:ab28 class-ID: 0403
Device-2: Advanced Micro Devices [AMD] Starship/Matisse HD Audio
vendor: Gigabyte driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s
lanes: 16 bus-ID: 0d:00.4 chip-ID: 1022:1487 class-ID: 0403
API: ALSA v: k6.16.0-1-default status: kernel-api with: aoss
type: oss-emulator tools: alsactl,alsamixer,amixer
Server-1: PipeWire v: 1.4.7 status: active with: 1: pipewire-pulse
status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl

Welcome to openSUSE Forums.

Can you elaborate further? Does audio via HDMI not work at all, or are you having trouble selecting the desired output device?

Please show us the results from
wpctl status
pactl list cards

Post the commands and output as preformatted text (refer to the </> button in the forum editor).

Hi attendee245 ! Welcome to openSUSE forums and to our community!

Your output shows two audio devices:

Device-1: Advanced Micro Devices [AMD/ATI] Navi 21/23 HDMI/DP Audio - This is the HDMI audio device, which is the one they want to use.

Device-2: Advanced Micro Devices [AMD] Starship/Matisse HD Audio - This is likely the integrated motherboard audio.

From what I speculate, the problem may be that your openSUSE is defaulting to send audio to the motherboard’s audio (Device-2) instead of the HDMI output (Device-1).

You could try to use the application pavucontrol to select the HDMI device as the first step to a find solution. If that fails, then you could run a diagnostic script to see if the issue is at a deeper level with you audio configurtion.

So (1) please install ‘pavucontrol’ and see if you can with that application, redirect audio to HDMI using that application. And if that does not work,

(2) please run a diagnostic script by opening a bash shell, and as a regular user send the command:
/usr/sbin/alsa-info.sh
… when prompted, select “UPLOAD/SHARE”. This will upload the diagnostic information to an alsa project server site.

when the script completes it should say

Your ALSA information is located at http://alsa-project.org/db/?f=some-number
Please inform the person helping you.

Please paste that http://alsa-project.org/db/?f=some-number URL address here and our forum sound experts can look at that and try to deduce the problem.

Good luck

EDIT: i see deano_ferrari also replied. Please follow up on his request!

I’m not the OP, but I’m having the same issue on a fresh Tumbleweed reinstall (everything worked fine on my previous install) so maybe my output will be helpful. Currently connected to my display/audio output via DisplayPort attached my discrete AMD GPU.

inxi -Aa
Audio:
  Device-1: Advanced Micro Devices [AMD/ATI] Navi 31 HDMI/DP Audio
    driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
    bus-ID: 08:00.1 chip-ID: 1002:ab30 class-ID: 0403
  API: ALSA v: k6.16.0-1-default status: kernel-api with: aoss
    type: oss-emulator tools: alsactl,alsamixer,amixer
  Server-1: PipeWire v: 1.4.7 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    tools: pactl,pw-cat,pw-cli,wpctl
wpctl status
PipeWire 'pipewire-0' [1.4.7, <usernameremoved>, cookie:3193245554]
 └─ Clients:
        32. gnome-shell                         [1.4.7, <usernameremoved>, pid:2990]
        33. pipewire                            [1.4.7, <usernameremoved>, pid:3453]
        35. WirePlumber                         [1.4.7, <usernameremoved>, pid:3451]
        43. xdg-desktop-portal                  [1.4.7, <usernameremoved>, pid:3497]
        45. Firefox                             [1.4.7, <usernameremoved>, pid:12884]
        47. WirePlumber [export]                [1.4.7, <usernameremoved>, pid:3451]
        48. GNOME Shell Volume Control          [1.4.7, <usernameremoved>, pid:2990]
        49. GNOME Volume Control Media Keys     [1.4.7, <usernameremoved>, pid:3134]
        59. Firefox                             [1.4.7, <usernameremoved>, pid:12884]
        60. libcanberra                         [1.4.7, <usernameremoved>, pid:3134]
        61. wpctl                               [1.4.7, <usernameremoved>, pid:17020]
pactl list cards
Card #50
	Name: alsa_card.pci-0000_08_00.1
	Driver: alsa
	Owner Module: n/a
	Properties:
		api.acp.auto-port = "false"
		api.acp.auto-profile = "false"
		api.alsa.card = "0"
		api.alsa.card.longname = "HDA ATI HDMI at 0xfcd20000 irq 102"
		api.alsa.card.name = "HDA ATI HDMI"
		api.alsa.path = "hw:0"
		api.alsa.split-enable = "true"
		api.alsa.use-acp = "true"
		api.dbus.ReserveDevice1 = "Audio0"
		api.dbus.ReserveDevice1.Priority = "-20"
		device.api = "alsa"
		device.bus = "pci"
		device.bus_path = "pci-0000:08:00.1"
		device.description = "Navi 31 HDMI/DP Audio"
		device.enum.api = "udev"
		device.icon_name = "audio-card-analog-pci"
		device.name = "alsa_card.pci-0000_08_00.1"
		device.nick = "HDA ATI HDMI"
		device.plugged.usec = "10327095"
		device.product.id = "0xab30"
		device.product.name = "Navi 31 HDMI/DP Audio"
		device.subsystem = "sound"
		sysfs.path = "/devices/pci0000:00/0000:00:03.1/0000:06:00.0/0000:07:00.0/0000:08:00.1/sound/card0"
		device.vendor.id = "0x1002"
		device.vendor.name = "Advanced Micro Devices, Inc. [AMD/ATI]"
		media.class = "Audio/Device"
		spa.object.id = "2"
		factory.id = "15"
		client.id = "47"
		object.id = "50"
		object.serial = "50"
		object.path = "alsa:acp:HDMI"
		alsa.card = "0"
		alsa.card_name = "HDA ATI HDMI"
		alsa.long_card_name = "HDA ATI HDMI at 0xfcd20000 irq 102"
		alsa.driver_name = "snd_hda_intel"
		alsa.mixer_name = "ATI R6xx HDMI"
		alsa.components = "HDA:1002aa01,00aa0100,00100800"
		alsa.id = "HDMI"
		device.string = "0"
	Profiles:
		off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
		output:hdmi-stereo: Digital Stereo (HDMI) Output (sinks: 1, sources: 0, priority: 5900, available: yes)
		output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (sinks: 1, sources: 0, priority: 5700, available: no)
		output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (sinks: 1, sources: 0, priority: 5700, available: no)
		output:hdmi-stereo-extra3: Digital Stereo (HDMI 4) Output (sinks: 1, sources: 0, priority: 5700, available: no)
		output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (sinks: 1, sources: 0, priority: 600, available: no)
		output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output (sinks: 1, sources: 0, priority: 600, available: no)
		output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) Output (sinks: 1, sources: 0, priority: 600, available: no)
		output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) Output (sinks: 1, sources: 0, priority: 600, available: no)
		output:hdmi-surround-extra3: Digital Surround 5.1 (HDMI 4) Output (sinks: 1, sources: 0, priority: 600, available: no)
		output:hdmi-surround71-extra3: Digital Surround 7.1 (HDMI 4) Output (sinks: 1, sources: 0, priority: 600, available: no)
		pro-audio: Pro Audio (sinks: 4, sources: 0, priority: 1, available: yes)
	Active Profile: output:hdmi-stereo
	Ports:
		hdmi-output-0: HDMI / DisplayPort (type: HDMI, priority: 5900, latency offset: 0 usec, availability group: Legacy 1, available)
			Properties:
				port.type = "hdmi"
				port.availability-group = "Legacy 1"
				device.icon_name = "video-display"
				card.profile.port = "0"
				device.product.name = "C34J79x"
				iec958.codecs.detected = "[\"PCM\"]"
			Part of profile(s): output:hdmi-stereo
		hdmi-output-1: HDMI / DisplayPort 2 (type: HDMI, priority: 5800, latency offset: 0 usec, availability group: Legacy 2, not available)
			Properties:
				port.type = "hdmi"
				port.availability-group = "Legacy 2"
				device.icon_name = "video-display"
				card.profile.port = "1"
			Part of profile(s): output:hdmi-stereo-extra1, output:hdmi-surround-extra1, output:hdmi-surround71-extra1
		hdmi-output-2: HDMI / DisplayPort 3 (type: HDMI, priority: 5700, latency offset: 0 usec, availability group: Legacy 3, not available)
			Properties:
				port.type = "hdmi"
				port.availability-group = "Legacy 3"
				device.icon_name = "video-display"
				card.profile.port = "2"
			Part of profile(s): output:hdmi-stereo-extra2, output:hdmi-surround-extra2, output:hdmi-surround71-extra2
		hdmi-output-3: HDMI / DisplayPort 4 (type: HDMI, priority: 5600, latency offset: 0 usec, availability group: Legacy 4, not available)
			Properties:
				port.type = "hdmi"
				port.availability-group = "Legacy 4"
				device.icon_name = "video-display"
				card.profile.port = "3"
			Part of profile(s): output:hdmi-stereo-extra3, output:hdmi-surround-extra3, output:hdmi-surround71-extra3

Here are the results of the commands:

❯ wpctl status
PipeWire 'pipewire-0' [1.4.7, xxx@xxx-pc, cookie:3786543522]
 └─ Clients:
        32. WirePlumber                         [1.4.7, xxx@xxx-pc, pid:1869]
        33. pipewire                            [1.4.7, xxx@xxx-pc, pid:1870]
        34. libcanberra                         [1.4.7, xxx@xxx-pc, pid:1788]
        47. WirePlumber [export]                [1.4.7, xxx@xxx-pc, pid:1869]
        48.                                     [1.4.7, xxx@xxx-pc, pid:1788]
        65. plasmashell                         [1.4.7, xxx@xxx-pc, pid:1935]
        66. libcanberra                         [1.4.7, xxx@xxx-pc, pid:1935]
        67.                                     [1.4.7, xxx@xxx-pc, pid:1935]
        68. xdg-desktop-portal                  [1.4.7, xxx@xxx-pc, pid:1730]
        69. Firefox                             [1.4.7, xxx@xxx-pc, pid:5540]
        70. KDE Connect Daemon                  [1.4.7, xxx@xxx-pc, pid:2103]
        71. Firefox                             [1.4.7, xxx@xxx-pc, pid:5540]
        72. speech-dispatcher-dummy             [1.4.7, xxx@xxx-pc, pid:11286]
        82.                                     [1.4.7, xxx@xxx-pc, pid:1980]
        96. Chromium input                      [1.4.7, xxx@xxx-pc, pid:147]
       107. PulseAudio Volume Control           [1.4.7, xxx@xxx-pc, pid:24499]
       165. wpctl                               [1.4.7, xxx@xxx-pc, pid:26085]

Audio
 ├─ Devices:
 │      49. Navi 21/23 HDMI/DP Audio Controller [alsa]
 │      50. Starship/Matisse HD Audio Controller [alsa]
 │  
 ├─ Sinks:
 │      35. Starship/Matisse HD Audio Controller Analog Stereo [vol: 0.35]
 │  *   57. Navi 21/23 HDMI/DP Audio Controller Digital Stereo (HDMI) [vol: 0.40]
 │  
 ├─ Sources:
 │  *   46. Starship/Matisse HD Audio Controller Analog Stereo [vol: 1.00]
 │  
 ├─ Filters:
 │  
 └─ Streams:
        73. speech-dispatcher-dummy                                     
            189. output_FL       > HDMI 0:playback_FL   [init]
            256. output_FR       > HDMI 0:playback_FR   [init]
        74. PulseAudio Volume Control                                   
             79. input_FC       
             80. input_FL       
             94. monitor_FC     
            125. monitor_RL     
            131. input_RR       
            141. monitor_RR     
            155. input_RL       
            172. monitor_FL     
            199. input_LFE      
            203. input_FR       
            216. monitor_FR     
            250. monitor_LFE    
        84. PulseAudio Volume Control                                   
            192. input_FL       
            193. monitor_FR     
            202. input_FR       
            205. monitor_FL     
        85. PulseAudio Volume Control                                   
            112. monitor_FR     
            115. input_FR        < ALCS1200A Analog:capture_FR  [active]
            118. input_FL        < ALCS1200A Analog:capture_FL  [active]
            122. monitor_FL     
        89. PulseAudio Volume Control                                   
            181. monitor_FR     
            257. monitor_FL     
            259. input_FL        < speech-dispatcher-dummy:output_FL    [init]
            272. input_FR        < speech-dispatcher-dummy:output_FR    [init]
        98. PulseAudio Volume Control                                   
            102. input_FL        < ALCS1200A Analog:monitor_FL  [active]
            106. monitor_FL     
            113. input_FR        < ALCS1200A Analog:monitor_FR  [active]
            121. monitor_FR     
       100. PulseAudio Volume Control                                   
            103. input_FR       
            108. input_FL       
            109. monitor_FR     
            111. monitor_FL     
       124.                                                             
            137. monitor_FR     
            138. input_FL       
            139. monitor_FL     
            142. input_FR       
       130.                                                             
            144. input_FL       
            145. monitor_FL     
            146. input_FR       
            147. monitor_FR     
       136.                                                             
            126. input_FL       
            127. monitor_FL     
            128. monitor_FR     
            129. input_FR       
       140.                                                             
            132. input_FL       
            133. monitor_FL     
            134. monitor_FR     
            135. input_FR       
       161.                                                             
             83. input_FR       
            114. monitor_FR     
            149. monitor_FL     
            187. input_FL       
       163.                                                             
             88. input_FL       
            158. monitor_FR     
            167. input_FR       
            201. monitor_FL     
       170.                                                             
             93. input_FR       
            153. monitor_FR     
            156. monitor_FL     
            157. input_FL       
       176. PulseAudio Volume Control                                   
            190. monitor_FL     
            206. monitor_FR     
            269. input_FR        < HDMI 0:monitor_FR    [active]
            270. input_FL        < HDMI 0:monitor_FL    [active]
       194. PulseAudio Volume Control                                   
            162. input_FR       
            166. monitor_FR     
            169. input_FL       
            182. monitor_FL     
       204. PulseAudio Volume Control                                   
             76. monitor_FL     
             91. input_FR       
            104. input_FL       
            207. monitor_FR     
       212. PulseAudio Volume Control                                   
            152. monitor_FR     
            198. monitor_FL     
            211. input_FR       
            215. input_FL       
       221. PulseAudio Volume Control                                   
            258. monitor_FL     
            261. monitor_FR     
            265. input_FL        < speech-dispatcher-dummy:output_FL    [init]
            267. input_FR        < speech-dispatcher-dummy:output_FR    [init]

Video
 ├─ Devices:
 │  
 ├─ Sinks:
 │  
 ├─ Sources:
 │  
 ├─ Filters:
 │  
 └─ Streams:

Settings
 └─ Default Configured Devices:
         0. Audio/Sink    alsa_output.pci-0000_0b_00.1.hdmi-stereo

░▒▓   …/󰈙 /learning/marimo_learn   08:26  
❯ cd

░▒▓   ~   08:27  
❯ wpctl status
PipeWire 'pipewire-0' [1.4.7, xxx@xxx-pc, cookie:3786543522]
 └─ Clients:
        32. WirePlumber                         [1.4.7, xxx@xxx-pc, pid:1869]
        33. pipewire                            [1.4.7, xxx@xxx-pc, pid:1870]
        34. libcanberra                         [1.4.7, xxx@xxx-pc, pid:1788]
        47. WirePlumber [export]                [1.4.7, xxx@xxx-pc, pid:1869]
        48.                                     [1.4.7, xxx@xxx-pc, pid:1788]
        65. plasmashell                         [1.4.7, xxx@xxx-pc, pid:1935]
        66. libcanberra                         [1.4.7, xxx@xxx-pc, pid:1935]
        67.                                     [1.4.7, xxx@xxx-pc, pid:1935]
        68. xdg-desktop-portal                  [1.4.7, xxx@xxx-pc, pid:1730]
        69. Firefox                             [1.4.7, xxx@xxx-pc, pid:5540]
        70. KDE Connect Daemon                  [1.4.7, xxx@xxx-pc, pid:2103]
        71. Firefox                             [1.4.7, xxx@xxx-pc, pid:5540]
        72. speech-dispatcher-dummy             [1.4.7, xxx@xxx-pc, pid:11286]
        82.                                     [1.4.7, xxx@xxx-pc, pid:1980]
        96. Chromium input                      [1.4.7, xxx@xxx-pc, pid:147]
       107. PulseAudio Volume Control           [1.4.7, xxx@xxx-pc, pid:24499]
       165. wpctl                               [1.4.7, xxx@xxx-pc, pid:26296]

Audio
 ├─ Devices:
 │      49. Navi 21/23 HDMI/DP Audio Controller [alsa]
 │      50. Starship/Matisse HD Audio Controller [alsa]
 │  
 ├─ Sinks:
 │      35. Starship/Matisse HD Audio Controller Analog Stereo [vol: 0.35]
 │  *   57. Navi 21/23 HDMI/DP Audio Controller Digital Stereo (HDMI) [vol: 0.40]
 │  
 ├─ Sources:
 │  *   46. Starship/Matisse HD Audio Controller Analog Stereo [vol: 1.00]
 │  
 ├─ Filters:
 │  
 └─ Streams:
        73. speech-dispatcher-dummy                                     
            189. output_FL       > HDMI 0:playback_FL   [init]
            256. output_FR       > HDMI 0:playback_FR   [init]
        74. PulseAudio Volume Control                                   
             79. input_FC       
             80. input_FL       
             94. monitor_FC     
            125. monitor_RL     
            131. input_RR       
            141. monitor_RR     
            155. input_RL       
            172. monitor_FL     
            199. input_LFE      
            203. input_FR       
            216. monitor_FR     
            250. monitor_LFE    
        84. PulseAudio Volume Control                                   
            192. input_FL       
            193. monitor_FR     
            202. input_FR       
            205. monitor_FL     
        85. PulseAudio Volume Control                                   
            112. monitor_FR     
            115. input_FR        < ALCS1200A Analog:capture_FR  [active]
            118. input_FL        < ALCS1200A Analog:capture_FL  [active]
            122. monitor_FL     
        89. PulseAudio Volume Control                                   
            181. monitor_FR     
            257. monitor_FL     
            259. input_FL        < speech-dispatcher-dummy:output_FL    [init]
            272. input_FR        < speech-dispatcher-dummy:output_FR    [init]
        98. PulseAudio Volume Control                                   
            102. input_FL        < ALCS1200A Analog:monitor_FL  [active]
            106. monitor_FL     
            113. input_FR        < ALCS1200A Analog:monitor_FR  [active]
            121. monitor_FR     
       100. PulseAudio Volume Control                                   
            103. input_FR       
            108. input_FL       
            109. monitor_FR     
            111. monitor_FL     
       124.                                                             
            137. monitor_FR     
            138. input_FL       
            139. monitor_FL     
            142. input_FR       
       130.                                                             
            144. input_FL       
            145. monitor_FL     
            146. input_FR       
            147. monitor_FR     
       136.                                                             
            126. input_FL       
            127. monitor_FL     
            128. monitor_FR     
            129. input_FR       
       140.                                                             
            132. input_FL       
            133. monitor_FL     
            134. monitor_FR     
            135. input_FR       
       161.                                                             
             83. input_FR       
            114. monitor_FR     
            149. monitor_FL     
            187. input_FL       
       163.                                                             
             88. input_FL       
            158. monitor_FR     
            167. input_FR       
            201. monitor_FL     
       170.                                                             
             93. input_FR       
            153. monitor_FR     
            156. monitor_FL     
            157. input_FL       
       176. PulseAudio Volume Control                                   
            190. monitor_FL     
            206. monitor_FR     
            269. input_FR        < HDMI 0:monitor_FR    [active]
            270. input_FL        < HDMI 0:monitor_FL    [active]
       194. PulseAudio Volume Control                                   
            162. input_FR       
            166. monitor_FR     
            169. input_FL       
            182. monitor_FL     
       204. PulseAudio Volume Control                                   
             76. monitor_FL     
             91. input_FR       
            104. input_FL       
            207. monitor_FR     
       212. PulseAudio Volume Control                                   
            152. monitor_FR     
            198. monitor_FL     
            211. input_FR       
            215. input_FL       
       221. PulseAudio Volume Control                                   
            258. monitor_FL     
            261. monitor_FR     
            265. input_FL        < speech-dispatcher-dummy:output_FL    [init]
            267. input_FR        < speech-dispatcher-dummy:output_FR    [init]

Video
 ├─ Devices:
 │  
 ├─ Sinks:
 │  
 ├─ Sources:
 │  
 ├─ Filters:
 │  
 └─ Streams:

Settings
 └─ Default Configured Devices:
         0. Audio/Sink    alsa_output.pci-0000_0b_00.1.hdmi-stereo

❯ pactl list cards
Card #49
        Name: alsa_card.pci-0000_0b_00.1
        Driver: alsa
        Owner Module: n/a
        Properties:
                api.acp.auto-port = "false"
                api.acp.auto-profile = "false"
                api.alsa.card = "0"
                api.alsa.card.longname = "HDA ATI HDMI at 0xfc920000 irq 92"
                api.alsa.card.name = "HDA ATI HDMI"
                api.alsa.path = "hw:0"
                api.alsa.split-enable = "true"
                api.alsa.use-acp = "true"
                api.dbus.ReserveDevice1 = "Audio0"
                api.dbus.ReserveDevice1.Priority = "-20"
                device.api = "alsa"
                device.bus = "pci"
                device.bus_path = "pci-0000:0b:00.1"
                device.description = "Navi 21/23 HDMI/DP Audio Controller"
                device.enum.api = "udev"
                device.icon_name = "audio-card-analog-pci"
                device.name = "alsa_card.pci-0000_0b_00.1"
                device.nick = "HDA ATI HDMI"
                device.plugged.usec = "7459598"
                device.product.id = "0xab28"
                device.product.name = "Navi 21/23 HDMI/DP Audio Controller"
                device.subsystem = "sound"
                sysfs.path = "/devices/pci0000:00/0000:00:03.1/0000:09:00.0/0000:0a:00.0/0000:0b:00.1/sound/card0"
                device.vendor.id = "0x1002"
                device.vendor.name = "Advanced Micro Devices, Inc. [AMD/ATI]"
                media.class = "Audio/Device"
                spa.object.id = "2"
                factory.id = "15"
                client.id = "47"
                object.id = "49"
                object.serial = "49"
                object.path = "alsa:acp:HDMI"
                alsa.card = "0"
                alsa.card_name = "HDA ATI HDMI"
                alsa.long_card_name = "HDA ATI HDMI at 0xfc920000 irq 92"
                alsa.driver_name = "snd_hda_intel"
                alsa.mixer_name = "ATI R6xx HDMI"
                alsa.components = "HDA:1002aa01,00aa0100,00100800"
                alsa.id = "HDMI"
                device.string = "0"
        Profiles:
                off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
                output:hdmi-stereo: Digital Stereo (HDMI) Output (sinks: 1, sources: 0, priority: 5900, available: yes)
                output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (sinks: 1, sources: 0, priority: 5700, available: yes)
                output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (sinks: 1, sources: 0, priority: 5700, available: no)
                output:hdmi-stereo-extra3: Digital Stereo (HDMI 4) Output (sinks: 1, sources: 0, priority: 5700, available: no)
                output:hdmi-stereo-extra4: Digital Stereo (HDMI 5) Output (sinks: 1, sources: 0, priority: 5700, available: no)
                output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (sinks: 1, sources: 0, priority: 800, available: yes)
                output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (sinks: 1, sources: 0, priority: 800, available: yes)
                output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) Output (sinks: 1, sources: 0, priority: 600, available: no)
                output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) Output (sinks: 1, sources: 0, priority: 600, available: no)
                output:hdmi-surround-extra3: Digital Surround 5.1 (HDMI 4) Output (sinks: 1, sources: 0, priority: 600, available: no)
                output:hdmi-surround71-extra3: Digital Surround 7.1 (HDMI 4) Output (sinks: 1, sources: 0, priority: 600, available: no)
                output:hdmi-surround-extra4: Digital Surround 5.1 (HDMI 5) Output (sinks: 1, sources: 0, priority: 600, available: no)
                output:hdmi-surround71-extra4: Digital Surround 7.1 (HDMI 5) Output (sinks: 1, sources: 0, priority: 600, available: no)
                pro-audio: Pro Audio (sinks: 5, sources: 0, priority: 1, available: yes)
        Active Profile: output:hdmi-stereo
        Ports:
                hdmi-output-0: HDMI / DisplayPort (type: HDMI, priority: 5900, latency offset: 0 usec, availability group: Legacy 1, available)
                        Properties:
                                port.type = "hdmi"
                                port.availability-group = "Legacy 1"
                                device.icon_name = "video-display"
                                card.profile.port = "0"
                                device.product.name = "Philips FTV"
                                iec958.codecs.detected = "[\"PCM\",\"DTS\",\"AC3\",\"EAC3\",\"TrueHD\",\"DTS-HD\"]"
                        Part of profile(s): output:hdmi-stereo, output:hdmi-surround, output:hdmi-surround71
                hdmi-output-1: HDMI / DisplayPort 2 (type: HDMI, priority: 5800, latency offset: 0 usec, availability group: Legacy 2, available)
                        Properties:
                                port.type = "hdmi"
                                port.availability-group = "Legacy 2"
                                device.icon_name = "video-display"
                                card.profile.port = "1"
                                device.product.name = "DELL G2422HS"
                                iec958.codecs.detected = "[\"PCM\"]"
                        Part of profile(s): output:hdmi-stereo-extra1
                hdmi-output-2: HDMI / DisplayPort 3 (type: HDMI, priority: 5700, latency offset: 0 usec, availability group: Legacy 3, not available)
                        Properties:
                                port.type = "hdmi"
                                port.availability-group = "Legacy 3"
                                device.icon_name = "video-display"
                                card.profile.port = "2"
                        Part of profile(s): output:hdmi-stereo-extra2, output:hdmi-surround-extra2, output:hdmi-surround71-extra2
                hdmi-output-3: HDMI / DisplayPort 4 (type: HDMI, priority: 5600, latency offset: 0 usec, availability group: Legacy 4, not available)
                        Properties:
                                port.type = "hdmi"
                                port.availability-group = "Legacy 4"
                                device.icon_name = "video-display"
                                card.profile.port = "3"
                        Part of profile(s): output:hdmi-stereo-extra3, output:hdmi-surround-extra3, output:hdmi-surround71-extra3
                hdmi-output-4: HDMI / DisplayPort 5 (type: HDMI, priority: 5500, latency offset: 0 usec, availability group: Legacy 5, not available)
                        Properties:
                                port.type = "hdmi"
                                port.availability-group = "Legacy 5"
                                device.icon_name = "video-display"
                                card.profile.port = "4"
                        Part of profile(s): output:hdmi-stereo-extra4, output:hdmi-surround-extra4, output:hdmi-surround71-extra4

Card #50
        Name: alsa_card.pci-0000_0d_00.4
        Driver: alsa
        Owner Module: n/a
        Properties:
                api.acp.auto-port = "false"
                api.acp.auto-profile = "false"
                api.alsa.card = "1"
                api.alsa.card.longname = "HD-Audio Generic at 0xfc700000 irq 93"
                api.alsa.card.name = "HD-Audio Generic"
                api.alsa.path = "hw:1"
                api.alsa.split-enable = "true"
                api.alsa.use-acp = "true"
                api.dbus.ReserveDevice1 = "Audio1"
                api.dbus.ReserveDevice1.Priority = "-20"
                device.api = "alsa"
                device.bus = "pci"
                device.bus_path = "pci-0000:0d:00.4"
                device.description = "Starship/Matisse HD Audio Controller"
                device.enum.api = "udev"
                device.icon_name = "audio-card-analog-pci"
                device.name = "alsa_card.pci-0000_0d_00.4"
                device.nick = "HD-Audio Generic"
                device.plugged.usec = "7481421"
                device.product.id = "0x1487"
                device.product.name = "Starship/Matisse HD Audio Controller"
                device.subsystem = "sound"
                sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:0d:00.4/sound/card1"
                device.vendor.id = "0x1022"
                device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
                media.class = "Audio/Device"
                spa.object.id = "4"
                factory.id = "15"
                client.id = "47"
                object.id = "50"
                object.serial = "50"
                object.path = "alsa:acp:Generic"
                alsa.card = "1"
                alsa.card_name = "HD-Audio Generic"
                alsa.long_card_name = "HD-Audio Generic at 0xfc700000 irq 93"
                alsa.driver_name = "snd_hda_intel"
                alsa.mixer_name = "Realtek ALCS1200A"
                alsa.components = "HDA:10ec0b00,1458a0cf,00100001"
                alsa.id = "Generic"
                device.string = "1"
        Profiles:
                off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
                output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (sinks: 1, sources: 1, priority: 6565, available: yes)
                output:analog-stereo: Analog Stereo Output (sinks: 1, sources: 0, priority: 6500, available: yes)
                output:iec958-stereo+input:analog-stereo: Digital Stereo (IEC958) Output + Analog Stereo Input (sinks: 1, sources: 1, priority: 5565, available: yes)
                output:iec958-stereo: Digital Stereo (IEC958) Output (sinks: 1, sources: 0, priority: 5500, available: yes)
                output:analog-surround-21+input:analog-stereo: Analog Surround 2.1 Output + Analog Stereo Input (sinks: 1, sources: 1, priority: 1365, available: no)
                output:analog-surround-41+input:analog-stereo: Analog Surround 4.1 Output + Analog Stereo Input (sinks: 1, sources: 1, priority: 1365, available: no)
                output:analog-surround-51+input:analog-stereo: Analog Surround 5.1 Output + Analog Stereo Input (sinks: 1, sources: 1, priority: 1365, available: no)
                output:analog-surround-21: Analog Surround 2.1 Output (sinks: 1, sources: 0, priority: 1300, available: no)
                output:analog-surround-41: Analog Surround 4.1 Output (sinks: 1, sources: 0, priority: 1300, available: no)
                output:analog-surround-51: Analog Surround 5.1 Output (sinks: 1, sources: 0, priority: 1300, available: no)
                output:analog-surround-40+input:analog-stereo: Analog Surround 4.0 Output + Analog Stereo Input (sinks: 1, sources: 1, priority: 1265, available: no)
                output:analog-surround-50+input:analog-stereo: Analog Surround 5.0 Output + Analog Stereo Input (sinks: 1, sources: 1, priority: 1265, available: no)
                output:analog-surround-40: Analog Surround 4.0 Output (sinks: 1, sources: 0, priority: 1200, available: no)
                output:analog-surround-50: Analog Surround 5.0 Output (sinks: 1, sources: 0, priority: 1200, available: no)
                input:analog-stereo: Analog Stereo Input (sinks: 0, sources: 1, priority: 65, available: yes)
                pro-audio: Pro Audio (sinks: 2, sources: 2, priority: 1, available: yes)
        Active Profile: output:analog-stereo+input:analog-stereo
        Ports:
                analog-input-front-mic: Front Microphone (type: Mic, priority: 8500, latency offset: 0 usec, availability group: Legacy 1, available)
                        Properties:
                                port.type = "mic"
                                port.availability-group = "Legacy 1"
                                device.icon_name = "audio-input-microphone"
                                card.profile.port = "0"
                        Part of profile(s): input:analog-stereo, output:analog-stereo+input:analog-stereo, output:analog-surround-21+input:analog-stereo, output:analog-surround-40+input:analog-stereo, output:analog-surround-41+input:analog-stereo, output:analog-surround-50+input:analog-stereo, output:analog-surround-51+input:analog-stereo, output:iec958-stereo+input:analog-stereo
                analog-input-rear-mic: Rear Microphone (type: Mic, priority: 8200, latency offset: 0 usec, availability group: Legacy 2, not available)
                        Properties:
                                port.type = "mic"
                                port.availability-group = "Legacy 2"
                                device.icon_name = "audio-input-microphone"
                                card.profile.port = "1"
                        Part of profile(s): input:analog-stereo, output:analog-stereo+input:analog-stereo, output:analog-surround-21+input:analog-stereo, output:analog-surround-40+input:analog-stereo, output:analog-surround-41+input:analog-stereo, output:analog-surround-50+input:analog-stereo, output:analog-surround-51+input:analog-stereo, output:iec958-stereo+input:analog-stereo
                analog-input-linein: Line In (type: Line, priority: 8100, latency offset: 0 usec, availability group: Legacy 3, not available)
                        Properties:
                                port.type = "line"
                                port.availability-group = "Legacy 3"
                                card.profile.port = "2"
                        Part of profile(s): input:analog-stereo, output:analog-stereo+input:analog-stereo, output:analog-surround-21+input:analog-stereo, output:analog-surround-40+input:analog-stereo, output:analog-surround-41+input:analog-stereo, output:analog-surround-50+input:analog-stereo, output:analog-surround-51+input:analog-stereo, output:iec958-stereo+input:analog-stereo
                analog-output-lineout: Line Out (type: Line, priority: 9000, latency offset: 0 usec, availability group: Legacy 4, not available)
                        Properties:
                                port.type = "line"
                                port.availability-group = "Legacy 4"
                                card.profile.port = "3"
                        Part of profile(s): output:analog-stereo, output:analog-stereo+input:analog-stereo, output:analog-surround-21, output:analog-surround-21+input:analog-stereo, output:analog-surround-40, output:analog-surround-40+input:analog-stereo, output:analog-surround-41, output:analog-surround-41+input:analog-stereo, output:analog-surround-50, output:analog-surround-50+input:analog-stereo, output:analog-surround-51, output:analog-surround-51+input:analog-stereo
                analog-output-headphones: Headphones (type: Headphones, priority: 9900, latency offset: 0 usec, availability group: Legacy 5, available)
                        Properties:
                                port.type = "headphones"
                                port.availability-group = "Legacy 5"
                                device.icon_name = "audio-headphones"
                                card.profile.port = "4"
                        Part of profile(s): output:analog-stereo, output:analog-stereo+input:analog-stereo
                iec958-stereo-output: Digital Output (S/PDIF) (type: SPDIF, priority: 0, latency offset: 0 usec, availability unknown)
                        Properties:
                                port.type = "spdif"
                                card.profile.port = "5"
                        Part of profile(s): output:iec958-stereo, output:iec958-stereo+input:analog-stereo

ALSA information: http://alsa-project.org/db/?f=391a52c88689b1b8f3acb4731830853abb0be776

Ok, so which TV/monitor are you trying to send audio to? (The Philips TV?)

The wpctl status output suggests HDMI is already selected.

Try testing audio to this sink using the following command…
pw-play /usr/share/sounds/alsa/Front_Center.wav -d 57
Do you hear anything?

Yes, the Philips TV is where I want the sound.

pw-play gives an error but I used the sound settings panel to test sounds and only the headphones work. I was switching the output device obviously before testing the HDMI sound.

❯ pw-play /usr/share/sounds/alsa/Front_Center.wav -d 57
dsdfile: can't read dsd file '/usr/share/sounds/alsa/Front_Center.wav': Invalid argument
error: open failed: Invalid argument

Thank you both for your time by the way.

Ok, try a test from the ALSA level. First run
aplay -l
That will tell us the card and device numbers.

For example (card 0, device 3), you would do something like
aplay -D plughw:0,3 /usr/share/sounds/alsa/Front_Center.wav

I agree to try this test that was suggested. The idea is to bypass pw-play and test HDMI directly. This may help localize location of the problem.

This failure surprised me.

Another idea given you noted pw-play /usr/share/sounds/alsa/Front_Center.wav -d 57 " did not work.
… My understanding is that the path here is: WAV file → pw-play’s file decoder → PipeWire native API → HDMI

You could instead try
paplay /usr/share/sounds/alsa/Front_Center.wav” . Does that work?
… the path here is: WAV file → paplay’s file decoder → PulseAudio API → pipewire-pulse → PipeWire → HDMI

ie … route the audio through PulseAudio’s API , then via pipe-wire-pulse to PipeWire to HDMI. I can explain later the idea if asked.

What I am trying to do is localize where the problem may be (and possibly work around another aspect).

Further to the above, I found an archlinux topic discussing an issue with a Philips TV. It seems some Philips TVs have limited HDMI audio support. It is possible to set the Philips sink as a 2-channel, 16-bit PCM (S16LE) device, which most TVs support.

To do that with openSUSE, you’d need to create an override. First create the directory “/etc/wireplumber/wireplumber.conf.d” with
sudo mkdir -p /etc/wireplumber/wireplumber.conf.d
then create “51-philips-tv.conf” with
sudo nano /etc/wireplumber/wireplumber.conf.d/50-philips-tv.conf and enter the following

  "monitor.alsa.rules": [
    {
      matches: [
        {
          "alsa.name": "matches:PHILIPS FTV",
          "node.name": "matches:alsa_output.*"
        }
      ],
      actions: {
        update-props: {
          "audio.format": "S16LE",
          "audio.channels": 2,
          "audio.position": [ "FR", "FL" ]
        }
      }
    }
  ]
}

Save when done and restart WirePlumber
systemctl --user restart wireplumber
Check if HDMI audio is now working as expected.

Is there not an inappropriate extra closing brace ( } ) at the end ? … Apologies if i am wrong … i am just being a ‘bean counter’ here.

My bad…typos…that should have been

monitor.alsa.rules = {
  {
    matches = {
      {
        { "alsa.name", "matches", "PHILIPS FTV" },
        { "node.name", "matches", "alsa_output.*" },
      },
    },
    actions = {
      ["update-props"] = {
        ["audio.format"]   = "S16LE",
        ["audio.channels"] = 2,
        ["audio.position"] = { "FR", "FL" },
      },
    },
  },
}

The -d option is not valid. It should have just been
pw-play /usr/share/sounds/alsa/Front_Center.wav
(I was confusing it with paplay which does have that option.)

-d means DSD mode, not destination. And you cannot use IDs shown by wpctl with pw-play. You need to use pactl list sinks.

bor@bor-Latitude-E5450:~$ pactl list short sinks
53	alsa_output.pci-0000_00_1b.0.analog-stereo	PipeWire	s32le 2-канальный 4800SUSPENDED
1193	alsa_output.pci-0000_00_03.0.hdmi-stereo	PipeWire	s32le 2-канальный 4800SUSPENDED
bor@bor-Latitude-E5450:~$ pw-play --target 1193 ...

Ok, but I mixed it up with paplay as already mentioned.

Guys, it suddenly works after turning on my pc again. I wish I had a better explanation on what fixed it but nope.

Thank you everyone who offered help.

Thanks for the update. Glad it is now working as expected.