No HDMI sound with Nvidia HDA

Hi everyone!

I can’t get audio working through HDMI with Nvidia. I’m running Manjaro KDE with the latest stable update.

My hardware situation is a laptop with hybrid graphics (HP Omen 15 with ryzen 7 and nvidia geforce 2060). The HDMI works fine with my external monitor but does not see its speakers.

I’ve commented out this line
ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x040300", ATTR{remove}="1"
here
/etc/udev/rules.d/90-mhwd-prime-powermanagement.rules

After doing so alsamixer was finally able to recognize Nvidia HDA. However, in the audio settings HDMI sound profile is missing. I believe that is due to the fact that it is not being recognized as a card.
These are my outputs:

aplay -l

**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 10: HDMI 4 [HDMI 4]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 11: HDMI 5 [HDMI 5]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic [HD-Audio Generic], device 0: ALC245 Analog [ALC245 Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
**pacmd list-cards**
    1 card(s) available.
        index: 0
            name: <alsa_card.pci-0000_06_00.6>
            driver: <module-alsa-card.c>
            owner module: 8
            properties:
                    alsa.card = "1"
                    alsa.card_name = "HD-Audio Generic"
                    alsa.long_card_name = "HD-Audio Generic at 0xfc5c0000 irq 84"
                    alsa.driver_name = "snd_hda_intel"
                    device.bus_path = "pci-0000:06:00.6"
                    sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:06:00.6/sound/card1"
                    device.bus = "pci"
                    device.vendor.id = "1022"
                    device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
                    device.product.id = "15e3"
                    device.product.name = "Family 17h (Models 10h-1fh) HD Audio Controller"
                    device.string = "1"
                    device.description = "Family 17h (Models 10h-1fh) HD Audio Controller"
                    module-udev-detect.discovered = "1"
                    device.icon_name = "audio-card-pci"
            profiles:
                    HiFi: Play HiFi quality Music (priority 8000, available: unknown)
                    off: Off (priority 0, available: unknown)
            active profile: <HiFi>
            sinks:
                    alsa_output.pci-0000_06_00.6.HiFi__hw_Generic__sink/#0: Family 17h (Models 10h-1fh) HD Audio Controller Speaker + Headphones
            sources:
                    alsa_output.pci-0000_06_00.6.HiFi__hw_Generic__sink.monitor/#0: Monitor of Family 17h (Models 10h-1fh) HD Audio Controller Speaker + Headphones
                    alsa_input.pci-0000_06_00.6.HiFi__hw_acp__source/#1: Family 17h (Models 10h-1fh) HD Audio Controller Digital Microphone
                    alsa_input.pci-0000_06_00.6.HiFi__hw_Generic__source/#2: Family 17h (Models 10h-1fh) HD Audio Controller Headphones Stereo Microphone
            ports:
                    [Out] Speaker: Speaker (priority 100, latency offset 0 usec, available: unknown)
                            properties:

                    [Out] Headphones: Headphones (priority 200, latency offset 0 usec, available: yes)
                            properties:

                    [In] Mic1: Digital Microphone (priority 100, latency offset 0 usec, available: unknown)
                            properties:

                    [In] Mic2: Headphones Stereo Microphone (priority 200, latency offset 0 usec, available: yes)
                            properties:

Not really sure what to do here. Any help will be highly appreciated!

Linux hardware scans show 5 different model numbers for HP Omen 15 (and there may be more that have not had a hardware scan)

please post system information to identify the full model number

inxi -Fazy

The GPU is shown in ALSA as card 0
card 0: NVidia [HDA NVidia]
card 1: Generic [HD-Audio Generic], device 0: ALC245 Analog [ALC245 Analog]

The card should also be detected in PulseAudio, even if the active profile is set to ‘off’ and it is not in use

Please post full ALSA information so I can look for any possible errors

sudo alsa-info.sh --upload

and this to check for any PulseAudio errors

systemctl --user status pulseaudio
1 Like

Appreciate the detailed instructions!

Here are the outputs:

inxi -Fazy

System:
  Kernel: 5.10.34-1-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.0 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64 
  root=UUID=ab738414-a0f0-4ed2-bb23-34b1d4814e2a ro quiet apparmor=1 
  security=apparmor udev.log_priority=3 
  resume=/dev/disk/by-uuid/ab738414-a0f0-4ed2-bb23-34b1d4814e2a 
  resume_offset=98310144 
  Desktop: KDE Plasma 5.21.4 tk: Qt 5.15.2 wm: kwin_x11 vt: 1 dm: SDDM 
  Distro: Manjaro Linux base: Arch Linux 
Machine:
  Type: Laptop System: HP product: OMEN Laptop 15-en0xxx v: N/A 
  serial: <filter> Chassis: type: 10 serial: <filter> 
  Mobo: HP model: 8787 v: 22.54 serial: <filter> UEFI: AMI v: F.07 
  date: 09/16/2020 
Battery:
  ID-1: BAT0 charge: 65.0 Wh (100.0%) condition: 65.0/65.0 Wh (100.0%) 
  volts: 12.9 min: 11.6 model: Hewlett-Packard Primary type: Li-ion 
  serial: N/A status: Full cycles: 585 
CPU:
  Info: 8-Core model: AMD Ryzen 7 4800H with Radeon Graphics bits: 64 
  type: MT MCP arch: Zen 2 family: 17 (23) model-id: 60 (96) stepping: 1 
  microcode: 8600103 cache: L2: 4 MiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm 
  bogomips: 92623 
  Speed: 1661 MHz min/max: 1400/2900 MHz boost: enabled Core speeds (MHz): 
  1: 1661 2: 1397 3: 2357 4: 1986 5: 2810 6: 3117 7: 1730 8: 1884 9: 1608 
  10: 1420 11: 1468 12: 1621 13: 1773 14: 2019 15: 3126 16: 3791 
  Vulnerabilities: Type: itlb_multihit status: Not affected 
  Type: l1tf status: Not affected 
  Type: mds status: Not affected 
  Type: meltdown status: Not affected 
  Type: spec_store_bypass 
  mitigation: Speculative Store Bypass disabled via prctl and seccomp 
  Type: spectre_v1 
  mitigation: usercopy/swapgs barriers and __user pointer sanitization 
  Type: spectre_v2 mitigation: Full AMD retpoline, IBPB: conditional, IBRS_FW, 
  STIBP: conditional, RSB filling 
  Type: srbds status: Not affected 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: NVIDIA TU106M [GeForce RTX 2060 Mobile] vendor: Hewlett-Packard 
  driver: nvidia v: 460.73.01 alternate: nouveau,nvidia_drm bus-ID: 01:00.0 
  chip-ID: 10de:1f15 class-ID: 0300 
  Device-2: AMD Renoir vendor: Hewlett-Packard driver: amdgpu v: kernel 
  bus-ID: 06:00.0 chip-ID: 1002:1636 class-ID: 0300 
  Device-3: Luxvisions Innotech Limited HP Wide Vision HD Camera type: USB 
  driver: uvcvideo bus-ID: 3-3:2 chip-ID: 30c9:000e class-ID: 0e02 
  Display: x11 server: X.Org 1.20.11 compositor: kwin_x11 driver: 
  loaded: amdgpu,ati,nvidia unloaded: modesetting,nouveau 
  alternate: fbdev,nv,vesa display-ID: :0 screens: 1 
  Screen-1: 0 s-res: 2560x1440 s-dpi: 107 s-size: 608x342mm (23.9x13.5") 
  s-diag: 698mm (27.5") 
  Monitor-1: HDMI-0 res: 2560x1440 dpi: 109 size: 597x336mm (23.5x13.2") 
  diag: 685mm (27") 
  OpenGL: renderer: GeForce RTX 2060/PCIe/SSE2 v: 4.6.0 NVIDIA 460.73.01 
  direct render: Yes 
Audio:
  Device-1: NVIDIA TU106 High Definition Audio vendor: Hewlett-Packard 
  driver: snd_hda_intel v: kernel bus-ID: 01:00.1 chip-ID: 10de:10f9 
  class-ID: 0403 
  Device-2: AMD Raven/Raven2/FireFlight/Renoir Audio Processor 
  vendor: Hewlett-Packard driver: snd_rn_pci_acp3x v: kernel 
  alternate: snd_pci_acp3x bus-ID: 06:00.5 chip-ID: 1022:15e2 class-ID: 0480 
  Device-3: AMD Family 17h HD Audio vendor: Hewlett-Packard 
  driver: snd_hda_intel v: kernel bus-ID: 06:00.6 chip-ID: 1022:15e3 
  class-ID: 0403 
  Sound Server-1: ALSA v: k5.10.34-1-MANJARO running: yes 
  Sound Server-2: JACK v: 0.125.0 running: no 
  Sound Server-3: PulseAudio v: 14.2 running: yes 
  Sound Server-4: PipeWire v: 0.3.26 running: no 
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: Hewlett-Packard driver: r8169 v: kernel port: e000 bus-ID: 02:00.0 
  chip-ID: 10ec:8168 class-ID: 0200 
  IF: eno1 state: down mac: <filter> 
  Device-2: Realtek RTL8822CE 802.11ac PCIe Wireless Network Adapter 
  vendor: Hewlett-Packard driver: rtw_8822ce v: N/A modules: rtw88_8822ce 
  port: d000 bus-ID: 03:00.0 chip-ID: 10ec:c822 class-ID: 0280 
  IF: wlo1 state: up mac: <filter> 
Bluetooth:
  Device-1: Realtek Bluetooth Radio type: USB driver: btusb v: 0.8 
  bus-ID: 3-4:3 chip-ID: 0bda:b00c class-ID: e001 serial: <filter> 
  Report: rfkill ID: hci0 rfk-id: 1 state: down bt-service: enabled,running 
  rfk-block: hardware: no software: yes address: see --recommends 
Drives:
  Local Storage: total: 953.87 GiB used: 54.03 GiB (5.7%) 
  SMART Message: Unable to run smartctl. Root privileges required. 
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung model: MZVLB1T0HBLR-000H1 
  size: 953.87 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s 
  lanes: 4 rotation: SSD serial: <filter> rev: HPS0NEXF temp: 38.9 C 
  scheme: GPT 
Partition:
  ID-1: / raw-size: 635.34 GiB size: 624.37 GiB (98.27%) 
  used: 53.94 GiB (8.6%) fs: ext4 dev: /dev/nvme0n1p5 maj-min: 259:5 
  ID-2: /boot/efi raw-size: 260 MiB size: 256 MiB (98.46%) 
  used: 83.8 MiB (32.7%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1 
Swap:
  Kernel: swappiness: 10 (default 60) cache-pressure: 100 (default) 
  ID-1: swap-1 type: file size: 16 GiB used: 0 KiB (0.0%) priority: -2 
  file: /swapfile 
Sensors:
  System Temperatures: cpu: 72.8 C mobo: 71.0 C 
  Fan Speeds (RPM): N/A 
  GPU: device: nvidia screen: :0.0 temp: 52 C device: amdgpu temp: 53.0 C 
Info:
  Processes: 382 Uptime: 3m wakeups: 1 Memory: 15.07 GiB 
  used: 3.53 GiB (23.4%) Init: systemd v: 247 tool: systemctl Compilers: 
  gcc: 10.2.0 Packages: 1429 pacman: 1414 lib: 435 flatpak: 0 snap: 15 
  Shell: Zsh v: 5.8 running-in: konsole inxi: 3.3.04 

sudo alsa-info.sh --upload is here

And it seems like PulseAudio has produced only errors :cold_sweat:

● pulseaudio.service - Sound Service
     Loaded: loaded (/usr/lib/systemd/user/pulseaudio.service; disabled; vendor preset: enabled)
     Active: active (running) since Mon 2021-05-10 04:26:55 MSK; 2h 50min left
TriggeredBy: ● pulseaudio.socket
   Main PID: 1545 (pulseaudio)
     CGroup: /user.slice/user-1000.slice/user@1000.service/app.slice/pulseaudio.service
             ├─1545 /usr/bin/pulseaudio --daemonize=no --log-target=journal
             └─1654 /usr/lib/pulse/gsettings-helper

May 10 04:26:55 omen pulseaudio[1545]: Failed to load module "module-alsa-card" (argument: "device_id="0" name="pci-0000_01_00.1" card_name="alsa_card.pci-0000_01_00.1" namereg_fail=false tsched=yes fixed_latency_range=no i>
May 10 04:26:55 omen pulseaudio[1545]: Failed to find a working profile.
May 10 04:26:55 omen pulseaudio[1545]: Failed to load module "module-alsa-card" (argument: "device_id="0" name="pci-0000_01_00.1" card_name="alsa_card.pci-0000_01_00.1" namereg_fail=false tsched=yes fixed_latency_range=no i>
May 10 04:26:55 omen pulseaudio[1545]: Failed to find a working profile.
May 10 04:26:55 omen pulseaudio[1545]: Failed to load module "module-alsa-card" (argument: "device_id="0" name="pci-0000_01_00.1" card_name="alsa_card.pci-0000_01_00.1" namereg_fail=false tsched=yes fixed_latency_range=no i>
May 10 04:26:55 omen pulseaudio[1545]: Failed to find a working profile.
May 10 04:26:55 omen pulseaudio[1545]: Failed to load module "module-alsa-card" (argument: "device_id="0" name="pci-0000_01_00.1" card_name="alsa_card.pci-0000_01_00.1" namereg_fail=false tsched=yes fixed_latency_range=no i>
May 10 04:26:55 omen pulseaudio[1545]: Failed to find a working profile.
May 10 04:26:55 omen pulseaudio[1545]: Failed to load module "module-alsa-card" (argument: "device_id="0" name="pci-0000_01_00.1" card_name="alsa_card.pci-0000_01_00.1" namereg_fail=false tsched=yes fixed_latency_range=no i>
May 10 04:26:55 omen pulseaudio[1545]: Tried to configure /devices/pci0000:00/0000:00:01.1/0000:01:00.1/sound/card0 (alsa_card.pci-0000_01_00.1) more often than 5 times in 10s

PulseAudio is showing 5 failed attempts to detect the HDMI audio device

But HDMI device appears to be detected without problems in ALSA

ALSA data is showing the internal digital array microphone DMIC is detected as an audio capture device

card 2: acp [acp], device 0: DMIC capture dmic-hifi-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0

but there is no information about snd_acp3x_rn

!!Loaded sound module options

!!Module: snd_acp3x_rn
	* : 

If the DMIC is not functioning correctly it might be causing a problem for other digital audio devices

I suggest you try using later kernel v5.11 or v5.12 that might have better support for snd_acp3x_rn driver

ALSA data is also showing a message about another device that does not appear to be audio related

[ 3.277021] ccp 0000:06:00.2: ccp: unable to access the device: you might be running a broken BIOS.

I suggest you check manufacturer’s website for a BIOS update

If audio is still not working with a later kernel, I suggest you use an audio player configured to play audio direct to the ALSA HDMI output instead of through PulseAudio

1 Like

Thank you for your help!

I’m marking your reply as a solution because you have provided several actual ways to go about my issue. If I’m able to find out which one of those specifically solved the problem, I will update my original post.

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.