script for changing between recording sources with sblive in alsamixer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Cheryl,

Here is the script I use, called "capture", which takes a lower
case argument from among mike, cd, line, and mix. I am using
alsa 1.03. This ought to be close to what you need.

Chuck


- -- 
The Moon is Waxing Crescent (2% of Full)
My home page is now at http://www.mhcable.com/~chuckh
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iQCVAwUBQNQJizVdG8M9x9tGAQJSRwP9ENdtdINyvrsSOl9shthfmWT9tlddKMPv
+7qUAWGV7KQvk/sHPCQtJ8LnWB+E8TPz8+cJtUJ2sjZKVIX/S9i3PXQ7hXZjudYU
J3nqClPEL7bnC/XWhu6E9WXiGRrxzQXYqoPY8Yth300q40jvTHr8kUpqjeRGDnqE
aJqMdC01gMk=
=N1Lq
-----END PGP SIGNATURE-----
-------------- next part --------------
#!/bin/bash
if [ "$1" = "cd" ]; then
amixer -q sset Mic nocap
amixer -q sset Line nocap
amixer -q sset Mix nocap
#sleep 1
amixer -q sset CD cap
echo "CD on, line mike and mix off."
else
if [ "$1" = "line" ]; then
amixer -q sset Mic nocap
amixer -q sset CD nocap
amixer -q sset Mix nocap
#sleep 1
amixer -q sset Line cap
echo "Line on, cd mike and mix off."
else
if [ "$1" = "mike" ]; then
amixer -q sset CD nocap
amixer -q sset Line nocap
amixer -q sset Mix nocap
#sleep 1
amixer -q sset  'Mic Boost (+20dB)',0 on
amixer -q sset Mic cap
echo "Mike on, cd line and mix off."
else
if [ "$1" = "mix" ]; then
amixer -q sset Mic nocap
amixer -q sset CD nocap
amixer -q sset Line nocap
#sleep 1
amixer -q sset Mix cap
echo "Mix on, cd line and mike off."
else
echo "Usage: Enter one of the following commands:"
echo "capture cd"
echo "capture line"
echo "capture mike"
echo "capture mix"
fi
fi
fi
fi


[Index of Archives]     [Linux for the Blind]     [Fedora Discussioin]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]
  Powered by Linux