Finally found how to get digital sound out to the optical (or coax if youve done my
mod!) for Xdsl 0.6 and later including 0.7.
Heres how:
- Ensure Alsa drivers are installed.
- Run
Emelfm as super user.
- Create a new file
asound.conf and put it in
etc folder
- Paste this in:
CODE
pcm.card0 {
type hw
card 0
}
pcm.dmixer {
type dmix
ipc_key 1025
slave {
pcm "hw:0,2"
period_time 0
period_size 2048
buffer_size 32768
rate 48000
}
bindings {
0 0
1 1
}
}
pcm.skype {
type asym
playback.pcm "dmixer"
capture.pcm "card0"
}
pcm.!default {
type plug
slave.pcm "skype"
}
Then, in bash, type:
alsactl restore to restart the alsa driver.
Start up Firefox and flash etc will play through digital!
For Xmms, you have to goto in Xmms,
Preferences->Audio I/O Plugins->Output Plugin by choosing ALSA, then Configure and set Audio device to 'nVidea IEC958 (hw:0,2)'For Xine, set the Audio output to Alsa, then change "
Notify changes to the hardware mixer" under the Audio tab to
2. (You will probably need to change to Advanced under the GUI tab to see the extra settings).
Apologies if its a bit of a hassle, but I dont know how to set alsa to default to digital out. Ive no idea why "skype" is included but no sound would work without it. I took that code from here:
http://ubuntuforums....p/t-219631.htmlI would have thought:
CODE
pcm.!default {
type hw
card 0
device 2
}
Would set it to use digital by default but it didnt work.
Hopefully somebody has a more elegant solution!
![biggrin.gif](style_emoticons/default/biggrin.gif)