2007-10-15, 22:35
Ok folks after 2 weeks of struggling to get 5.1 AC3 and DTS working out of my shuttle box I finally spent a few hrs last sunday working out the kinks and got it up and running.
Here is what I finally did to get it running, of course everyone has some sort of differnt config but maybe this might help anyone else who went though the same pains.
first run aplay -l
this shows me that on HW 0 device 1 was my digital out..
device 1: IEC1724 IEC958 [IEC1724 IEC958]
so I know 2 things from this HW = 0 and device = 1
also running aplay -L gave me more info
as you can see from the bold devices listed spdif and iec958 are both listed.
the next thing I did was copied the demo-asoundrc to my home folder and changed the device number from 0 to 1 in the first part of the file (sorry going off memory here)
Next thing I did was run xbmc and go to settings --> settings --> audio config and turned on digital, checked both check boxes and left both fields as "default" (I'm assuming this reads the asoundrc file and uses the default device listed)
then all of a sudden boom audio was working.
something I did before doing this is to test this clip
http://www.torrentportal.com/details/915...rrent.html
which is a 5.1 audio clip with mplayer
you can test this 2 ways (im going from memory so hopefully I remember the right command)
mplayer <file> -ac hwac3 -ao alsa:device=plughw=0.1
if you have dts change -ac to hwdts
also, plughw might not work for you so try this command in stead.
mplayer <file> -ac hwac3 -ao alsa:device=hw=0,1
now keep in mind this assumes that your digital out device = 1 from the above information that aplay spits out.
hopefully this helps people and once again everyone might have a different config/setting
oh one thing that also helped was in ubuntu going to admin/sound settings and selecting the various card options and hitting test till you hear a tone.
ill do my best to post some screen shots of my config and settings in both asoundrc, and system sound settings and volume control panel.
One thing I did notice now is that my clips play alot slower and alot more cpu is taken up, and im starting to see screen tearing in my video playback.
I have a dual core amd 64 x2 3800+ and 2 gigs of ram and a nice video card in my box running on my 65 inch Mitsubishi with dvi or hdmi in which runs my desktop at 1080p.
Here is what I finally did to get it running, of course everyone has some sort of differnt config but maybe this might help anyone else who went though the same pains.
first run aplay -l
Quote:gateway@gateway-desktop:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: SN25P [Shuttle SN25P], device 0: ICE1724 [ICE1724]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: SN25P [Shuttle SN25P], device 1: IEC1724 IEC958 [IEC1724 IEC958]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: SN25P [Shuttle SN25P], device 2: ICE1724 Surrounds [ICE1724 Surround PCM]
Subdevices: 2/2
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
this shows me that on HW 0 device 1 was my digital out..
device 1: IEC1724 IEC958 [IEC1724 IEC958]
so I know 2 things from this HW = 0 and device = 1
also running aplay -L gave me more info
Quote:cards 'cards.pcm'
front 'cards.pcm.front'
rear 'cards.pcm.rear'
center_lfe 'cards.pcm.center_lfe'
side 'cards.pcm.side'
surround40 'cards.pcm.surround40'
surround41 'cards.pcm.surround41'
surround50 'cards.pcm.surround50'
surround51 'cards.pcm.surround51'
surround71 'cards.pcm.surround71'
iec958 'cards.pcm.iec958'
spdif 'cards.pcm.iec958'
modem 'cards.pcm.modem'
phoneline 'cards.pcm.phoneline'
dsnoop 'cards.pcm.dsnoop'
as you can see from the bold devices listed spdif and iec958 are both listed.
the next thing I did was copied the demo-asoundrc to my home folder and changed the device number from 0 to 1 in the first part of the file (sorry going off memory here)
Next thing I did was run xbmc and go to settings --> settings --> audio config and turned on digital, checked both check boxes and left both fields as "default" (I'm assuming this reads the asoundrc file and uses the default device listed)
then all of a sudden boom audio was working.
something I did before doing this is to test this clip
http://www.torrentportal.com/details/915...rrent.html
which is a 5.1 audio clip with mplayer
you can test this 2 ways (im going from memory so hopefully I remember the right command)
mplayer <file> -ac hwac3 -ao alsa:device=plughw=0.1
if you have dts change -ac to hwdts
also, plughw might not work for you so try this command in stead.
mplayer <file> -ac hwac3 -ao alsa:device=hw=0,1
now keep in mind this assumes that your digital out device = 1 from the above information that aplay spits out.
hopefully this helps people and once again everyone might have a different config/setting
oh one thing that also helped was in ubuntu going to admin/sound settings and selecting the various card options and hitting test till you hear a tone.
ill do my best to post some screen shots of my config and settings in both asoundrc, and system sound settings and volume control panel.
One thing I did notice now is that my clips play alot slower and alot more cpu is taken up, and im starting to see screen tearing in my video playback.
I have a dual core amd 64 x2 3800+ and 2 gigs of ram and a nice video card in my box running on my 65 inch Mitsubishi with dvi or hdmi in which runs my desktop at 1080p.