You are not logged in.

#1 2019-08-07 21:56:03

theodore
Member
Registered: 2008-09-09
Posts: 112

no audio over nvidia wired hdmi output

I am trying to drive my audio output through the hdmi connected tv/monitor. Thus, I tried to follow the wiki https://wiki.archlinux.org/index.php/Pu … figuration and this is my audio devices:

# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC298 Analog [ALC298 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 10: HDMI 4 [HDMI 4]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

so aplay correctly finds all the audio devices. Therefore, next I am trying to test which one correctly outputs sound by:

# aplay -D plughw:1,x /usr/share/sounds/alsa/Front_Right.wav

where x is devices 3, 7, 8, 9 respectively. However, for none of the devices I am able to get any sound to play and always it is just stuck there doing nothing and just showing:

Playing WAVE '/usr/share/sounds/alsa/Front_Right.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono

until I have to manually interrupt and stop it. However, I noticed that when I test the devices I am getting the following messages in the dmesg:

[ 1279.785408] snd_hda_codec_hdmi hdaudioC1D0: out of range cmd 0:4:707:ffffffff
[ 1279.796005] snd_hda_codec_hdmi hdaudioC1D0: out of range cmd 0:4:707:ffffffbf
[ 1279.796442] snd_hda_codec_hdmi hdaudioC1D0: out of range cmd 0:4:707:ffffffff
[ 1279.805960] snd_hda_codec_hdmi hdaudioC1D0: out of range cmd 0:4:707:ffffffbf
[ 1279.806451] snd_hda_codec_hdmi hdaudioC1D0: out of range cmd 0:4:707:ffffffff
[ 1279.815952] snd_hda_codec_hdmi hdaudioC1D0: out of range cmd 0:4:707:ffffffbf
[ 1279.816596] snd_hda_codec_hdmi hdaudioC1D0: out of range cmd 0:5:707:ffffffff
[ 1279.825920] snd_hda_codec_hdmi hdaudioC1D0: out of range cmd 0:5:707:ffffffbf
[ 1279.826342] snd_hda_codec_hdmi hdaudioC1D0: out of range cmd 0:5:707:ffffffff
[ 1279.835934] snd_hda_codec_hdmi hdaudioC1D0: out of range cmd 0:5:707:ffffffbf
[ 1279.836368] snd_hda_codec_hdmi hdaudioC1D0: out of range cmd 0:5:707:ffffffff
[ 1279.845914] snd_hda_codec_hdmi hdaudioC1D0: out of range cmd 0:5:707:ffffffbf
[ 1279.846371] snd_hda_codec_hdmi hdaudioC1D0: out of range cmd 0:6:707:ffffffff
[ 1279.855960] snd_hda_codec_hdmi hdaudioC1D0: out of range cmd 0:6:707:ffffffbf
[ 1279.856404] snd_hda_codec_hdmi hdaudioC1D0: out of range cmd 0:6:707:ffffffff
[ 1279.865885] snd_hda_codec_hdmi hdaudioC1D0: out of range cmd 0:6:707:ffffffbf
[ 1279.866309] snd_hda_codec_hdmi hdaudioC1D0: out of range cmd 0:6:707:ffffffff
[ 1279.875941] snd_hda_codec_hdmi hdaudioC1D0: out of range cmd 0:6:707:ffffffbf
[ 1279.876429] snd_hda_codec_hdmi hdaudioC1D0: out of range cmd 0:7:707:ffffffff
[ 1279.885976] snd_hda_codec_hdmi hdaudioC1D0: out of range cmd 0:7:707:ffffffbf
[ 1279.886429] snd_hda_codec_hdmi hdaudioC1D0: out of range cmd 0:7:707:ffffffff
[ 1279.895852] snd_hda_codec_hdmi hdaudioC1D0: out of range cmd 0:7:707:ffffffbf
[ 1279.896273] snd_hda_codec_hdmi hdaudioC1D0: out of range cmd 0:7:707:ffffffff
[ 1279.905989] snd_hda_codec_hdmi hdaudioC1D0: out of range cmd 0:7:707:ffffffbf
[ 1585.791400] snd_hda_codec_hdmi hdaudioC1D0: out of range cmd 0:4:707:ffffffff
[ 1617.136979] snd_hda_codec_hdmi hdaudioC1D0: out of range cmd 0:4:707:ffffffbf
[ 1631.663293] snd_hda_codec_hdmi hdaudioC1D0: out of range cmd 0:4:707:ffffffff

