|
|
|
@ -12,6 +12,31 @@
|
|
|
|
|
amixer scontrols | grep -v Mic | sed -nr "/Wave|Master|Front|LFE|Center|Side|Speaker|Surround|PCM/ s/.*'([^']+)'.*/\\\\1/p" | xargs -I {} amixer -q set "{}" 85% unmute &>/dev/null
|
|
|
|
|
# mute all mics
|
|
|
|
|
amixer scontrols | sed -nr "/Mic/ s/.*'([^']+)'.*/\\\\1/p" | xargs -I {} amixer -q set "{}" 0% mute &>/dev/null
|
|
|
|
|
save
|
|
|
|
|
if ! grep -q "PCM Playback Volume" ${alsastatedir}/asound.state
|
|
|
|
|
then
|
|
|
|
|
sed -ri "s/^\}/\
|
|
|
|
|
control.39 \{\\n\
|
|
|
|
|
iface MIXER\\n\
|
|
|
|
|
name 'PCM Playback Volume'\\n\
|
|
|
|
|
value.0 255\\n\
|
|
|
|
|
value.1 255\\n\
|
|
|
|
|
comment \{\\n\
|
|
|
|
|
access 'read write user'\\n\
|
|
|
|
|
type INTEGER\\n\
|
|
|
|
|
count 2\\n\
|
|
|
|
|
range '0 - 255'\\n\
|
|
|
|
|
tlv '0000000100000008ffffec1400000014'\\n\
|
|
|
|
|
dbmin -5100\\n\
|
|
|
|
|
dbmax 0\\n\
|
|
|
|
|
dbvalue.0 0\\n\
|
|
|
|
|
dbvalue.1 0\\n\
|
|
|
|
|
}\\n\
|
|
|
|
|
\}\\n\
|
|
|
|
|
\}\\n\
|
|
|
|
|
/" ${alsastatedir}/asound.state
|
|
|
|
|
restore
|
|
|
|
|
fi
|
|
|
|
|
\3</text>
|
|
|
|
|
<reg>(\s*ebegin "Loading ALSA modules"
|
|
|
|
|
\s*eindent
|
|
|
|
|