Hi
new XBMC user here, just starting to get XBMC setup in earnest (have had it for a while) with arrival of new TV and completion of home network and NAS setup.
Have Acer Revo 3610, running Ubuntu 9.10, XBMC Camelot.
I want to have audio output over HDMI and the analog headphone socket from XBMC at the same time.
I have read some ALSA setup hints here and over in the MythTV forums and using those have defined three pcm outputs in my system-wide asound.conf: analog (== headphone jack), digital ( == hdmi), and xbmc ( == both).
From the unix command line this appears to be working.
If I use $speaker-test -D <pcm> -c2 I can hear sound as expected, either analog, hdmi, or both depending on the pcm output I select.
Using $aplay -D <device> <wav file> I can also play a .wav file over one, other, or both.
In XBMC, if I select "custom" as the output device, and plug:analog or plug:digital as the device, I get audio to the appropriate output. But if I select plug:xbmc, I just get noise. To both outputs mind, but just noise. Doesn't seem to matter if I select "analog" or "digital" as the audio format.
So I am clearly missing something in my understanding of how this works.
Can someone enlighten me, or point to the appropriate FAQ/documentation?
Thanks a lot for any hints.
Regards
Liam
liamf
Member Posts: 97 Joined: Mar 2010 Reputation: 0 Location: Ireland |
2010-03-25 11:28
Post: #1
(This post was last modified: 2010-03-26 00:42 by liamf.)
|
| find quote |
liamf
Member Posts: 97 Joined: Mar 2010 Reputation: 0 Location: Ireland |
2010-03-26 00:44
Post: #2
liamf Wrote:I have read some ALSA setup hints here and over in the MythTV forums and using those have defined three pcm outputs in my system-wide asound.conf: analog (== headphone jack), digital ( == hdmi), and xbmc ( == both). Some more playing around and I found the solution for this. It was almost correct ... The correct device to put into the audio output is "ALSA:XBMC" and not "PLUG:XBMC", where I have defined the XBMC device in the asound.conf to be both analog and HDMI. Cool! |
| find quote |
Th3R00st3r
Senior Member Posts: 110 Joined: Nov 2008 Reputation: 0 |
2010-03-29 05:02
Post: #3
My asound.conf has the following on my Revo 1600,
Code: pcm.!hdmi-remap {I have HDMI audio, but need analog (headphone jack) to work for the time being as my receiver doesn't have hdmi and I am waiting for an hdmi switch that outputs optical as well. It just isn't here yet and I need sound through the receiver and not the tv. What did you do to your asound.conf to allow both? |
| find quote |
liamf
Member Posts: 97 Joined: Mar 2010 Reputation: 0 Location: Ireland |
2010-03-29 11:30
Post: #4
Th3R00st3r Wrote:I have HDMI audio, but need analog (headphone jack) to work for the time being as my receiver doesn't have hdmi and I am waiting for an hdmi switch that outputs optical as well. It just isn't here yet and I need sound through the receiver and not the tv. I have this: Code: # ~/.asoundrc or /etc/asound.conf"XBMC" is the name I gave the combined HDMI/Analog output. I didn't figure this out all on my own, either: I learned from the excellent post here: http://forum.xbmc.org/showthread.php?tid=58978 which almost worked for me. It was the ALSA: instead of PLUG: in the XBMC settings which finally did the magic. On a 3610 the HDMI output is device 3. And you have to have to have the pcm.!default section so that menu sounds work properly (they work fine for me too). HTH Liam |
| find quote |
liamf
Member Posts: 97 Joined: Mar 2010 Reputation: 0 Location: Ireland |
2010-03-29 11:34
Post: #5
I also notice as I post it there that some of the comments in the asound.conf file are not correct any more - as shown it is for the HDMI output on the Revo and not the S/PDIF output ....
So references to S/PDIF in the comments should be ignored. It shouldn't be hard to have HDMI + Analog + S/PDIF all working using the same technique probably, but I don't have an optical amp next to the XBMC box to check it, so you'd have to try that yourself ... |
| find quote |
Th3R00st3r
Senior Member Posts: 110 Joined: Nov 2008 Reputation: 0 |
2010-03-29 15:12
Post: #6
Thanks Liamf. I have a Revo 1600 and I am assuming this would work the same for the 1600 as it does the 3610, but I also assume it is using different hardware so I will backup my original asound.conf before I muck it up.
Thanks! |
| find quote |
kola
Junior Member Posts: 7 Joined: Jul 2009 Reputation: 0 |
2010-05-21 13:55
Post: #7
This works indeed and I can recommend it to anyone with Revo 3610 who needs HDMI and analog audio output.
Thanks Liamf! |
| find quote |
Michael 2010
Junior Member Posts: 25 Joined: May 2010 Reputation: 0 |
2010-05-21 14:25
Post: #8
where is this file and how you edit am have the same problem cant get hdmi audio out me revo 3610?
liamf Wrote:I have this: |
| find quote |
liamf
Member Posts: 97 Joined: Mar 2010 Reputation: 0 Location: Ireland |
2010-05-21 21:32
Post: #9
Quote:where is this file and how you edit am have the same problem cant get hdmi audio out me revo 3610? As stated in the comments in the quoted code, the simplest thing to do with that file that I quote is to copy it, verbatim, to the file /etc/asound.conf On your system by default this file will probably not exist (I forget to be honest). Just create a text file using your favourite text editor and populate it with the contents I listed in my post. Then configure the sound in XMBC as stated. The restart XBMC. And you should be all set. |
| find quote |
Michael 2010
Junior Member Posts: 25 Joined: May 2010 Reputation: 0 |
2010-05-24 02:18
Post: #10
still cant get audio this what done
1 copy the file asound.conf in to etc/ then went to system/prefence/sound /hardware change that to digital hdmi stero out put xbmc change that to digital audio out put select custom and type ALSA:XBMC in caps lock is this right michael |
| find quote |

Search
Help