similar messages showing up also during boot time together with the following ones:

[  125.374201] snd_hda_codec_hdmi hdaudioC1D0: rates == 0 (nid=0xb, val=0x0, ovrd=1)
[  125.374902] snd_hda_codec_hdmi hdaudioC1D0: HDMI: invalid ELD buf size -1
[  125.374904] snd_hda_codec_hdmi hdaudioC1D0: HDMI: invalid ELD buf size -1
.............
.............
[  125.930973] snd_hda_codec_hdmi hdaudioC1D0: Unable to sync register 0x4f0800. -5
[  125.930977] snd_hda_codec_hdmi hdaudioC1D0: HDMI: invalid ELD buf size -1
[  125.930980] snd_hda_codec_hdmi hdaudioC1D0: HDMI: invalid ELD buf size -1
[  125.930983] snd_hda_codec_hdmi hdaudioC1D0: HDMI: invalid ELD buf size -1
[  125.930985] snd_hda_codec_hdmi hdaudioC1D0: HDMI: invalid ELD buf size -1

I am not sure whether these are related, my guess is that they do. Any idea how to solve this?

I am with the latest kernel available in the repositories, also in alsamixer if I choose the HDA Nvidia audio output I am getting only the S/PDIF items.

Offline

#2 2019-08-07 23:06:27

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 7,926

Re: no audio over nvidia wired hdmi output

You will probably want to add -c2 to those arguments, mono streams are often not well supported. FWIW if you are using pulseaudio anyways, you should first look at pulse's detection,

pacmd list-cards
pacmd list-sinks
#For completeness sake
amixer -c1

Offline

#3 2019-08-08 09:26:48

theodore
Member
Registered: 2008-09-09
Posts: 112

Re: no audio over nvidia wired hdmi output

Giving your commands, I am getting the following:

