> Ed Wildgoose wrote: >> Can anyone suggest how to script the controls to default to some known >> values? > > "alsactl store" saves the current values of all mixer control in > /etc/asound.state, "alsactl restore" restores them. > > > HTH > Clemens > >
Hi Clemens, hi Ed, This is not a standard mixer control, alsactl is of no use here. Ed, here's a script for 1:1 routing (hdspmixer preset 1) #! /bin/bash for out_left in $(seq 0 2 16); do let out_right=$out_left+1 let in_left=$out_left+16 let in_right=$out_right+16 amixer cset numid=5 $in_left,$out_left,32768 amixer cset numid=5 $in_right,$out_right,32768 done; This script assumes the hdsp is the default card, if it's not, just add '-c X' (where X is your hdsp's alsa card number) between 'amixer' and 'cset'. Thomas ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click _______________________________________________ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel