| View previous topic :: View next topic |
| Author |
Message |
Apreche Guru


Joined: 18 Sep 2003 Posts: 506 Location: Beacon, NY
|
Posted: Sun Oct 09, 2005 4:17 pm Post subject: [SOLVED] need to route oss to optical out |
|
|
I had a lot of problems with sound in linux in the past, and I'm on the verge of fixing everything. I've got an NF7-S motherboard with built in sound card (intel8x0). I'm using the optical/toslink/iec958 output to connect to my new logitech Z-5500 speakers. I've got the following asoundrc.
| Code: | pcm.nforce-hw {
type hw
card 0
device 2
}
pcm.!default {
type plug
slave.pcm "dmixer"
}
pcm.dmixer {
type dmix
ipc_key 1024
ipc_perm 0660
slave {
pcm "hw:0,2"
period_time 0
period_size 1024
buffer_size 4096
rate 48000
}
bindings {
0 0
1 1
}
}
ctl.nforce-hw {
type hw
card 0
device 2
}
pcm.dsp0 {
type plug
slave.pcm "dmixer"
}
ctl.dsp0 {
type plug
slave.pcm "nforce-hw"
}
ctl.mixer0 {
type plug
slave.pcm "nforce-hw"
}
pcm.jackplug {
type plug
slave { pcm "jack" }
}
pcm.jack {
type jack
playback_ports {
0 alsa_pcm:playback_1
1 alsa_pcm:playback_2
}
capture_ports {
0 alsa_pcm:capture_1
1 alsa_pcm:capture_2
}
} | Everything works great so far. I can play any number of sounds via the default alsa pcm device and hear them all perfectly. The one thing that does not work is OSS emulation. Well that's a lie, it does work. But the sound comes out of the analog not the optical output. I need to somehow get all the sounds going through OSS emulation to route to the dmix default PCM device and out the optical instead of out the analog. How can I do this?
EDIT: Ok, I switched from using the in-kernel OSS emulation modules to the alsa-oss package. If I run the aoss script on xmms in oss mode it works just fine. But if I run it on firefox and try to visit a flash website it crashes flash in the browser. xmms supports alsa, I only need this to work for oss-only programs like flash and such. And I need some way for it to work automatically, I can't be bothered typing this aoss command in front of everyting.
Last edited by Apreche on Sun Oct 16, 2005 9:40 pm; edited 1 time in total |
|
| Back to top |
|
 |
theDOC_23 Tux's lil' helper

Joined: 02 Dec 2004 Posts: 121 Location: Aachen, GER
|
Posted: Fri Oct 14, 2005 9:41 am Post subject: |
|
|
hi, there is a module option for the snd-pcm-oss module.
just set the following in the alsa module section:
| Code: | | options snd-pcm-oss dsp_map=2 |
"2" would be the output device of your soundcard, /dev/dsp should map to. |
|
| Back to top |
|
 |
Apreche Guru


Joined: 18 Sep 2003 Posts: 506 Location: Beacon, NY
|
Posted: Sun Oct 16, 2005 9:40 pm Post subject: |
|
|
| OMG thank you so much. I almost can't believe that actually worked! I tried 100 other ways and they all had problems. This is perfect, you rock. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|