$ pacmd list-cards
2 card(s) available.
    index: 0
        name: <alsa_card.pci-0000_01_00.1>
        driver: <module-alsa-card.c>
        owner module: 6
        properties:
                alsa.card = "1"
                alsa.card_name = "HDA NVidia"
                alsa.long_card_name = "HDA NVidia at 0xcf080000 irq 17"
                alsa.driver_name = "snd_hda_intel"                                                        <--------------------------------------- is this correct???? shouldn't this be snd_hda_nvidia instead?????
                device.bus_path = "pci-0000:01:00.1"
                sysfs.path = "/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1"
                device.bus = "pci"
                device.vendor.id = "10de"
                device.vendor.name = "NVIDIA Corporation"
                device.product.id = "10f8"
                device.string = "1"
                device.description = "HDA NVidia"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        profiles:
                output:hdmi-stereo: Digital Stereo (HDMI) Output (priority 5900, available: no)
                output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (priority 800, available: no)
                output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (priority 800, available: no)
                output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (priority 5700, available: no)
                output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (priority 600, available: no)
                output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output (priority 600, available: no)
                output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (priority 5700, available: no)
                output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) Output (priority 600, available: no)
                output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) Output (priority 600, available: no)
                output:hdmi-stereo-extra3: Digital Stereo (HDMI 4) Output (priority 5700, available: no)
                output:hdmi-surround-extra3: Digital Surround 5.1 (HDMI 4) Output (priority 600, available: no)
                output:hdmi-surround71-extra3: Digital Surround 7.1 (HDMI 4) Output (priority 600, available: no)
                off: Off (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"
    index: 1
        name: <alsa_card.pci-0000_00_1f.3>
        driver: <module-alsa-card.c>
        owner module: 7
        properties:
                alsa.card = "0"
                alsa.card_name = "HDA Intel PCH"
                alsa.long_card_name = "HDA Intel PCH at 0xcf418000 irq 164"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:00:1f.3"
                sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
                device.bus = "pci"
                device.vendor.id = "8086"
                device.vendor.name = "Intel Corporation"
                device.product.id = "a348"
                device.product.name = "Cannon Lake PCH cAVS"
                device.form_factor = "internal"
                device.string = "0"
                device.description = "Built-in Audio"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        profiles:
                input:analog-stereo: Analog Stereo Input (priority 65, available: unknown)
                output:analog-stereo: Analog Stereo Output (priority 6500, available: unknown)
                output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (priority 6565, available: unknown)
                output:hdmi-stereo: Digital Stereo (HDMI) Output (priority 5900, available: no)
                output:hdmi-stereo+input:analog-stereo: Digital Stereo (HDMI) Output + Analog Stereo Input (priority 5965, available: unknown)
                output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (priority 800, available: no)
                output:hdmi-surround+input:analog-stereo: Digital Surround 5.1 (HDMI) Output + Analog Stereo Input (priority 865, available: unknown)
                output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (priority 800, available: no)
                output:hdmi-surround71+input:analog-stereo: Digital Surround 7.1 (HDMI) Output + Analog Stereo Input (priority 865, available: unknown)
                output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (priority 5700, available: no)
                output:hdmi-stereo-extra1+input:analog-stereo: Digital Stereo (HDMI 2) Output + Analog Stereo Input (priority 5765, available: unknown)
                output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (priority 600, available: no)
                output:hdmi-surround-extra1+input:analog-stereo: Digital Surround 5.1 (HDMI 2) Output + Analog Stereo Input (priority 665, available: unknown)
                output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output (priority 600, available: no)
                output:hdmi-surround71-extra1+input:analog-stereo: Digital Surround 7.1 (HDMI 2) Output + Analog Stereo Input (priority 665, available: unknown)
                output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (priority 5700, available: no)
                output:hdmi-stereo-extra2+input:analog-stereo: Digital Stereo (HDMI 3) Output + Analog Stereo Input (priority 5765, available: unknown)
                output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) Output (priority 600, available: no)
                output:hdmi-surround-extra2+input:analog-stereo: Digital Surround 5.1 (HDMI 3) Output + Analog Stereo Input (priority 665, available: unknown)
                output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) Output (priority 600, available: no)
                output:hdmi-surround71-extra2+input:analog-stereo: Digital Surround 7.1 (HDMI 3) Output + Analog Stereo Input (priority 665, available: unknown)
                output:hdmi-stereo-extra3: Digital Stereo (HDMI 4) Output (priority 5700, available: no)
                output:hdmi-stereo-extra3+input:analog-stereo: Digital Stereo (HDMI 4) Output + Analog Stereo Input (priority 5765, available: unknown)
                output:hdmi-surround-extra3: Digital Surround 5.1 (HDMI 4) Output (priority 600, available: no)
                output:hdmi-surround-extra3+input:analog-stereo: Digital Surround 5.1 (HDMI 4) Output + Analog Stereo Input (priority 665, available: unknown)
                output:hdmi-surround71-extra3: Digital Surround 7.1 (HDMI 4) Output (priority 600, available: no)
                output:hdmi-surround71-extra3+input:analog-stereo: Digital Surround 7.1 (HDMI 4) Output + Analog Stereo Input (priority 665, available: unknown)
                output:hdmi-stereo-extra4: Digital Stereo (HDMI 5) Output (priority 5700, available: no)
                output:hdmi-stereo-extra4+input:analog-stereo: Digital Stereo (HDMI 5) Output + Analog Stereo Input (priority 5765, available: unknown)
                output:hdmi-surround-extra4: Digital Surround 5.1 (HDMI 5) Output (priority 600, available: no)
                output:hdmi-surround-extra4+input:analog-stereo: Digital Surround 5.1 (HDMI 5) Output + Analog Stereo Input (priority 665, available: unknown)
                output:hdmi-surround71-extra4: Digital Surround 7.1 (HDMI 5) Output (priority 600, available: no)
                output:hdmi-surround71-extra4+input:analog-stereo: Digital Surround 7.1 (HDMI 5) Output + Analog Stereo Input (priority 665, available: unknown)
                off: Off (priority 0, available: unknown)
        active profile: <output:hdmi-stereo+input:analog-stereo>
        sinks:
                alsa_output.pci-0000_00_1f.3.hdmi-stereo/#2: Built-in Audio Digital Stereo (HDMI)
        sources:
                alsa_input.pci-0000_00_1f.3.analog-stereo/#1: Built-in Audio Analog Stereo
                alsa_output.pci-0000_00_1f.3.hdmi-stereo.monitor/#3: Monitor of Built-in Audio Digital Stereo (HDMI)
        ports:
                analog-input-internal-mic: Internal Microphone (priority 8900, latency offset 0 usec, available: unknown)
                        properties:
                                device.icon_name = "audio-input-microphone"
                analog-input-mic: Microphone (priority 8700, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "audio-input-microphone"
                analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: unknown)
                        properties:
                                device.icon_name = "audio-speakers"
                analog-output-headphones: Headphones (priority 9000, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "audio-headphones"
                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"
$ pacmd list-sinks
1 sink(s) available.
  * index: 6
        name: <alsa_output.pci-0000_00_1f.3.analog-stereo>
        driver: <module-alsa-card.c>
        flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
        state: SUSPENDED
        suspend cause: IDLE
        priority: 9039
        volume: front-left: 32766 /  50% / -18.06 dB,   front-right: 32766 /  50% / -18.06 dB
                balance 0.00
        base volume: 65536 / 100% / 0.00 dB
        volume steps: 65537
        muted: no
        current latency: 0.00 ms
        max request: 0 KiB
        max rewind: 0 KiB
        monitor source: 7
        sample spec: s16le 2ch 44100Hz
        channel map: front-left,front-right
                     Stereo
        used by: 0
        linked by: 0
        configured latency: 0.00 ms; range is 0.50 .. 2000.00 ms
        card: 1 <alsa_card.pci-0000_00_1f.3>
        module: 7
        properties:
                alsa.resolution_bits = "16"
                device.api = "alsa"
                device.class = "sound"
                alsa.class = "generic"
                alsa.subclass = "generic-mix"
                alsa.name = "ALC298 Analog"
                alsa.id = "ALC298 Analog"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.device = "0"
                alsa.card = "0"
                alsa.card_name = "HDA Intel PCH"
                alsa.long_card_name = "HDA Intel PCH at 0xcf418000 irq 164"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:00:1f.3"
                sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
                device.bus = "pci"
                device.vendor.id = "8086"
                device.vendor.name = "Intel Corporation"
                device.product.id = "a348"
                device.product.name = "Cannon Lake PCH cAVS"
                device.form_factor = "internal"
                device.string = "front:0"
                device.buffering.buffer_size = "352800"
                device.buffering.fragment_size = "176400"
                device.access_mode = "mmap+timer"
                device.profile.name = "analog-stereo"
                device.profile.description = "Analog Stereo"
                device.description = "Built-in Audio Analog Stereo"
                alsa.mixer_name = "Realtek ALC298"
                alsa.components = "HDA:10ec0298,1a582005,00100103 HDA:8086280b,80860101,00100000"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        ports:
                analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: unknown)
                        properties:
                                device.icon_name = "audio-speakers"
                analog-output-headphones: Headphones (priority 9000, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "audio-headphones"
        active port: <analog-output-speaker>
$ amixer -c1
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'IEC958',1
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'IEC958',2
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'IEC958',3
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]

