[CM] Snd + alsa: how use digital in
Fernando Pablo Lopez-Lezcano
nando@ccrma.Stanford.EDU
Mon, 27 May 2002 15:31:31 -0700 (PDT)
> Recently I installed a sound card with digital in (with cmi8738 chip)
> in my linux system with alsa. With 'arecord -D hw:0.2' I can succesfully record
> from my digital input. How can I do the same with with Snd? The
> digital inputs do not appear on the record window. I compiled Snd with alsa support.
You could try to set up an environment variable before starting snd to
point to that particular device. This is the way snd reacts to env
variables:
- searched for in the following order:
SNDLIB_ALSA_PLAYBACK_DEVICE
defines the name of the playback device
SNDLIB_ALSA_CAPTURE_DEVICE
defines the name of the capture device
SNDLIB_ALSA_DEVICE
defines the name of the playback and capture device
use the first two if the playback and capture devices are different or the
third if they are the same.
So you could try:
SNDLIB_ALSA_DEVICE="hw:0,2" snd
if you are using bash as your shell
This should use the digital i/o as the input output device. It would also
be possible to concatenate several devices using a definition in the
.asoundrc file but that would involve understanding its arcane
configuration language, which I don't. The current snd alss 0.9 code only
looks at the first device it finds (normally hw:0,0).
-- Fernando