From: Mark Knecht <markknecht@attbi.com>
To: Paul Davis <paul@linuxaudiosystems.com>
Cc: martin-langer@gmx.de,
Alsa-Devel <alsa-devel@lists.sourceforge.net>,
swpatrick@earthlink.net
Subject: Re: possible problems with rc6 aplay
Date: 16 Dec 2002 13:20:11 -0800 [thread overview]
Message-ID: <1040073611.1312.20.camel@Godzilla> (raw)
In-Reply-To: <20021216134609.VYJW9197.sccrgwc02.attbi.com@newmx2.fast.net>
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/
next parent reply other threads:[~2002-12-16 21:20 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20021216134609.VYJW9197.sccrgwc02.attbi.com@newmx2.fast.net>
2002-12-16 21:20 ` Mark Knecht [this message]
[not found] <200212161844.18o7IP2Gs3NZFjV0@sparrow.mail.pas.earthlink.net>
2002-12-17 17:08 ` possible problems with rc6 aplay patrick reardon
[not found] <200212151910.18nLEb5ck3NZFjX0@robin>
2002-12-16 22:53 ` patrick reardon
2002-12-17 1:44 ` Mark Knecht
2002-12-17 2:48 ` Paul Davis
2002-12-15 21:59 patrick reardon
2002-12-15 22:15 ` Mark Knecht
2002-12-16 3:13 ` Paul Davis
2002-12-16 4:38 ` Mark Knecht
2002-12-16 10:17 ` Martin Langer
2002-12-16 12:04 ` Mark Knecht
2002-12-16 13:49 ` Paul Davis
2002-12-16 13:57 ` Takashi Iwai
2002-12-16 14:29 ` Paul Davis
2002-12-16 14:36 ` Martin Langer
2002-12-16 14:51 ` Paul Davis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1040073611.1312.20.camel@Godzilla \
--to=markknecht@attbi.com \
--cc=alsa-devel@lists.sourceforge.net \
--cc=martin-langer@gmx.de \
--cc=paul@linuxaudiosystems.com \
--cc=swpatrick@earthlink.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox