Added muting all mics.

master
root 15 years ago
parent 4a6aac09f7
commit 28852f1c99

@ -10,6 +10,7 @@ CHANGE LOG
* Modify profile rc.conf for allowing use interactive boot mode.
* Add empty profile route.conf for corrent work of staticroute.
* Fix double title in grub.conf.
* Modify patch for alsasound, muting all mics.
1.2.3
* Использование Calculate Overlay для профилей сборки системы

@ -1,16 +1,21 @@
--- alsasound 2009-06-30 18:35:23.313115565 +0000
+++ alsasound 2009-06-30 18:34:21.899928132 +0000
@@ -136,7 +136,8 @@
diff --git a/alsasound b/alsasound
index 35e4a23..d55ddec 100755
--- a/alsasound
+++ b/alsasound
@@ -136,7 +136,11 @@ restore() {
ebegin "Restoring Mixer Levels"
if [ ! -r "${alsastatedir}/asound.state" ] ; then
- ewarn "No mixer config in ${alsastatedir}/asound.state, you have to unmute your card!"
+ einfo "Setting up ALSA Mixer Levels"
+ # set output volumes to 70%
+ amixer scontrols | grep -v Mic | sed -nr "/Wave|Master|Front|LFE|Center|Side|Surround|PCM/ s/.*'([^']+)'.*/\\1/p" | xargs -I {} amixer -q set "{}" 70% unmute &>/dev/null
+ # mute all mics
+ amixer scontrols | sed -nr "/Mic/ s/.*'([^']+)'.*/\\1/p" | xargs -I {} amixer -q set "{}" 0% mute &>/dev/null
eend 0
return 0
fi
@@ -191,8 +192,9 @@
@@ -191,8 +195,9 @@ start() {
ebegin "Loading ALSA modules"
eindent
load_modules

Loading…
Cancel
Save