Bug 1172498

Summary: No audio through NVIDIA Quadro P400 display port
Product: [openSUSE] openSUSE Tumbleweed Reporter: Pace Freeman <pace>
Component: SoundAssignee: Takashi Iwai <tiwai>
Status: RESOLVED WONTFIX QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: pace
Version: Current   
Target Milestone: ---   
Hardware: x86-64   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: output from alsa -info.sh
Output from alsa on POP!_OS
Dmesg.txt

Description Pace Freeman 2020-06-04 07:04:55 UTC
Kernel 5.6.14.1 - OpenSuse Tumbleweed
Lenovo Thinkstation P330
Intel i7-8700 (12)
Intel UHD Graphics 630
NVIDIA Quadro P400

I have previously ran Debian Buster, POP!_OS and Fedora 31. All of which could pass the audio through the display port and to the speakers in my monitor. When moved to OpenSuse Tumbleweed, there was no option to do this. It looks like TW is not seeing any output device for the display port (normally it would show as a HDMI interface)


sudo aplay -L

    Discard all samples (playback) or generate zero samples (capture)
speexrate
    Rate Converter Plugin Using Speex Resampler
pipewire
    PipeWire Sound Server
pulse
    PulseAudio Sound Server
upmix
    Plugin for channel upmix (4,6,8)
default
    Default ALSA Output (currently PulseAudio Sound Server)
sysdefault:CARD=PCH
    HDA Intel PCH, ALC233 Analog
    Default Audio Device
front:CARD=PCH,DEV=0
    HDA Intel PCH, ALC233 Analog
    Front speakers
surround21:CARD=PCH,DEV=0
    HDA Intel PCH, ALC233 Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
    HDA Intel PCH, ALC233 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
    HDA Intel PCH, ALC233 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
    HDA Intel PCH, ALC233 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
    HDA Intel PCH, ALC233 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
    HDA Intel PCH, ALC233 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
hdmi:CARD=PCH,DEV=0
    HDA Intel PCH, HDMI 0
    HDMI Audio Output
hdmi:CARD=PCH,DEV=1
    HDA Intel PCH, HDMI 1
    HDMI Audio Output
hdmi:CARD=PCH,DEV=2
    HDA Intel PCH, HDMI 2
    HDMI Audio Output
hdmi:CARD=PCH,DEV=3
    HDA Intel PCH, HDMI 3
    HDMI Audio Output
hdmi:CARD=PCH,DEV=4
    HDA Intel PCH, HDMI 4
    HDMI Audio Output



cat /proc/asound/cards
 0 [PCH            ]: HDA-Intel - HDA Intel PCH
                      HDA Intel PCH at 0xb4230000 irq 142
 1 [C920           ]: USB-Audio - HD Pro Webcam C920
                      HD Pro Webcam C920 at usb-0000:00:14.0-7.2, high speed


sudo lspci
00:00.0 Host bridge: Intel Corporation 8th Gen Core Processor Host Bridge/DRAM Registers (rev 07)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor PCIe Controller (x16) (rev 07)
00:02.0 Display controller: Intel Corporation UHD Graphics 630 (Desktop)
00:08.0 System peripheral: Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model
00:14.0 USB controller: Intel Corporation Cannon Lake PCH USB 3.1 xHCI Host Controller (rev 10)
00:14.2 RAM memory: Intel Corporation Cannon Lake PCH Shared SRAM (rev 10)
00:14.3 Network controller: Intel Corporation Wireless-AC 9560 [Jefferson Peak] (rev 10)
00:15.0 Serial bus controller [0c80]: Intel Corporation Cannon Lake PCH Serial IO I2C Controller #0 (rev 10)
00:15.1 Serial bus controller [0c80]: Intel Corporation Cannon Lake PCH Serial IO I2C Controller #1 (rev 10)
00:16.0 Communication controller: Intel Corporation Cannon Lake PCH HECI Controller (rev 10)
00:16.3 Serial controller: Intel Corporation Cannon Lake PCH Active Management Technology - SOL (rev 10)
00:17.0 SATA controller: Intel Corporation Cannon Lake PCH SATA AHCI Controller (rev 10)
00:1e.0 Communication controller: Intel Corporation Cannon Lake PCH Serial IO UART Host Controller (rev 10)
00:1f.0 ISA bridge: Intel Corporation Cannon Point-LP LPC Controller (rev 10)
00:1f.3 Audio device: Intel Corporation Cannon Lake PCH cAVS (rev 10)
00:1f.4 SMBus: Intel Corporation Cannon Lake PCH SMBus Controller (rev 10)
00:1f.5 Serial bus controller [0c80]: Intel Corporation Cannon Lake PCH SPI Controller (rev 10)
00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection (7) I219-LM (rev 10)
01:00.0 VGA compatible controller: NVIDIA Corporation GP107GL [Quadro P400] (rev a1)
Comment 1 Takashi Iwai 2020-06-04 07:07:57 UTC
Please give alsa-info.sh output.  Run the script with --no-upload option and attach the output to Bugzilla.

