From 5e6363a56daf1903898b4e48b6b15cadc468fb32 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Mon, 7 Nov 2011 00:09:04 +0100 Subject: [PATCH] sound: revise and add new controls to default channels volume settings --- postplug.d/35sound | 55 +++++++++++++++++++++++++++++----------------- 1 file changed, 35 insertions(+), 20 deletions(-) diff --git a/postplug.d/35sound b/postplug.d/35sound index 4100835..764eebc 100644 --- a/postplug.d/35sound +++ b/postplug.d/35sound @@ -26,35 +26,50 @@ SYSCONFIG_SOUNDCARDS=/etc/sysconfig/soundcards # set default mixer volumes function set_mixers() { [ -x /usr/bin/amixer ] || return + channel=$1 + [ "$channel" ] || channel=0 - /usr/bin/amixer -s -q <<_EOF -set Master 90% unmute + /usr/bin/amixer -s -c $channel -q <<_EOF +# Playback channels +set 'Master' 90% unmute +# some notebooks use headphone instead of master +set 'Headphone' 75% unmute +set 'Playback' 100% unmute set 'Master Mono' 75% unmute -set Front 90% unmute -set Speaker 90% unmute -set PCM 90% unmute -mixer Synth 90% unmute -mixer CD 90% unmute +set 'Front' 90% unmute +set 'Speaker' 90% unmute +set 'PCM' 90% unmute +set 'Surround' 90% unmute +set 'Center' 90% unmute +set 'LFE' 90% unmute +set 'Line' 75% unmute +set 'CD' 90% unmute +set 'Synth' 90% unmute # mute mic -set Mic 0% mute +set 'Front Mic' 75% mute +set 'Mic' 75% mute # ESS 1969 chipset has 2 PCM channels -set PCM,1 90% unmute +set 'PCM,1' 90% unmute # Trident/YMFPCI/emu10k1 -set Wave 100% unmute -set Music 100% unmute -set AC97 100% unmute +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 +set 'DAC' 90% unmute +set 'DAC,0' 90% unmute +set 'DAC,1' 90% unmute +# Capture channels +set 'Capture' 90% unmute +set 'Capture 1' 90% unmute +set 'Capture 2' 90% unmute +# virtual channels +set 'Capture Gain' 50% unmute +set 'Output Gain' 75% unmute # turn off digital switches -set "SB Live Analog/Digital Output Jack" off -set "Audigy Analog/Digital Output Jack" off +set 'SB Live Analog/Digital Output Jack' off +set 'Audigy Analog/Digital Output Jack' off _EOF }