HDMI sound trouble.

Hello all,

I can’t seem to get my sound working on my tv I have my computer hooked up to. I can see the audio playing in the pulse audio volume control window, but I can’t hear anything coming out of my tv. I went into terminal and messed around with alsamixer to make sure it was on. It says 00 on everything but I can’t seem to change anything. The video card is a gtx 970, the video works.

Any ideas?

Open alsamixer in the terminal and make sure that the HDMI output isn’t muted.

I did that. I don’t think it is muted, but how can i tell? s/pdif /1/2/3 are all 00. I can’t change any of the inputs to anything else, or at least I haven’t been able to.

edit: I just looked in the options, using there controls I can’t change any of the inputs.

I can toggle off and on with m, but that is it.

Are you using the nvidia proprietary driver or the opensource driver?

Proprietary. I tried the other and that one didn’t work either.

In the Nvidia Control Panel there should be an option to enable or disable the HDMI Audio, make sure the audio is enabled there.

I see the Nvidea X Server Settings panel. I don’t see any audio options listed anywhere. It’s all display options and tweaks.

It’s in the display options. The driver will automatically disable audio on certain brands and models of TV’s due to video corruption when audio is enabled (Sony. Philips, and Vio have a few such models)

I’m sorry, I have looked through the X Server panel. I can’t seem to find anything that would be relevant and I can’t seem to google anything that would give me an idea of what I should be looking for. Can you give me a more specific idea?

Could you post the output of aplay -L?

Here it is.

[quote]default
Playback/recording through the PulseAudio sound server
null
Discard all samples (playback) or generate zero samples (capture)
pulse
PulseAudio Sound Server
sysdefault:CARD=DG
Xonar DG, Multichannel
Default Audio Device
front:CARD=DG,DEV=0
Xonar DG, Multichannel
Front speakers
surround21:CARD=DG,DEV=0
Xonar DG, Multichannel
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=DG,DEV=0
Xonar DG, Multichannel
4.0 Surround output to Front and Rear speakers
surround41:CARD=DG,DEV=0
Xonar DG, Multichannel
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=DG,DEV=0
Xonar DG, Multichannel
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=DG,DEV=0
Xonar DG, Multichannel
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=DG,DEV=0
Xonar DG, Multichannel
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=DG,DEV=0
Xonar DG, Multichannel
IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=DG,DEV=0
Xonar DG, Multichannel
Direct sample mixing device
dmix:CARD=DG,DEV=1
Xonar DG, Digital
Direct sample mixing device
dsnoop:CARD=DG,DEV=0
Xonar DG, Multichannel
Direct sample snooping device
dsnoop:CARD=DG,DEV=1
Xonar DG, Digital
Direct sample snooping device
hw:CARD=DG,DEV=0
Xonar DG, Multichannel
Direct hardware device without any conversions
hw:CARD=DG,DEV=1
Xonar DG, Digital
Direct hardware device without any conversions
plughw:CARD=DG,DEV=0
Xonar DG, Multichannel
Hardware device with all software conversions
plughw:CARD=DG,DEV=1
Xonar DG, Digital
Hardware device with all software conversions
sysdefault:CARD=PCH
HDA Intel PCH, ALC1150 Analog
Default Audio Device
front:CARD=PCH,DEV=0
HDA Intel PCH, ALC1150 Analog
Front speakers
surround21:CARD=PCH,DEV=0
HDA Intel PCH, ALC1150 Analog
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
HDA Intel PCH, ALC1150 Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
HDA Intel PCH, ALC1150 Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
HDA Intel PCH, ALC1150 Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
HDA Intel PCH, ALC1150 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
HDA Intel PCH, ALC1150 Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=PCH,DEV=0
HDA Intel PCH, ALC1150 Digital
IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=PCH,DEV=0
HDA Intel PCH, ALC1150 Analog
Direct sample mixing device
dmix:CARD=PCH,DEV=1
HDA Intel PCH, ALC1150 Digital
Direct sample mixing device
dsnoop:CARD=PCH,DEV=0
HDA Intel PCH, ALC1150 Analog
Direct sample snooping device
dsnoop:CARD=PCH,DEV=1
HDA Intel PCH, ALC1150 Digital
Direct sample snooping device
hw:CARD=PCH,DEV=0
HDA Intel PCH, ALC1150 Analog
Direct hardware device without any conversions
hw:CARD=PCH,DEV=1
HDA Intel PCH, ALC1150 Digital
Direct hardware device without any conversions
plughw:CARD=PCH,DEV=0
HDA Intel PCH, ALC1150 Analog
Hardware device with all software conversions
plughw:CARD=PCH,DEV=1
HDA Intel PCH, ALC1150 Digital
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
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
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
dsnoop:CARD=NVidia,DEV=9
HDA NVidia, HDMI 3
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
hw:CARD=NVidia,DEV=9
HDA NVidia, HDMI 3
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
sysdefault:CARD=Device
C-Media USB Audio Device, USB Audio
Default Audio Device
front:CARD=Device,DEV=0
C-Media USB Audio Device, USB Audio
Front speakers
surround21:CARD=Device,DEV=0
C-Media USB Audio Device, USB Audio
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Device,DEV=0
C-Media USB Audio Device, USB Audio
4.0 Surround output to Front and Rear speakers
surround41:CARD=Device,DEV=0
C-Media USB Audio Device, USB Audio
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Device,DEV=0
C-Media USB Audio Device, USB Audio
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Device,DEV=0
C-Media USB Audio Device, USB Audio
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Device,DEV=0
C-Media USB Audio Device, USB Audio
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Device,DEV=0
C-Media USB Audio Device, USB Audio
IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=Device,DEV=0
C-Media USB Audio Device, USB Audio
Direct sample mixing device
dsnoop:CARD=Device,DEV=0
C-Media USB Audio Device, USB Audio
Direct sample snooping device
hw:CARD=Device,DEV=0
C-Media USB Audio Device, USB Audio
Direct hardware device without any conversions
plughw:CARD=Device,DEV=0
C-Media USB Audio Device, USB Audio
Hardware device with all software conversions[/quote]

