Posts: 32
Joined: Apr 2011
Reputation:
0
Having just tried an aplay -l, it looks like I've messed something up - as now all I get is errors!
Posts: 262
Joined: May 2010
Reputation:
7
Did you try just choosing the HDMI output before going through all those steps? I haven't had any issues getting NVidia HDMI audio working since Ubuntu 9.10.
HTPC 1 - Zotac ZBOX ID80U | 4GB RAM | 64GB SSD | Openelec | Confluence
HTPC 2 - Zotac ZBOX ID41U | 4GB RAM | 60GB SSD | Openelec | Confluence
Server -
unRAID Server | 3 x 2TB WD Green HDD, 1TB WD Black HDD (Cache) | Sabnzbd | CouchPotato | Sickbeard
Posts: 27
Joined: Feb 2012
Reputation:
5
Hi faulknerm,
Hopefully this helps out anyone working with HDMI sound. I read your problem and realized that I myself spent a bunch of time trying to figure out how to get HDMI sound working and even though everyone on this forums is helpful, sometimes they took some shortcuts that got me mixed up.
Hopefully you find this explanation to be of help!
I also have an NVidia output, and I found that the easiest way for me to get the HDMI output sound to work was not to use any of the preset sound settings and instead use a custom mapping to the hardware.
For those of you who are booting directly into XBMC with your new computer and using the confluence skin, click the power button from within the skin and EXIT the software. This will take you to a login screen that allows you to choose which environment you want to be in.
XBMC is the XBMC only software. It takes you directly into the XBMC environment.
XBMCBuntu is the desktop where you can get into the guts of the system, browse the web and interface using a terminal session.
**NOTE** - Keep in mind that the last one you log into, will be the one that your system powers into. Once you are done with XBMCBuntu simply log out and log back in with the XBMC environment selected. From that point on you will always boot into XBMC directly. (Great for guys with wives who don't want to know this is a computer at all!!)
Now that you have logged out of XBMC and are logged into XBMCBuntu you want to run a terminal window.
Click Start -> System Tools -> Click on one of the terminals
Now you are in a terminal window. We want to check some settings now regarding your machine and to do that you must type:
aplay -l
(lowercase L)
You should get an output something like this:
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0, ALC662 rev1 Analog [ALC662 rev1 Analog]
Subdevices: 1/1
Subdevices #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
Take note of the HDMI card #1. That is your output for HDMI. The first card is your PCM, not what your looking for.
In this string of info you care about the information in quotes:
card "1": NVidia [HDA NVidia], device "3": HDMI 0 [HDMI 0]
This is what we are going to use when we manually map the information inside XBMC. But first, we have to make sure that your audio in your HDMI is not muted. I have read several posts in these forums about ensuring that your HDMI is not muted, but no one takes the time to really specify where you find this information. To find this, you must run another command in your terminal.
type in : alsamixer
You will get a window pop up with some information regarding your default card. This is an important thing to note, as your computer probably has more than one sound card. In my example above, my HDA Intel is my default card.
Up top in this window, you will see Card: Chip: View: Item: in order. At this point press F5 for ALL.
This opens up both the playback and capture channels on this card.
A muted card is denoted with a "MM" below the bar graph of your volume level.
An unmuted card is denoted with a numerical value such as "00".
At this point make sure that none are muted, and now take note of the F6 option!!! Select sound card.
Press F6: and you will be prompted with a selection window. In my example i have device 0 "HDA Intel" and device 1 "HDA NVidia". Select the second option and you will now see that you probably only have one option. This option is probably the 'S/PDIF' and it most likely will have a 'MM'. I just installed Eden 11 yesterday on a fresh install and mine was muted out of the box. Good chance yours is as well.
Once you have completed this press ESC to exit and take you back to your terminal window.
Now, rather than logging out of XBMCBuntu, just launch XBMC from within this desktop and lets make some changes to your Audio output.
Once XBMC launches get into your audio settings by:
Settings -> System -> Audio Output
Audio output = HDMI
Speaker Configuration = 2.0 (2.0 because I am using a TV. Change this to your setup EG. 5.1. Also note here that if you improperly set this to 5.1 and your using a TV, you will probably only hear background noise from your show if it is encoded with dolby digital)
Boost Level on Downmix = yes
AC3 Capable = No (No for me as Im on a TV, yours probably will be yes)
DTS Capable = No (Again I am going straight to a TV)
Here's where the real meat and potatoes is:
Since we found out the information earlier on aplay -l and found:
card "1": NVidia [HDA NVidia], device "3": HDMI 0 [HDMI 0]
Audio Ouput Device = Custom
custom audio device = PLUGHW:1,3 (Where 1 and 3 come from the quotes)
Passthrough output device = custom
Custom passthrough device = PLUGHW:1,3 (Again 1&3 came from the quotes)
Now there are other posts that can explain how to create your own script and do a bunch of other fancy things based on the frequency of your audio (MP3/2CH, 44.1kHz CD, 48 kHz HDMI) but I am betting that you are just like me and want to get it working. You will revisit this at a later date if you decide this isn't enough.
At this point, you can relaunch XBMC and try a playback from one of your video files.
Congrats. At this point you probably have it all up and running and your happy as a clam!
Hopefully you find my first post of value. I have been leeching info off this forum for about a month, and I felt that I am finally at a level of understanding to give back to the community.
Thanks everyone for your support and excellent work on Eden.
--Rubbernuts
Posts: 22
Joined: Apr 2012
Reputation:
0
So I tried all of your steps above and at this step:
"Press F6: and you will be prompted with a selection window. In my example i have device 0 "HDA Intel" and device 1 "HDA NVidia". Select the second option and you will now see that you probably only have one option. This option is probably the 'S/PDIF' and it most likely will have a 'MM'. I just installed Eden 11 yesterday on a fresh install and mine was muted out of the box. Good chance yours is as well.
"
I can't unmute the 0,3 HDMI S/PDIF portion for some reason?
I also couldn't find ~/asound.conf, but do have a /home/$USER/.asoundrc file I could post.
My aplay -l:
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC662 rev1 Analog [ALC662 rev1 Analog]
Subdevices: 0/1
Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: ALC662 rev1 Digital [ALC662 rev1 Digital]
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
So my XBMCbuntu is configured to use CUSTOM for both output/passthrough and with PLUGHW:1,3.
My setup is Acer Revo 3700->HDMI -> TV -> receiver
Any thoughts/advice would be appreciated. I just updated and love the default remote with IR receiver functionality but am frustrated with no audio over HDMI!
Posts: 106
Joined: Feb 2012
Reputation:
1
The tilde (~) is *nix speak for your home directory (on Linux /home/username = ~). I'd rename the one you have there to .asoundrc.old and make sure Pulse isn't installed. Also, plughw:1,3 never worked for me but hmdi(ALSA) works just fine.
Posts: 83
Joined: May 2011
Reputation:
0
@ RubberNuts,
Thanks for this. I tried installing eden today and after hours of messing around trying to get the sound to work, i eventually gave up. Reading through countless pages on the web.
Hopefully This will get it working. I'll give it a go tonight, or tomorrow.
Im using a revo r3700. NVidia ION2.
Posts: 40
Joined: Jan 2010
Reputation:
1
fr1day
Junior Member
Posts: 40
Just want to say a big thanks to Rubbernuts for the very helpful post, it got me up and working in no time.
Only one thing that was slightly different for me that others may find useful was instead of using 'PLUGHW:1,3' which wouldn't work for me I had to use all lower-case 'plughw:1,3' instead.
Posts: 3
Joined: Apr 2012
Reputation:
0
I had no sound as well and have followed along here but now am seeing a little box pop up when starting a movie that states:
Failed to initialize audio device.
Check your audiosettings.
I still don't have any sound on my Acer Aspire. Has anybody seen this popup and can offer any advice?
Thanks.