New bootoption micvol 0.7.29
authorMichael Prokop <mika@grml.org>
Thu, 15 Nov 2007 21:10:38 +0000 (22:10 +0100)
committerMichael Prokop <mika@grml.org>
Thu, 15 Nov 2007 21:10:38 +0000 (22:10 +0100)
autoconfig.functions
debian/changelog

index dc446e4..b3529ce 100755 (executable)
@@ -4,7 +4,7 @@
 # Authors:       grml-team (grml.org), (c) Klaus Knopper <knopper@knopper.net>, (c) Michael Prokop <mika@grml.org>
 # Bug-Reports:   see http://grml.org/bugs/
 # License:       This file is licensed under the GPL v2.
-# Latest change: Don Nov 15 11:46:04 CET 2007 [mika]
+# Latest change: Don Nov 15 22:01:50 CET 2007 [mika]
 ################################################################################
 
 # {{{ path, variables, signals, umask, zsh
@@ -1509,7 +1509,15 @@ else
             amixer set Front ${VOL}% 1>/dev/null
          fi
       fi
-      ERROR=$(aumix -w $VOL -v $VOL -p $VOL -m $VOL 2>&1) ; RC=$?
+      # by default assume '0' as volume for microphone:
+      if checkbootparam micvol ; then
+         MICVOL="$(getbootparam 'micvol' 2>>$DEBUG)"
+      else
+         MICVOL=0
+      fi
+
+      # finally set the volumes:
+      ERROR=$(aumix -w $VOL -v $VOL -p $VOL -m $MICVOL 2>&1) ; RC=$?
       if [ -n "$ERROR" ] ; then
          eindent
          eerror "Problem setting mixer volumes: $ERROR (no soundcard?)"
index 496ead5..2d3bc3c 100644 (file)
@@ -1,3 +1,12 @@
+grml-autoconfig (0.7.29) unstable; urgency=low
+
+  * New bootoption micvol (usage: micvol=$number) for setting mixer/
+    volume settings of microphone channel. Thanks to Ernst Ahlers
+    for the bugreport ("Rückkopplungspfeifen") and bringing up
+    the idea of setting it to '0' by default.
+
+ -- Michael Prokop <mika@grml.org>  Thu, 15 Nov 2007 22:02:03 +0100
+
 grml-autoconfig (0.7.28) unstable; urgency=low
 
   * Drop the 'consolechars --tty=/dev/tty${vc} -d' stuff from