Please use code or quote tags !

Is the HDMI output set as default in Systemsettings ?

Sorry!

I don’t think so, C-media is the first one listed. when testing it in Systemsettings I didn’t hear anything. I set it to the default sink in pacmd in terminal.

I just noticed that in Volume Control Output tab, under HDMI it says unplugged, although I know that isn’t the case it is giving video.

How do I use code tags?

See BB Tags: http://www.bbcode.org/reference.php

In general use [ code ]Your code[/ code ]
or [ quote ]
Your quote
[/ quote ]
Tags. (Without the spaces between the brackets and the code word.

So the general problem is that it isn’t detecting that the cable is plugged in. Did you try to disconnect and reconnect the cable ?
Was the cable working before with audio ? (I know that there are a lot of crappy cables out there that break every now and then)

Ah, Thanks.

I did just try to recon it. The cable was working before with audio yesterday, but that was with windows installed.

Anybody have any other ideas?

You checked alsamixer already?
Perhaps the channel is just muted?

You need to start alsamixer with alsamixer -c 0 to avoid it showing the pulseaudio mixer. If it isn’t card 0 then you need to adjust that zero.

list-sinks 3 sink(s) available. index: 0 name: <alsa_output.pci-0000_01_00.1.hdmi-stereo> driver: <module-alsa-card.c> flags: HARDWARE DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY state: IDLE suspend cause: priority: 9050 volume: front-left: 35060 / 53% / -16.30 dB, front-right: 35060 / 53% / -16.30 dB balance 0.00 base volume: 65536 / 100% / 0.00 dB volume steps: 65537 muted: no current latency: 371.40 ms max request: 64 KiB max rewind: 64 KiB monitor source: 0 sample spec: s16le 2ch 44100Hz channel map: front-left,front-right Stereo used by: 0 linked by: 0 configured latency: 371.52 ms; range is 0.50 .. 371.52 ms card: 0 <alsa_card.pci-0000_01_00.1> module: 5 properties: alsa.resolution_bits = "16" device.api = "alsa" device.class = "sound" alsa.class = "generic" alsa.subclass = "generic-mix" alsa.name = "HDMI 0" alsa.id = "HDMI 0" alsa.subdevice = "0" alsa.subdevice_name = "subdevice #0" alsa.device = "3" 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 = "0fbb" device.product.name = "GM204 High Definition Audio Controller" device.string = "hdmi:2" device.buffering.buffer_size = "65536" device.buffering.fragment_size = "32768" device.access_mode = "mmap+timer" device.profile.name = "hdmi-stereo" device.profile.description = "Digital Stereo (HDMI)" device.description = "GM204 High Definition Audio Controller Digital Stereo (HDMI)" alsa.mixer_name = "Nvidia GPU 71 HDMI/DP" alsa.components = "HDA:10de0071,38423975,00100100" module-udev-detect.discovered = "1" device.icon_name = "audio-card-pci" ports: hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: no) properties: device.icon_name = "video-display" active port: <hdmi-output-0>

I have it set so the sink named 0 is hdmi. is that what you mean? when I type alsamixer -c 0 nothing happens. I can type other numbers, like 1,2 etc but not 0

The weird thing about this is that as far as I can tell, it SHOULD be working. It is unmuted in alsamixer, it says it is producing sound int pulseaudio volume control, and I know it is connected because it is working fine visually.

lol, omg. I just looked in the configuration tab. It profile: it says digital stereo hdmi output unplugged. I cahnged it to digital stereo hdmi 2 output. and now it works! I didn’t play around in the options enough. o the shame.

Sovled.

Thanks for the help mate.