Hi,
here is a copy of my ".asoundrc":
pcm.!default {
type plug
# slave { pcm "hw:Digi968,0" }
slave { pcm "hw:DSP" }
# route_policy duplicate
route_policy copy
}
Switching 'route_policy' from 'duplicate' to 'copy' keeps only a
single
output (channel 1) for a single channel aplay input file. Now you can
use the hdspmixer (or amixer in scripts) to route the first output to
any channel. Here is a sniplet from my /etc/rc.local:
/usr/bin/amixer -q -D hw:DSP cset numid=5 26,24,32768
/usr/bin/amixer -q -D hw:DSP cset numid=5 27,25,32768
/usr/bin/amixer -q -D hw:DSP cset numid=5 26,0,32768
/usr/bin/amixer -q -D hw:DSP cset numid=5 27,1,32768
This routes the first two software output channels to ADAT1 out1+2 and
SPDIF on my HDSP9652.
I hope this helps.
Giso
Paul Davis wrote:
On Sun, Aug 9, 2009 at 12:52 PM, Peter
Plessas<plessas(a)mur.at> wrote:
Hi List,
how can i tell aplay to use just single channel(s) of my HDSP card?
When doing:
aplay -D default:Card=DSP file.wav
i get playback on all 18 channels.
any help is appreciated!
you would need an ~/.asoundrc file that defines a "route" "plugin
device" that explicitly has only 1 (or 2) channels that are mapped to
the relevant channels of the real card. i'm afraid i don't have the
time or memory to provide an example - google will help, for sure..
then tell aplay to use that device instead of "default:Card=DSP"
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user(a)lists.linuxaudio.org
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-user