Also, at best, give alsa-info.sh output from other OS that is supposed to work fine.
Comment 2 Pace Freeman 2020-06-04 07:37:29 UTC
Created attachment 838492 [details]
output from alsa -info.sh

As requested, data from alsa-info.sh
Comment 3 Pace Freeman 2020-06-04 07:39:44 UTC
I am unable to provide info from the other OS's, as I formatted the system. I do however have a complete system backup of my Debian Buster system, so if there is a file I can recover from the backup, I can provide it.
Comment 4 Takashi Iwai 2020-06-04 09:10:16 UTC
Are you sure that you had an HDMI audio output from Nvidia graphics?
Yours looks like a hybrid graphics, i.e. the all mode set is done on Intel graphics side while Nvidia chip does 3D rendering.  In that case, usually the whole HDMI audio is managed in Intel graphics, i.e. it's via Intel PCH.

The alsa-info.sh output indicates that HDMI audio devices are registered.
And HDMI should be available on PulseAudio output, too.
(Though, the connection state is negative; you took alsa-info.sh while not connecting to an HDMI monitor?)
Comment 5 Pace Freeman 2020-06-04 10:10:09 UTC
Although my Intel card has HDMI outputs, I have never used them at all. My monitor is, and always as been connected to one of the display ports on my NVIDIA card.

This is why the issue is quite strange for me.

Here is a link to the support document that NVIDA sent to me https://download.nvidia.com/XFree86/gpu-hdmi-audio-document/
Comment 6 Pace Freeman 2020-06-04 10:51:24 UTC
Created attachment 838502 [details]
Output from alsa on POP!_OS

I booted my system with a live USB version of POP!_OS, then ran alsa-info

The sound through my display ports works perfectly when I did this. My output device is listed as a HDMI / DisplyPort - GP107GL High Definition Audio Controller.

aplay -L
default
    Playback/recording through the PulseAudio sound server
surround21
    2.1 Surround output to Front and Subwoofer speakers
surround40
    4.0 Surround output to Front and Rear speakers
surround41
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50
    5.0 Surround output to Front, Center and Rear speakers
surround51
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
null
    Discard all samples (playback) or generate zero samples (capture)
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
sysdefault:CARD=PCH
    HDA Intel PCH, ALC233 Analog
    Default Audio Device
front:CARD=PCH,DEV=0
    HDA Intel PCH, ALC233 Analog
    Front speakers
surround21:CARD=PCH,DEV=0
    HDA Intel PCH, ALC233 Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
    HDA Intel PCH, ALC233 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
    HDA Intel PCH, ALC233 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
    HDA Intel PCH, ALC233 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
    HDA Intel PCH, ALC233 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
    HDA Intel PCH, ALC233 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
hdmi:CARD=PCH,DEV=0
    HDA Intel PCH, HDMI 0
    HDMI Audio Output
hdmi:CARD=PCH,DEV=1
    HDA Intel PCH, HDMI 1
    HDMI Audio Output
hdmi:CARD=PCH,DEV=2
    HDA Intel PCH, HDMI 2
    HDMI Audio Output
hdmi:CARD=PCH,DEV=3
    HDA Intel PCH, HDMI 3
    HDMI Audio Output
hdmi:CARD=PCH,DEV=4
    HDA Intel PCH, HDMI 4
    HDMI Audio Output
dmix:CARD=PCH,DEV=0
    HDA Intel PCH, ALC233 Analog
    Direct sample mixing device
dmix:CARD=PCH,DEV=3
    HDA Intel PCH, HDMI 0
    Direct sample mixing device
dmix:CARD=PCH,DEV=7
    HDA Intel PCH, HDMI 1
    Direct sample mixing device
dmix:CARD=PCH,DEV=8
    HDA Intel PCH, HDMI 2
    Direct sample mixing device
dmix:CARD=PCH,DEV=9
    HDA Intel PCH, HDMI 3
    Direct sample mixing device
dmix:CARD=PCH,DEV=10
    HDA Intel PCH, HDMI 4
    Direct sample mixing device
dsnoop:CARD=PCH,DEV=0
    HDA Intel PCH, ALC233 Analog
    Direct sample snooping device
dsnoop:CARD=PCH,DEV=3
    HDA Intel PCH, HDMI 0
    Direct sample snooping device
dsnoop:CARD=PCH,DEV=7
    HDA Intel PCH, HDMI 1
    Direct sample snooping device
dsnoop:CARD=PCH,DEV=8
    HDA Intel PCH, HDMI 2
    Direct sample snooping device
dsnoop:CARD=PCH,DEV=9
    HDA Intel PCH, HDMI 3
    Direct sample snooping device
dsnoop:CARD=PCH,DEV=10
    HDA Intel PCH, HDMI 4
    Direct sample snooping device
hw:CARD=PCH,DEV=0
    HDA Intel PCH, ALC233 Analog
    Direct hardware device without any conversions
hw:CARD=PCH,DEV=3
    HDA Intel PCH, HDMI 0
    Direct hardware device without any conversions
hw:CARD=PCH,DEV=7
    HDA Intel PCH, HDMI 1
    Direct hardware device without any conversions
hw:CARD=PCH,DEV=8
    HDA Intel PCH, HDMI 2
    Direct hardware device without any conversions
hw:CARD=PCH,DEV=9
    HDA Intel PCH, HDMI 3
    Direct hardware device without any conversions
hw:CARD=PCH,DEV=10
    HDA Intel PCH, HDMI 4
    Direct hardware device without any conversions
plughw:CARD=PCH,DEV=0
    HDA Intel PCH, ALC233 Analog
    Hardware device with all software conversions
plughw:CARD=PCH,DEV=3
    HDA Intel PCH, HDMI 0
    Hardware device with all software conversions
plughw:CARD=PCH,DEV=7
    HDA Intel PCH, HDMI 1
    Hardware device with all software conversions
plughw:CARD=PCH,DEV=8
    HDA Intel PCH, HDMI 2
    Hardware device with all software conversions
plughw:CARD=PCH,DEV=9
    HDA Intel PCH, HDMI 3
    Hardware device with all software conversions
plughw:CARD=PCH,DEV=10
    HDA Intel PCH, HDMI 4
    Hardware device with all software conversions
usbstream:CARD=PCH
    HDA Intel PCH
    USB Stream Output
usbstream:CARD=C920
    HD Pro Webcam C920
    USB Stream Output
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
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
dsnoop:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    Direct sample snooping device
dsnoop:CARD=NVidia,DEV=7
    HDA NVidia, HDMI 1
    Direct sample snooping device
dsnoop:CARD=NVidia,DEV=8
    HDA NVidia, HDMI 2
    Direct sample snooping device
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
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
usbstream:CARD=NVidia
    HDA NVidia
    USB Stream Output
pop-os@pop-os:~$ 


pop-os@pop-os:/proc/asound$ cat cards
 0 [PCH            ]: HDA-Intel - HDA Intel PCH
                      HDA Intel PCH at 0xb4230000 irq 142
 1 [C920           ]: USB-Audio - HD Pro Webcam C920
                      HD Pro Webcam C920 at usb-0000:00:14.0-7.2, high speed
 2 [NVidia         ]: HDA-Intel - HDA NVidia
                      HDA NVidia at 0xb4080000 irq 17
Comment 7 Takashi Iwai 2020-06-04 11:02:54 UTC
Thanks.  The working one is much older kernel, so something has changed recently in the upstream, I suppose.

The fact that TW alsa-info.sh doesn't contain the Nvidia HDMI audio PCI entry at all.  It means that the problem is rather deeper than the sound driver but in PCI core or such low level stuff.

In anyway, TW already moved to 5.7, so we should check whether the issue is present on 5.7 kernel.  Could you try to install the kernel from OBS Kernel:stable repo?
  http://download.opensuse.org/repositories/Kernel:/stable/standard/
Get alsa-info.sh output, and also attach the output of dmesg after the boot, too.
Comment 8 Pace Freeman 2020-06-04 11:12:38 UTC
Sure I can try this.

I'm pretty new to Linux, so any help in how I do this will be appreciated. :-)
Comment 9 Pace Freeman 2020-06-04 11:33:39 UTC
I added the OBS repository https://download.opensuse.org/repositories/Kernel:/stable/standard/

But just need to know how to add the 5.7 kernel, it would be nice to test the 5.7 kernel before fully upgrading the system
Comment 10 Takashi Iwai 2020-06-04 11:38:40 UTC
For a temporary testing, you don't need to add the repository, but just download kernel-default.rpm from the download URL, and install it via zypper in:
  zypper in kernel-default*.rpm

The kernel should keep the backward compatibility, and it must work as is.  The only problem would be when you're booting with Secure Boot or require Nvidia-binary driver.  For checking the availability of PCI device, just booting the new kernel and checking alsa-info.sh output should suffice, even without Nvidia binary driver, though.
Comment 11 Pace Freeman 2020-06-04 16:19:56 UTC
So I did successfully install kernel-default-5.7.0-3.1.gad96a07.x86_64, but even when I set runlevel 3 in grub, I could not boot, I just got a system freeze, so it looks like I cant test it this way.

If you have any suggestions I'm more than happy to try to do it.
Comment 12 Takashi Iwai 2020-06-04 17:01:39 UTC
Is your system with Secure Boot?  If so, the kernel doesn't boot because it's not signed by the key that is official for distribution.
Other than that, I can think of the inconsistency with Nvidia binary driver.
Maybe we should wait for the official release of 5.7 TW kernel, then.

So, uninstall kernel-default-5.7 again, and go back to 5.6.y.
Do you have any special boot options?  Please give the dmesg output after the boot.
Comment 13 Takashi Iwai 2020-06-04 17:08:27 UTC
And this might be some issue about the power-saving stuff.  A similar case in the past:
  https://forums.developer.nvidia.com/t/gtx-1060-no-audio-over-hdmi-only-hda-intel-detected-azalia/53463

You can try setpci and rescan workaround.
Comment 14 Pace Freeman 2020-06-04 17:43:33 UTC
Created attachment 838507 [details]
Dmesg.txt

dmesg.txt after boot
Comment 15 Pace Freeman 2020-06-04 17:46:31 UTC
I don't think I have any special boot options, and don't use secure boot. I have removed the 5.7 Kernel and can wait for the official release of 5.7.

Ill take a look at the other link you sent, and will let you know if I have any progress. If you need me to test anything at all in the mean time, just let me know.

Thanks for your support :-)
Comment 16 Takashi Iwai 2024-03-07 14:37:20 UTC
This is an old entry, so I close as WONTFIX.
Feel free to reopen if you still have the issue with the latest TW.