From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Knecht Subject: Re: possible problems with rc6 aplay Date: 16 Dec 2002 13:20:11 -0800 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: <1040073611.1312.20.camel@Godzilla> References: <20021216134609.VYJW9197.sccrgwc02.attbi.com@newmx2.fast.net> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20021216134609.VYJW9197.sccrgwc02.attbi.com@newmx2.fast.net> Errors-To: alsa-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: Paul Davis Cc: martin-langer@gmx.de, Alsa-Devel , swpatrick@earthlink.net List-Id: alsa-devel@alsa-project.org This sounds like a fine solution Paul. I'll give it a shot. Thanks! On Mon, 2002-12-16 at 05:49, Paul Davis wrote: > >Martin, > > That might certainly be an answer. How would this amixer switch get > >st in the first place? I wouldn't mind doing it by hand once as long as > >it was then loaded after that. > > what you want is a short startup script (typically in somewhere under > /etc/rc.d, but unfortunately this varies somewhat from linux > distribution to linux distribution). it would look like this: > > #!/bin/sh > > HAMMERFALL=0 # change to match the card number of the > # Hammerfall, as shown in /proc/asound/cards > CLOCK_MODE=0 # auto-sync, the default condition. > CLOCK_MODE_NAME="autosync" > > case $1 in > start) if [ -f /some/path/to/this-host-is-master ] ; then > CLOCK_MODE=1 > CLOCK_MODE_NAME="master" > else > CLOCK_MODE=2 > CLOCK_MODE_NAME="word clock" > fi > echo "Setting Hammerfall to $CLOCK_MODE_NAME mode ..." > amixer -c $HAMMERFALL cset \ > iface=PCM,name='Sync Mode',numid=7 $CLOCK_MODE > esac > exit 0 > > then, just create the file /some/path/to/this-host-is-master on one > machine, and it will automatically set the Master switch when it boots > up. the other machine will remain in AutoSync mode - if they are > connected via word clock, you probably want to change that as well, > using the same script. > > if you need more help with this, let me know. this is one of those > areas where linux and its command line orientation proves so powerful > (though to be fair, its probably possible to do something vaguely > similar on windows, but not using such general-purpose tools). > > --p ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/