Re: [LAU] aplay and HDSP single channel?

From: Giso Grimm <gg3137@email-addr-hidden>
Date: Mon Aug 10 2009 - 16:09:10 EEST

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@email-addr-hidden> 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@email-addr-hidden
> http://lists.linuxaudio.org/mailman/listinfo/linux-audio-user

_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@email-addr-hidden
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-user
Received on Mon Aug 10 20:15:10 2009

This archive was generated by hypermail 2.1.8 : Mon Aug 10 2009 - 20:15:10 EEST