I tried also to disable the switch-on-port-available module as stated here https://wiki.archlinux.org/index.php/Pu … turned_off

/etc/pulse/default.pa
...
### Should be after module-*-restore but before module-*-detect
#load-module module-switch-on-port-available
...

didn't work.

Last edited by theodore (2019-08-08 09:27:23)

Offline

#4 2019-08-08 11:04:01

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 7,926

Re: no audio over nvidia wired hdmi output

Just in general, you are sure that your display is connected to the nvidia card? Since your integrated GPU seems to expose these as well, if your actual HDMI is connected on the intel card its not suprising you aren't getting anything out of the nvidia card and you might want to repeat these aplays on the intel card.

What do you get for

xrandr -q
xrandr --listproviders

regarding the inline question, yes that's normal, hda_intel in that sounddriver refers to the HDA specification developed by intel to have a standard way for vendors to describe their hardware features, it is the top level driver for most PCI based audio cards, actual vendor specifications are usually implemented as codecs which are loaded by snd_hda_intel as necessary.

Offline

#5 2019-08-08 21:32:30

theodore
Member
Registered: 2008-09-09
Posts: 112

Re: no audio over nvidia wired hdmi output

yes the external display is connected to the nvidia card when I apply these aplays on the intel card I am getting correctly the output out of the laptop speakers, and here is the output from the two commands:

$ xrandr -q
Screen 0: minimum 8 x 8, current 5760 x 2160, maximum 32767 x 32767
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)
HDMI-0 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 640mm x 360mm
   1920x1080     50.00*+  59.94    29.97    25.00    24.00    23.98  
   1360x765      60.00  
   1280x720      59.94    50.00  
   1024x768      60.00  
   800x600       60.32  
   720x576       50.00  
   720x480       59.94  
   640x480       59.94    59.93  
