|
|
@ -6,7 +6,7 @@
|
|
|
|
if [ ! -r "${alsastatedir}/asound.state" ] ; then
|
|
|
|
if [ ! -r "${alsastatedir}/asound.state" ] ; then
|
|
|
|
- ewarn "No mixer config in ${alsastatedir}/asound.state, you have to unmute your card!"
|
|
|
|
- ewarn "No mixer config in ${alsastatedir}/asound.state, you have to unmute your card!"
|
|
|
|
+ einfo "Setting up ALSA Mixer Levels"
|
|
|
|
+ einfo "Setting up ALSA Mixer Levels"
|
|
|
|
+ amixer scontrols | sed -nr "/Wave|Master|Front|LFE|Center|Side|Surround|PCM/ s/.*(.*).*/\\1/p" | xargs -I {} amixer -q set "{}" 70% unmute &>/dev/null
|
|
|
|
+ amixer scontrols | sed -nr "/Wave|Master|Front|LFE|Center|Side|Surround|PCM/ s/.*'([^']+)'.*/\\1/p" | xargs -I {} amixer -q set "{}" 70% unmute &>/dev/null
|
|
|
|
eend 0
|
|
|
|
eend 0
|
|
|
|
return 0
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|