How enable HDMI Audio output to HDMI Sound Bar input?

Hello everyone,
I have been working and learning several Arch Linux based Distros for 3 years
and one year with Manjaro Linux.

I only have 2 pending issues to resolve.
One of them has been
how to enable audio output from my nVidia video card
to the HDMI audio input on my sound bar.

I have tried many tutorials out there but none have worked.

I leave you below the status of my PC:

inxi -SMAa

System:
  Host: HpLnx Kernel: 5.15.85-1-MANJARO arch: x86_64 bits: 64 compiler: gcc
    v: 12.2.0 parameters: BOOT_IMAGE=/boot/vmlinuz-5.15-x86_64
    root=UUID=d4eb0b1a-d4a1-4124-ae88-4556adedf113 rw quiet apparmor=1
    security=apparmor udev.log_priority=3
  Desktop: KDE Plasma v: 5.26.4 tk: Qt v: 5.15.7 wm: kwin_x11 vt: 1 dm: SDDM
    Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Desktop System: Hewlett-Packard product: HP EliteDesk 800 G1 SFF
    v: N/A serial: <superuser required> Chassis: type: 4
    serial: <superuser required>
  Mobo: Hewlett-Packard model: 1998 serial: <superuser required>
    UEFI: Hewlett-Packard v: L01 v02.33 date: 07/15/2014
Audio:
  Device-1: Intel Xeon E3-1200 v3/4th Gen Core Processor HD Audio
    vendor: Hewlett-Packard EliteDesk 800 G1 driver: snd_hda_intel v: kernel
    bus-ID: 00:03.0 chip-ID: 8086:0c0c class-ID: 0403
  Device-2: Intel 8 Series/C220 Series High Definition Audio
    vendor: Hewlett-Packard EliteDesk 800 G1 driver: snd_hda_intel v: kernel
    bus-ID: 00:1b.0 chip-ID: 8086:8c20 class-ID: 0403
  Device-3: NVIDIA GK208 HDMI/DP Audio vendor: ASUSTeK driver: snd_hda_intel
    v: kernel pcie: gen: 2 speed: 5 GT/s lanes: 8 bus-ID: 01:00.1
    chip-ID: 10de:0e0f class-ID: 0403
  Sound API: ALSA v: k5.15.85-1-MANJARO running: yes
  Sound Server-1: JACK v: 1.9.21 running: no
  Sound Server-2: PulseAudio v: 16.1 running: no
  Sound Server-3: PipeWire v: 0.3.63 running: yes

pacmd dump && pacmd list-cards

### Configuration dump generated at Sat Jan 21 16:26:40 2023

load-module module-device-restore
load-module module-stream-restore
load-module module-card-restore
load-module module-augment-properties
load-module module-switch-on-port-available
load-module module-udev-detect
load-module module-alsa-card device_id="2" name="pci-0000_01_00.1" card_name="alsa_card.pci-0000_01_00.1" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes avoid_resampling=no card_properties="module-udev-detect.discovered=1"
load-module module-alsa-card device_id="0" name="pci-0000_00_03.0" card_name="alsa_card.pci-0000_00_03.0" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes avoid_resampling=no card_properties="module-udev-detect.discovered=1"
load-module module-alsa-card device_id="1" name="pci-0000_00_1b.0" card_name="alsa_card.pci-0000_00_1b.0" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes avoid_resampling=no card_properties="module-udev-detect.discovered=1"
load-module module-jackdbus-detect channels=2
load-module module-bluetooth-policy
load-module module-bluetooth-discover
load-module module-bluez5-discover
load-module module-dbus-protocol
load-module module-native-protocol-unix
load-module module-gsettings
load-module module-combine 
load-module module-combine-sink 
load-module module-default-device-restore
load-module module-always-sink
load-module module-intended-roles
load-module module-suspend-on-idle
load-module module-console-kit
load-module module-systemd-login
load-module module-position-event-sounds
load-module module-role-cork
load-module module-filter-heuristics
load-module module-filter-apply
load-module module-cli-protocol-unix

set-sink-volume alsa_output.pci-0000_00_1b.0.analog-stereo 0x10000
set-sink-mute alsa_output.pci-0000_00_1b.0.analog-stereo no
suspend-sink alsa_output.pci-0000_00_1b.0.analog-stereo yes
set-sink-volume combined 0x10000
set-sink-mute combined no
suspend-sink combined yes

set-source-volume alsa_output.pci-0000_00_1b.0.analog-stereo.monitor 0x10000
set-source-mute alsa_output.pci-0000_00_1b.0.analog-stereo.monitor no
suspend-source alsa_output.pci-0000_00_1b.0.analog-stereo.monitor yes
set-source-volume combined.monitor 0x10000
set-source-mute combined.monitor no
suspend-source combined.monitor yes

