No audion over HDMI / Display Port Ubuntu 22.04 and RTX 3060 notebook

Hi,

Audio over DP and HDMI work fine on Windows 11 with my DELL G15 Ryzen 7 5800H NVIDIA RTX 3060 notebook and monitor with speakers.

However, on Linux it doesn’t display the neither HDMI nor DP output options when attached to the same monitor mentioned above.

OS - Ubuntu 22.04
Kernel - 5.15.0-39
Driver - 510.73.05
Setup - Laptop with an external Monitor over DP connected (also tried HDMI)


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 1: Generic [HD-Audio Generic], device 0: ALC3254 Analog [ALC3254 Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0

lspci | grep -i audio

01:00.1 Audio device: NVIDIA Corporation Device 228e (rev a1)
06:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD] Raven/Raven2/FireFlight/Renoir Audio Processor (rev 01)
06:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) HD Audio Controller

lspci | grep -i nvidia

01:00.0 VGA compatible controller: NVIDIA Corporation GA106M [GeForce RTX 3060 Mobile / Max-Q] (rev a1)
01:00.1 Audio device: NVIDIA Corporation Device 228e (rev a1)

aplay -L

null
    Discard all samples (playback) or generate zero samples (capture)
default
    Playback/recording through the PulseAudio sound server
samplerate
    Rate Converter Plugin Using Samplerate Library
speexrate
    Rate Converter Plugin Using Speex Resampler
jack
    JACK Audio Connection Kit
oss
    Open Sound System
pulse
    PulseAudio Sound Server
upmix
    Plugin for channel upmix (4,6,8)
vdownmix
    Plugin for channel downmix (stereo) with a simple spacialization
hw:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    Direct hardware device without any conversions
hw:CARD=NVidia,DEV=7
    HDA NVidia, HDMI 1
    Direct hardware device without any conversions
hw:CARD=NVidia,DEV=8
    HDA NVidia, HDMI 2
    Direct hardware device without any conversions
hw:CARD=NVidia,DEV=9
    HDA NVidia, HDMI 3
    Direct hardware device without any conversions
hw:CARD=NVidia,DEV=10
    HDA NVidia, HDMI 4
    Direct hardware device without any conversions
plughw:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    Hardware device with all software conversions
plughw:CARD=NVidia,DEV=7
    HDA NVidia, HDMI 1
    Hardware device with all software conversions
plughw:CARD=NVidia,DEV=8
    HDA NVidia, HDMI 2
    Hardware device with all software conversions
plughw:CARD=NVidia,DEV=9
    HDA NVidia, HDMI 3
    Hardware device with all software conversions
plughw:CARD=NVidia,DEV=10
    HDA NVidia, HDMI 4
    Hardware device with all software conversions
hdmi:CARD=NVidia,DEV=0
    HDA NVidia, HDMI 0
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=1
    HDA NVidia, HDMI 1
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=2
    HDA NVidia, HDMI 2
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 3
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=4
    HDA NVidia, HDMI 4
    HDMI Audio Output
dmix:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    Direct sample mixing device
dmix:CARD=NVidia,DEV=7
    HDA NVidia, HDMI 1
    Direct sample mixing device
dmix:CARD=NVidia,DEV=8
    HDA NVidia, HDMI 2
    Direct sample mixing device
dmix:CARD=NVidia,DEV=9
    HDA NVidia, HDMI 3
    Direct sample mixing device
dmix:CARD=NVidia,DEV=10
    HDA NVidia, HDMI 4
    Direct sample mixing device
usbstream:CARD=NVidia
    HDA NVidia
    USB Stream Output
hw:CARD=Generic,DEV=0
    HD-Audio Generic, ALC3254 Analog
    Direct hardware device without any conversions
plughw:CARD=Generic,DEV=0
    HD-Audio Generic, ALC3254 Analog
    Hardware device with all software conversions
sysdefault:CARD=Generic
    HD-Audio Generic, ALC3254 Analog
    Default Audio Device
front:CARD=Generic,DEV=0
    HD-Audio Generic, ALC3254 Analog
    Front output / input
surround21:CARD=Generic,DEV=0
    HD-Audio Generic, ALC3254 Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Generic,DEV=0
    HD-Audio Generic, ALC3254 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Generic,DEV=0
    HD-Audio Generic, ALC3254 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Generic,DEV=0
    HD-Audio Generic, ALC3254 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Generic,DEV=0
    HD-Audio Generic, ALC3254 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Generic,DEV=0
    HD-Audio Generic, ALC3254 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