DP-4 disconnected (normal left inverted right x axis y axis)
DP-5 disconnected (normal left inverted right x axis y axis)
eDP-1-1 connected primary 3840x2160+1920+0 (normal left inverted right x axis y axis) 344mm x 194mm
   3840x2160     60.00*+  59.98    59.97  
   3200x1800     59.96    59.94  
   2880x1620     59.96    59.97  
   2560x1600     59.99    59.97  
   2560x1440     59.99    59.99    59.96    59.95  
   2048x1536     60.00  
   1920x1440     60.00  
   1856x1392     60.01  
   1792x1344     60.01  
   2048x1152     59.99    59.98    59.90    59.91  
   1920x1200     59.88    59.95  
   1920x1080     60.01    59.97    59.96    59.99    59.93  
   1600x1200     60.00  
   1680x1050     59.95    59.88  
   1400x1050     59.98  
   1600x900      59.99    59.94    59.95    59.82  
   1280x1024     60.02  
   1400x900      59.96    59.88  
   1280x960      60.00  
   1440x810      60.00    59.97  
   1368x768      59.88    59.85  
   1280x800      59.99    59.97    59.81    59.91  
   1280x720      60.00    59.99    59.86    59.74  
   1024x768      60.04    60.00  
   960x720       60.00  
   928x696       60.05  
   896x672       60.01  
   1024x576      59.95    59.96    59.90    59.82  
   960x600       59.93    60.00  
   960x540       59.96    59.99    59.63    59.82  
   800x600       60.00    60.32    56.25  
   840x525       60.01    59.88  
   864x486       59.92    59.57  
   700x525       59.98  
   800x450       59.95    59.82  
   640x512       60.02  
   700x450       59.96    59.88  
   640x480       60.00    59.94  
   720x405       59.51    58.99  
   684x384       59.88    59.85  
   640x400       59.88    59.98  
   640x360       59.86    59.83    59.84    59.32  
   512x384       60.00  
   512x288       60.00    59.92  
   480x270       59.63    59.82  
   400x300       60.32    56.34  
   432x243       59.92    59.57  
   320x240       60.05  
   360x202       59.51    59.13  
   320x180       59.84    59.32  
  1024x768 (0x79) 65.000MHz -HSync -VSync
        h: width  1024 start 1048 end 1184 total 1344 skew    0 clock  48.36KHz
        v: height  768 start  771 end  777 total  806           clock  60.00Hz
  800x600 (0x88) 40.000MHz +HSync +VSync
        h: width   800 start  840 end  968 total 1056 skew    0 clock  37.88KHz
        v: height  600 start  601 end  605 total  628           clock  60.32Hz
  640x480 (0x95) 25.175MHz -HSync -VSync
        h: width   640 start  656 end  752 total  800 skew    0 clock  31.47KHz
        v: height  480 start  490 end  492 total  525           clock  59.94Hz
$ xrandr --listproviders
Providers: number : 2
Provider 0: id: 0x257 cap: 0x1, Source Output crtcs: 4 outputs: 7 associated providers: 1 name:NVIDIA-0
Provider 1: id: 0x43 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 3 outputs: 1 associated providers: 1 name:modesetting

what about the errors that I am getting in the dmesg, shouldn't these indicate something?

Offline

#6 2019-08-08 22:56:45

theodore
Member
Registered: 2008-09-09
Posts: 112

Re: no audio over nvidia wired hdmi output

also the output from /proc/asound/cards in case that this helps somehow

$ cat /proc/asound/cards
 0 [PCH            ]: HDA-Intel - HDA Intel PCH
                      HDA Intel PCH at 0xcf418000 irq 164
 1 [NVidia         ]: HDA-Intel - HDA NVidia
                      HDA NVidia at 0xcf080000 irq 17

Offline

#7 2019-08-09 10:34:49

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 7,926

Re: no audio over nvidia wired hdmi output

Your intel card hangs on three of the 7 ports and it's a laptop.

General sanity checks, make sure the monitor isn't muted and then run a speaker-test for all of your your intel card as well

speaker-test -D hw:0,3 -c2
speaker-test -D hw:0,7 -c2
speaker-test -D hw:0,8 -c2
speaker-test -D hw:0,9 -c2
speaker-test -D hw:0,10 -c2

FWIW you might want to run explicitly a speaker-test over the Nvidias as well, as the other issue might stem from the fact you tried to play a mono stream.

Offline

#8 2019-08-09 23:24:49

theodore
Member
Registered: 2008-09-09
Posts: 112

Re: no audio over nvidia wired hdmi output

