From: Michael Prokop Date: Thu, 15 Nov 2007 21:10:38 +0000 (+0100) Subject: New bootoption micvol X-Git-Tag: 0.7.29 X-Git-Url: http://git.grml.org/?p=grml-autoconfig.git;a=commitdiff_plain;h=bd549b3181a4f96e56c71a1bcaec04564d5aab0a New bootoption micvol --- diff --git a/autoconfig.functions b/autoconfig.functions index dc446e4..b3529ce 100755 --- a/autoconfig.functions +++ b/autoconfig.functions @@ -4,7 +4,7 @@ # Authors: grml-team (grml.org), (c) Klaus Knopper , (c) Michael Prokop # 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?)" diff --git a/debian/changelog b/debian/changelog index 496ead5..2d3bc3c 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 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