summaryrefslogtreecommitdiff
path: root/alsaconf
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2005-12-14 15:34:21 +0000
committerTakashi Iwai <tiwai@suse.de>2005-12-14 15:34:21 +0000
commit6106ed87205edfa7a571ed86a1d836ec4e64df7f (patch)
treedb73293a6140caa8a04c9cb6e5b73c80b1e08e46 /alsaconf
parent35c0bd63ece8d6a19b19e677cc53c20f942bf6ff (diff)
downloadalsa-utils-6106ed87205edfa7a571ed86a1d836ec4e64df7f.tar.gz
Use amixer -s option
Optimize to use amixer with -s option.
Diffstat (limited to 'alsaconf')
-rw-r--r--alsaconf/alsaconf.in59
1 files changed, 28 insertions, 31 deletions
diff --git a/alsaconf/alsaconf.in b/alsaconf/alsaconf.in
index 5b35257..d958785 100644
--- a/alsaconf/alsaconf.in
+++ b/alsaconf/alsaconf.in
@@ -399,38 +399,35 @@ remove_ac_block() {
#
# set default mixer volumes
#
-mixer() {
- amixer set "$1" "$2" unmute >/dev/null 2>&1
- amixer set "$1" unmute >/dev/null 2>&1
-}
-
set_mixers() {
- mixer Master 75%
- mixer Front 75%
- mixer PCM 90%
- mixer Synth 90%
- mixer CD 90%
- # mute mic
- amixer set Mic 0% mute >/dev/null 2>&1
- # ESS 1969 chipset has 2 PCM channels
- mixer PCM,1 90%
- # Trident/YMFPCI/emu10k1
- mixer Wave 100%
- mixer Music 100%
- mixer AC97 100%
- # CS4237B chipset:
- mixer 'Master Digital' 75%
- # Envy24 chips with analog outs
- mixer DAC 90%
- mixer DAC,0 90%
- mixer DAC,1 90%
- # some notebooks use headphone instead of master
- mixer Headphone 75%
- mixer 'Internal Speaker' 75%
- mixer Playback 100%
- # turn off digital switches
- amixer set "SB Live Analog/Digital Output Jack" off >/dev/null 2>&1
- amixer set "Audigy Analog/Digital Output Jack" off >/dev/null 2>&1
+ amixer -s -q <<EOF
+set Master 75% unmute
+set 'Master Mono' 75% unmute
+set Front 75% unmute
+set PCM 90% unmute
+mixer Synth 90% unmute
+mixer CD 90% unmute
+# mute mic
+set Mic 0% mute
+# ESS 1969 chipset has 2 PCM channels
+set PCM,1 90% unmute
+# Trident/YMFPCI/emu10k1
+set Wave 100% unmute
+set Music 100% unmute
+set AC97 100% unmute
+# CS4237B chipset:
+set 'Master Digital' 75% unmute
+# Envy24 chips with analog outs
+set DAC 90% unmute
+set DAC,0 90% unmute
+set DAC,1 90% unmute
+# some notebooks use headphone instead of master
+set Headphone 75% unmute
+set Playback 100% unmute
+# turn off digital switches
+set "SB Live Analog/Digital Output Jack" off
+set "Audigy Analog/Digital Output Jack" off
+EOF
}