Getting sound from NVidia desktop video card to TV over HDMI
1 Attachment(s)
How do I get HDMI audio working? I'm connecting an NVidia GTX 760 video card to a TV over HDMI. Video is going over the HDMI cable; I'm trying to get audio over the HDMI cable too.
I've attached a screenshot of what I see in alsamixer if I press F6 to select the sound card built into the video card. As you can see, I can unmute the channels, but I can't set their volumes above zero. I should mention that when I boot into Windows, audio over HDMI just works. I say this not to whine, but because I think it's relevant to troubleshooting. Here's my aplay -l Code:
**** List of PLAYBACK Hardware Devices **** Code:
null |
Greetz
I have essentially the same card but I don't have anything I can plug HDMI into to test audio but I am very curious as to how this thread turns out since I expect to remedy that shortly. I do have an idea that I have yet to check out and that is I am wondering if the nVidia driver also normally supports the HDMI audio and therefore provides some sort of conflict with ALSA? I'm going to look through the rather comprehensive and helpful nVidia driver documentation to see if this is so and what switches might be applied. Perhaps you might wish to peruse those as well. In any case if I find something I'll write back but still depend on you since you can actually test it out. Good fortune. |
Quote:
Unless someone has come up with a recent solution, setting up HDMI in Linux is not an easy task and not everything will work, e.g., some applications might be able to use HDMI and other may not. |
Update.
I don't have it working yet, but these commands are all working and sending sound to the HDMI-connected TV: Code:
aplay -D plughw:NVidia,3 /usr/share/sounds/alsa/Front_Center.wav Several guides have recommended setting a probe_mask option on the Intel driver. I haven't been able to investigate that yet, but here's what I get for grep valid /proc/asound/NVidia/eld*: Code:
/proc/asound/NVidia/eld#0.1:eld_valid 1 Quote:
|
I've had some luck using Pulseaudio to control where the sound goes on my laptop with nvidia...
|
Set up Alsa to use the HDMI output as default (info how to do that here).
Easier, but a sacrilege for some people: Just install Pulseaudio and let it route audio to whichever output you want, including changing the output on the fly. |
The best option is to just disable the onboard audio if possible. This will allow udev to detect only the HDMI processor and use the Intel HD Audio. It also helps if you have a PCI/PCIe audio card that uses a different chipset as well.
Yes, using PulseAudio is easier, but you should learn, at least, how to properly configure ALSA and dmix properly. |
.asoundrc in HOME
Code:
pcm.!default { so if two sound sources have different sample/bit rate then only the first one will get through expanding the config would sort that out, if it happens (i think its the ctl part, not sure) PS flash may also not work an udev rule to put nvidia interface as the first one (0) would fix that edit: as per wiki that TobiSGD linked, this might work if the one above does not Code:
defaults.pcm.card 1 |
Quote:
|
Quote:
|
I have had the same issue; I found the first ~/.asoundrc file mentioned by genss in post #8 didn't work, but the second one did (with some tweaking):
Code:
defaults.pcm.card 0 |
Quote:
|
Quote:
card0 is whatever was initialized first on the system every card has subdevices, like my card0 has "device 0: Multichannel [Multichannel]" and "device 1: Digital [Digital]" udev, i think, is the one that initializes the cards but there is something about alsa configs (never digged deep enough) |
NVidia (ftp://download.nvidia.com/XFree86/gp...dmi-audio.html) mentioned that chipsets are Card 0 and discrete cards are Card 1.
|
Quote:
I'm using an old Olevia 27" HDTV for a monitor which, although it has an HDMI input, the docs say only the VGA input can be used for PC. It's a decent amount of screen real estate but it's resolution is no great shakes - limited to 1280 x 720. I am an avid gamer so I have many versions of Steam installed through PlayOnLinux but I also have Pipelight for streaming. I do have an interest in trying out the Steam OS after it gets dry behind the ears, but no rush on that as presently the only reason I have left to boot to Windows is for parts of audio recording/editing work. I do as much as I can with Ardour, and have since it first came out as Alpha software, but unfortunately some initial work still takes windows apps and plugins. |
All times are GMT -5. The time now is 11:45 AM. |