dmix:CARD=Generic,DEV=0
    HD-Audio Generic, ALC3254 Analog
    Direct sample mixing device
usbstream:CARD=Generic
    HD-Audio Generic
    USB Stream Output
usbstream:CARD=acp
    acp
    USB Stream Output

I’ve tried solution proposed on thread “No option for audio over DisplayPort / HDMI” by user xKGx, but it didn’t work.

nvidia-bug-report.log.gz (395.7 KB)

The audio output of the monitor is actually detected fine by the driver:

*** /proc/asound/card0/eld#0.4
*** ls: -rw-r--r-- 1 root root 0 2022-06-17 11:59:55.767892509 -0300 /proc/asound/card0/eld#0.4
monitor_present		1
eld_valid		1
monitor_name		2460G4
      
connection_type		DisplayPort
eld_version		[0x2] CEA-861D or below
edid_version		[0x3] CEA-861-B, C or D
manufacture_id		0xe305
product_id		0x246a
port_id			0x400
support_hdcp		0
support_ai		0
audio_sync_delay	0
speakers		[0x1] FL/FR
sad_count		1
sad0_coding_type	[0x1] LPCM
sad0_channels		2
sad0_rates		[0xe0] 32000 44100 48000
sad0_bits		[0xe0000] 16 20 24

Doesn’t it show up at all in gnome contorlcenter - audio?

Hi!
Did you solved this issue?
I have the exact same hardware and OS as you and I have the same issue, that is, the HDMI audio option doesn’t show in gnomecontrolcenter audio

EDIT:
The only audio device that shows in gnomecontrolcenter is the AMD one (Family 17h…)
lspci output:

Apparently it seems that the NVIDIA audio device is missing from some Ubuntu internals…

The AMD device is the only option available in the sound output device.

No. The only option displayed for selection in gnome control center - audio is “Speaker - Family 17h (Models 10h-1fh) HD Audio Controller”.

I have the same problem on RHEL. Can this be resolved please?

After I

  1. installed the old nvidia-driver-470 driver
  2. pulseaudio -k && sudo alsa force-reload

everything worked. I don’t know if point 2 is needed

Had the same issue, can confirm that erezn64’s steps worked for me. Rig was fairly similar to OP, and also I did not need to use step 2. After reverting the nvidia driver and rebooting, my HDMI audio from my monitor was displayed again.

I’m on Ubuntu 22.10 now.
Nvidia Driver 530.41.03.

I’ve tried to install driver 470, but it crashes my setup.

I’ve used alsamixer to unmute the S/PDIF devices.

The following test works (audio output over DisplayPort)
speaker-test -c 2 -r 48000 -D hw:0,1

pavucontrol displays the nvidia card, but the profile is set to “off” and I can’t change it.

I think it may be related to this (see error message at the end of the output): Error opening PCM device _ucm0001.hw:NVidia,3: Device or resource busy.
spa-acp-tool -vvv -c 0 list-ports