set-card-profile alsa_card.pci-0000_01_00.1 off
set-card-profile alsa_card.pci-0000_00_03.0 off
set-card-profile alsa_card.pci-0000_00_1b.0 output:analog-stereo

set-default-sink alsa_output.pci-0000_00_1b.0.analog-stereo
set-default-source alsa_output.pci-0000_00_1b.0.analog-stereo.monitor

### EOF
3 card(s) available.
    index: 0
        name: <alsa_card.pci-0000_01_00.1>
        driver: <module-alsa-card.c>
        owner module: 6
        properties:
                alsa.card = "2"
                alsa.card_name = "HDA NVidia"
                alsa.long_card_name = "HDA NVidia at 0xf7080000 irq 17"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:01:00.1"
                sysfs.path = "/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card2"
                device.bus = "pci"
                device.vendor.id = "10de"
                device.vendor.name = "NVIDIA Corporation"
                device.product.id = "0e0f"
                device.product.name = "GK208 HDMI/DP Audio Controller"
                device.string = "2"
                device.description = "GK208 HDMI/DP Audio Controller"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        profiles:
                output:hdmi-stereo: Salida Digital Stereo (HDMI) (priority 5900, available: no)
                output:hdmi-surround: Salida Digital Surround 5.1 (HDMI) (priority 800, available: no)
                output:hdmi-surround71: Salida Digital Surround 7.1 (HDMI) (priority 800, available: no)
                output:hdmi-stereo-extra1: Salida Digital Stereo (HDMI 2) (priority 5700, available: no)
                output:hdmi-surround-extra1: Salida Digital Surround 5.1 (HDMI 2) (priority 600, available: no)
                output:hdmi-surround71-extra1: Salida Digital Surround 7.1 (HDMI 2) (priority 600, available: no)
                output:hdmi-stereo-extra2: Salida Digital Stereo (HDMI 3) (priority 5700, available: no)
                output:hdmi-surround-extra2: Salida Digital Surround 5.1 (HDMI 3) (priority 600, available: no)
                output:hdmi-surround71-extra2: Salida Digital Surround 7.1 (HDMI 3) (priority 600, available: no)
                output:hdmi-stereo-extra3: Salida Digital Stereo (HDMI 4) (priority 5700, available: no)
                output:hdmi-surround-extra3: Salida Digital Surround 5.1 (HDMI 4) (priority 600, available: no)
                output:hdmi-surround71-extra3: Salida Digital Surround 7.1 (HDMI 4) (priority 600, available: no)
                output:hdmi-stereo-extra4: Salida Digital Stereo (HDMI 5) (priority 5700, available: no)
                output:hdmi-surround-extra4: Salida Digital Surround 5.1 (HDMI 5) (priority 600, available: no)
                output:hdmi-surround71-extra4: Salida Digital Surround 7.1 (HDMI 5) (priority 600, available: no)
                off: Apagado (priority 0, available: unknown)
        active profile: <off>
        ports:
                hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "video-display"
                hdmi-output-1: HDMI / DisplayPort 2 (priority 5800, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "video-display"
                hdmi-output-2: HDMI / DisplayPort 3 (priority 5700, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "video-display"
                hdmi-output-3: HDMI / DisplayPort 4 (priority 5600, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "video-display"
                hdmi-output-4: HDMI / DisplayPort 5 (priority 5500, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "video-display"
    index: 1
        name: <alsa_card.pci-0000_00_03.0>
        driver: <module-alsa-card.c>
        owner module: 7
        properties:
                alsa.card = "0"
                alsa.card_name = "HDA Intel HDMI"
                alsa.long_card_name = "HDA Intel HDMI at 0xf7834000 irq 31"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:00:03.0"
                sysfs.path = "/devices/pci0000:00/0000:00:03.0/sound/card0"
                device.bus = "pci"
                device.vendor.id = "8086"
                device.vendor.name = "Intel Corporation"
                device.product.id = "0c0c"
                device.product.name = "Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller (EliteDesk 800 G1)"
                device.form_factor = "internal"
                device.string = "0"
                device.description = "Audio Interno"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        profiles:
                output:hdmi-stereo: Salida Digital Stereo (HDMI) (priority 5900, available: no)
                output:hdmi-surround: Salida Digital Surround 5.1 (HDMI) (priority 800, available: no)
                output:hdmi-surround71: Salida Digital Surround 7.1 (HDMI) (priority 800, available: no)
                output:hdmi-stereo-extra1: Salida Digital Stereo (HDMI 2) (priority 5700, available: no)
                output:hdmi-surround-extra1: Salida Digital Surround 5.1 (HDMI 2) (priority 600, available: no)
                output:hdmi-surround71-extra1: Salida Digital Surround 7.1 (HDMI 2) (priority 600, available: no)
                output:hdmi-stereo-extra2: Salida Digital Stereo (HDMI 3) (priority 5700, available: no)
                output:hdmi-surround-extra2: Salida Digital Surround 5.1 (HDMI 3) (priority 600, available: no)
                output:hdmi-surround71-extra2: Salida Digital Surround 7.1 (HDMI 3) (priority 600, available: no)
                output:hdmi-stereo-extra3: Salida Digital Stereo (HDMI 4) (priority 5700, available: no)
                output:hdmi-surround-extra3: Salida Digital Surround 5.1 (HDMI 4) (priority 600, available: no)
                output:hdmi-surround71-extra3: Salida Digital Surround 7.1 (HDMI 4) (priority 600, available: no)
                output:hdmi-stereo-extra4: Salida Digital Stereo (HDMI 5) (priority 5700, available: no)
                output:hdmi-surround-extra4: Salida Digital Surround 5.1 (HDMI 5) (priority 600, available: no)
                output:hdmi-surround71-extra4: Salida Digital Surround 7.1 (HDMI 5) (priority 600, available: no)
                off: Apagado (priority 0, available: unknown)
        active profile: <off>
        ports:
                hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "video-display"
                hdmi-output-1: HDMI / DisplayPort 2 (priority 5800, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "video-display"
                hdmi-output-2: HDMI / DisplayPort 3 (priority 5700, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "video-display"
                hdmi-output-3: HDMI / DisplayPort 4 (priority 5600, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "video-display"
                hdmi-output-4: HDMI / DisplayPort 5 (priority 5500, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "video-display"
    index: 2
        name: <alsa_card.pci-0000_00_1b.0>
        driver: <module-alsa-card.c>
        owner module: 8
        properties:
                alsa.card = "1"
                alsa.card_name = "HDA Intel PCH"
                alsa.long_card_name = "HDA Intel PCH at 0xf7830000 irq 29"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:00:1b.0"
                sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card1"
                device.bus = "pci"
                device.vendor.id = "8086"
                device.vendor.name = "Intel Corporation"
                device.product.id = "8c20"
                device.product.name = "8 Series/C220 Series Chipset High Definition Audio Controller (EliteDesk 800 G1)"
                device.form_factor = "internal"
                device.string = "1"
                device.description = "Audio Interno"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        profiles:
                input:analog-stereo: Entrada Estéreo analógico (priority 65, available: no)
                output:analog-stereo: Salida Estéreo analógico (priority 39268, available: unknown)
                output:analog-stereo+input:analog-stereo: Estéreo analógico dúplex (priority 6565, available: unknown)
                off: Apagado (priority 0, available: unknown)
        active profile: <output:analog-stereo>
        sinks:
                alsa_output.pci-0000_00_1b.0.analog-stereo/#0: Audio Interno Estéreo analógico
        sources:
                alsa_output.pci-0000_00_1b.0.analog-stereo.monitor/#0: Monitor of Audio Interno Estéreo analógico
        ports:
                analog-input-mic: Microphone (priority 8700, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "audio-input-microphone"
                analog-input-linein: Line In (priority 8100, latency offset 0 usec, available: no)
                        properties:

                analog-output-lineout: Line Out (priority 9000, latency offset 0 usec, available: no)
                        properties:

                analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: unknown)
                        properties:
                                device.icon_name = "audio-speakers"
                analog-output-headphones: Headphones (priority 9900, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "audio-headphones"

Thank you in advance

Hello @harrymagic :wink:

Well… that pretty much very crude information. In general and I don’t think you are that kind of a DAU, you need to switch the profile, for example in pavucontrol, but I guess KDE has its own GUI.

Since you are using only_

I would suggest: qpwgraph, it is GUI for pipewire to patch sound connections, similar to jack.

So I see you have 3 sound cards:

  • HDA Intel PCH
  • HDA Intel HDMI
  • HDA NVidia

That makes me think that you have a hybrid card. Intel PCH and Intel HDMI should work, since it is runinng on the iGPU, but not nvidia. You need to switch to the nvidia gpu normally, if you wanna enable HDMI sound there. I guess you can passthrough the HDMI screen output, but not the sound. Maybe qpwgraph can help you here although never tested that way.

Ok @megavolt
I just found several topics about PipeWire with several patchbay
(qpwgraph, WirePlumber, Carla & QJackCtl),
So I’m going to test these apps.

Thank you.