Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Thread Tools
Old 04-12-11, 03:54 PM   #1
Registered User
Join Date: Oct 2005
Posts: 1
Default [HOW TO] Hdmi audio and pulseaudio

I've a solution for the people who want to have hdmi sound with pulseaudio (for example, with ubuntu). It's a very dirty solution, but for me it work great.

I'm running driver 270.41.03 and kernel 2.6.39 (git version under developpement) but it will certainly work with other kernel.

First, follow the official documentation to get the sound working with alsa:

When you have a device working (for example, for me, the command "speaker-test -c 2 -r 48000 -D hdmi:1,1" is working). You have now your working hdmi output.

Then, create a soundrc config file (i create a ~/.asoundrc but it will work with /etc/asoundrc too).

In it, create a virtual device:

pcm.!default {
type pulse
ctl.!default {
type pulse

pcm.nvhd {
type plug
slave {
pcm "hdmi:1,1"
rate 48000
The pcm.nvhd is the virtual device but it can handle only one sound by one.
Default device redirect to pulseaudio.

Now edit your /etc/pulse/default.pa

Uncomments alsa sink and give your virtual device:

load-module module-alsa-sink device=plug:nvhd
### Automatically load driver modules depending on the hardware available
#.ifexists module-udev-detect.so
#load-module module-udev-detect
### Alternatively use the static hardware detection module (for systems that
### lack udev support)
#load-module module-detect
This will prevent autodection.

Now restart pulseaudio with pulseaudio -k && pulseaudio

You will have a complete working audio system.
Quetzal is offline   Reply With Quote
Old 04-13-11, 12:18 AM   #2
Registered User
gradinaruvasile's Avatar
Join Date: May 2008
Posts: 199
Default Re: [HOW TO] Hdmi audio and pulseaudio

As far as i know you can set the output to hdmi from the PulseAudio tray icon directly.
Right-click on it, select preferences, output device and select hdmi. Never tried though but if the device is working from ALSA, it should work there too.
gradinaruvasile is offline   Reply With Quote
Old 04-17-11, 11:46 AM   #3
Registered User
Join Date: Apr 2006
Posts: 6
Default Re: [HOW TO] Hdmi audio and pulseaudio

Hello, this doesn't work for me because when you configure with the tray icon, pulse only can to take the first audio codec, and my tv is on the second.

Now, i put back the auto-detection of the driver by pulse audio and i've the choose between my internal sound card, hdmi audio, and the hdmi audio with the good codec (because i still forcing the load of load-module module-alsa-sink device=plug:nvhd )
khetzal is offline   Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

All times are GMT -5. The time now is 01:20 AM.

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.