@V1del the above commands do not give any output from the speakers. I am getting the following screen output but not sound:

$ speaker-test -D hw:0,3 -c2

speaker-test 1.1.9

Playback device is hw:0,3
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 64 to 1048576
Period size range from 32 to 524288
Using max buffer size 1048576
Periods = 4
was set period_size = 262144
was set buffer_size = 1048576
 0 - Unknown
 1 - Unknown
Time per period = 10.932322
 0 - Unknown
 1 - Unknown
Time per period = 10.935442
 0 - Unknown
 1 - Unknown

similar output I am getting for the other as well. I tried the nvidia as you suggested same resutl:

$ speaker-test -D hw:1,3 -c2

speaker-test 1.1.9

Playback device is hw:1,3
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 64 to 1048576
Period size range from 32 to 524288
Using max buffer size 1048576
Periods = 4
was set period_size = 262144
was set buffer_size = 1048576
 0 - Front Left
 1 - Front Right
Time per period = 20.175456
 0 - Front Left
 1 - Front Right

Offline

#9 2019-08-10 09:59:24

theodore
Member
Registered: 2008-09-09
Posts: 112

Re: no audio over nvidia wired hdmi output

I also tested with the following names based on that. Which gives me:

$ aplay -L | grep :CARD
sysdefault:CARD=PCH
front:CARD=PCH,DEV=0
surround21:CARD=PCH,DEV=0
surround40:CARD=PCH,DEV=0
surround41:CARD=PCH,DEV=0
surround50:CARD=PCH,DEV=0
surround51:CARD=PCH,DEV=0
surround71:CARD=PCH,DEV=0
hdmi:CARD=PCH,DEV=0
hdmi:CARD=PCH,DEV=1
hdmi:CARD=PCH,DEV=2
hdmi:CARD=PCH,DEV=3
hdmi:CARD=PCH,DEV=4
usbstream:CARD=PCH
hdmi:CARD=NVidia,DEV=0
hdmi:CARD=NVidia,DEV=1
hdmi:CARD=NVidia,DEV=2
hdmi:CARD=NVidia,DEV=3
usbstream:CARD=NVidia

from these ones only the following gives me sound on the laptop speakers:

$ speaker-test -D sysdefault:CARD=PCH -c2
$ speaker-test -D front:CARD=PCH,DEV=0 -c2
$ speaker-test -D surround40:CARD=PCH,DEV=0 -c2
$ speaker-test -D surround51:CARD=PCH,DEV=0 -c2
$ speaker-test -D surround71:CARD=PCH,DEV=0 -c2

the surround21:CARD=PCH,DEV=0, surround40:CARD=PCH,DEV=0, surround50:CARD=PCH,DEV=0 give me the following error:

ALSA lib pcm_route.c:869:(find_matching_chmap) Found no matching channel map
Playback open error: -22,Invalid argument

the hdmi: ones while they seem to work:

speaker-test 1.1.9

Playback device is hdmi:CARD=NVidia,DEV=1
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 64 to 1048576
Period size range from 32 to 524288
Using max buffer size 1048576
Periods = 4
was set period_size = 262144
was set buffer_size = 1048576
 0 - Front Left
 1 - Front Right

no sound come from anywhere.

Offline

#10 2019-08-12 19:45:48

theodore
Member
Registered: 2008-09-09
Posts: 112

Re: no audio over nvidia wired hdmi output

guys any idea what else to try?

Offline

#11 2019-11-08 08:35:10

PizzicatoAlAparato
Member
Registered: 2018-12-05
Posts: 9

Re: no audio over nvidia wired hdmi output

Check this out: https://github.com/hhfeuer/nvhda

It may help you!

Offline

#12 2019-11-09 14:16:16

theodore
Member
Registered: 2008-09-09
Posts: 112

Re: no audio over nvidia wired hdmi output

PizzicatoAlAparato wrote:

Check this out: https://github.com/hhfeuer/nvhda

It may help you!

Thanks for the link. I was not aware of this before. It seems though that it does not work anymore with the latest kernel and nvidia drivers (these guys, they really messing up with their products).

Offline

#13 2019-11-11 07:38:03

PizzicatoAlAparato
Member
Registered: 2018-12-05
Posts: 9

Re: no audio over nvidia wired hdmi output

Yep, completely agree about the NVidia drivers problems.

Hopefully they fix it someday, or the nvhda module is updated. Good luck!

Offline

Board footer

Powered by FluxBB