On 2007-11-23 01:14 pm, Yan Seiner wrote:
> How do I assign a device to a specific user/head?
>
> I have a multi-head setup in X; I have 3 sound cards, and I want to
> always have head 1 be assigned USB card #1, regardless of who is logged
> in to head 1.
I'm not quite sure what to suggest to solve this but
below is an example of my simple setup that may help.
> .asoundrc doesn't seem able to either
>
> a) force the use of a specific card (it uses card 1 - but card 1 can
> move around; I want to always use the USB card that's plugged into port
> blah.
>
> or b) use a card that's assigned to that head. (I haven't even figured
> out how to approach this....)
>
> Any suggestions?
My USB cards always get loaded last due to the modprobe.conf
settings and I mainly use Jack with split i/o, incoming
from a USB mixer and outgoing to the S/PDIF on the motherboard.
jackd -R -dalsa -r48000 -p256 -n3 -D -Chw:1,0 -Phw:0,1 -i2 -o2
Perhaps you could define all your cards similar to my
pcm.NVidia and pcm.USX2Y entries and specifically use a
"aplay -D NVidia some.wav" to playback via different devices.
# cat /etc/modprobe.conf
options snd-usb-audio index=-2
options snd-usb-usx2y index=-2 nrpacks=1
# cat /etc/asound.conf
pcm.NVidia { type hw; card NVidia; }
ctl.NVidia { type hw; card NVidia; }
pcm.CA0106 { type hw; card CA0106; }
ctl.CA0106 { type hw; card CA0106; }
pcm.MW8CX { type hw; card default; }
ctl.MW8CX { type hw; card default; }
pcm.USX2Y { type hw; card USX2Y; }
ctl.USX2Y { type hw; card USX2Y; }
#pcm.!default pcm.NVidia
ctl.!default ctl.NVidia
#pcm.jackplug {
pcm.!default {
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
}
}
--markc
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Alsa-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-user