UCM available for card hw:0
UCM _alibpref=_ucm0001.
Set UCM verb to HiFi
Got PlaybackPCM for device HDMI5: _ucm0001.hw:NVidia,10
Got PlaybackCTL for device HDMI5: _ucm0001.hw:NVidia
Got PlaybackPriority for device HDMI5: 1500
Got CaptureCTL for device HDMI5: _ucm0001.hw:NVidia
Got TQ for device HDMI5: HiFi
Got JackControl for device HDMI5: HDMI/DP,pcm=10 Jack
UCM file does not specify 'PlaybackChannels' for device HDMI5, assuming stereo.
No _conflictingdevs for device HDMI5
No _supporteddevs for device HDMI5
Got PlaybackPCM for device HDMI4: _ucm0001.hw:NVidia,9
Got PlaybackCTL for device HDMI4: _ucm0001.hw:NVidia
Got PlaybackPriority for device HDMI4: 1400
Got CaptureCTL for device HDMI4: _ucm0001.hw:NVidia
Got TQ for device HDMI4: HiFi
Got JackControl for device HDMI4: HDMI/DP,pcm=9 Jack
UCM file does not specify 'PlaybackChannels' for device HDMI4, assuming stereo.
No _conflictingdevs for device HDMI4
No _supporteddevs for device HDMI4
Got PlaybackPCM for device HDMI3: _ucm0001.hw:NVidia,8
Got PlaybackCTL for device HDMI3: _ucm0001.hw:NVidia
Got PlaybackPriority for device HDMI3: 1300
Got CaptureCTL for device HDMI3: _ucm0001.hw:NVidia
Got TQ for device HDMI3: HiFi
Got JackControl for device HDMI3: HDMI/DP,pcm=8 Jack
UCM file does not specify 'PlaybackChannels' for device HDMI3, assuming stereo.
No _conflictingdevs for device HDMI3
No _supporteddevs for device HDMI3
Got PlaybackPCM for device HDMI2: _ucm0001.hw:NVidia,7
Got PlaybackCTL for device HDMI2: _ucm0001.hw:NVidia
Got PlaybackPriority for device HDMI2: 1200
Got CaptureCTL for device HDMI2: _ucm0001.hw:NVidia
Got TQ for device HDMI2: HiFi
Got JackControl for device HDMI2: HDMI/DP,pcm=7 Jack
UCM file does not specify 'PlaybackChannels' for device HDMI2, assuming stereo.
No _conflictingdevs for device HDMI2
No _supporteddevs for device HDMI2
Got PlaybackPCM for device HDMI1: _ucm0001.hw:NVidia,3
Got PlaybackCTL for device HDMI1: _ucm0001.hw:NVidia
Got PlaybackPriority for device HDMI1: 1100
Got CaptureCTL for device HDMI1: _ucm0001.hw:NVidia
Got TQ for device HDMI1: HiFi
Got JackControl for device HDMI1: HDMI/DP,pcm=3 Jack
UCM file does not specify 'PlaybackChannels' for device HDMI1, assuming stereo.
No _conflictingdevs for device HDMI1
No _supporteddevs for device HDMI1
Found UCM profiles
UCM mapping: HiFi: hw:NVidia,10: sink dev HDMI5
UCM mapping: HiFi: hw:NVidia,9: sink dev HDMI4
UCM mapping: HiFi: hw:NVidia,8: sink dev HDMI3
UCM mapping: HiFi: hw:NVidia,7: sink dev HDMI2
UCM mapping: HiFi: hw:NVidia,3: sink dev HDMI1
Profile HiFi (Play HiFi quality Music), input=null, output=null priority=8000, supported=yes n_input_mappings=0, n_output_mappings=5
Output HiFi: hw:NVidia,10: sink
Output HiFi: hw:NVidia,9: sink
Output HiFi: hw:NVidia,8: sink
Output HiFi: hw:NVidia,7: sink
Output HiFi: hw:NVidia,3: sink
Set ucm verb to HiFi
Trying _ucm0001.hw:NVidia,10 with SND_PCM_NO_AUTO_FORMAT ...
ALSA device open '_ucm0001.hw:NVidia,10' playback: 0x560e3a47c800
Maximum hw buffer size is 21845 ms
Set buffer size first (to 4800 samples), period size second (to 1200 samples).
Trying _ucm0001.hw:NVidia,9 with SND_PCM_NO_AUTO_FORMAT ...
ALSA device open '_ucm0001.hw:NVidia,9' playback: 0x560e3a47cd30
Maximum hw buffer size is 21845 ms
Set buffer size first (to 4800 samples), period size second (to 1200 samples).
Trying _ucm0001.hw:NVidia,8 with SND_PCM_NO_AUTO_FORMAT ...
ALSA device open '_ucm0001.hw:NVidia,8' playback: 0x560e3a47c420
Maximum hw buffer size is 21845 ms
Set buffer size first (to 4800 samples), period size second (to 1200 samples).
Trying _ucm0001.hw:NVidia,7 with SND_PCM_NO_AUTO_FORMAT ...
ALSA device open '_ucm0001.hw:NVidia,7' playback: 0x560e3a47c180
Maximum hw buffer size is 21845 ms
Set buffer size first (to 4800 samples), period size second (to 1200 samples).
Trying _ucm0001.hw:NVidia,3 with SND_PCM_NO_AUTO_FORMAT ...
open '/dev/snd/pcmC0D3p' failed (-16)
Error opening PCM device _ucm0001.hw:NVidia,3: Device or resource busy
ALSA device close 0x560e3a47c800
ALSA device close 0x560e3a47cd30
ALSA device close 0x560e3a47c420
ALSA device close 0x560e3a47c180
Found 0 jacks.
activate profile: off (0)

Any help is greatly appreciated.