vdr/vdr-plugin-bitstreamout/bitstreamout/mute soundblaster.sh
Thomas Schmidt
pkg-vdr-dvb-changes@lists.alioth.debian.org
Fri, 18 Jun 2004 18:53:33 +0000
Update of /cvsroot/pkg-vdr-dvb/vdr/vdr-plugin-bitstreamout/bitstreamout/mute
In directory haydn:/tmp/cvs-serv24055/vdr/vdr-plugin-bitstreamout/bitstreamout/mute
Modified Files:
soundblaster.sh
Log Message:
new upstream-version 0.61
Index: soundblaster.sh
===================================================================
RCS file: /cvsroot/pkg-vdr-dvb/vdr/vdr-plugin-bitstreamout/bitstreamout/mute/soundblaster.sh,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- soundblaster.sh 22 Apr 2004 11:02:37 -0000 1.1.1.1
+++ soundblaster.sh 18 Jun 2004 18:53:30 -0000 1.2
@@ -29,12 +29,24 @@
#
card="-c 0"
-x=$1
+#
+# Please configure your special soundblaster card.
+# Note that if sonething is missed or is not available
+# for your special soundblaster card you may modify this
+# script by adding more ``has_feature'' variables.
+# Also it would be a good extension to know how todo
+# the loop through feature (for redirecting SPDIF out of
+# the DVB card to a SPDIF in of the soundblaster).
+#
+has_3d=yes
+has_surround=yes
+
#
# For more information see manual page of amixer
# Try `amixer controls| grep IEC958'
#
+x=$1
case "$x" in
on|out|unmute)
amixer -q $card sset 'Wave' 90%,90%
@@ -58,12 +70,16 @@
amixer -q $card sset 'Bass' 0%,0%
amixer -q $card sset 'Treble' 0%,0%
-amixer -q $card sset '3D Control - Switch' 0%,0% mute
-amixer -q $card sset '3D Control Sigmatel - Depth' 0%,0%
-amixer -q $card sset '3D Control Sigmatel - Rear Depth' 0%,0%
+if test "$has_3d" = "yes" ; then
+ amixer -q $card sset '3D Control - Switch' 0%,0% mute
+ amixer -q $card sset '3D Control Sigmatel - Depth' 0%,0%
+ amixer -q $card sset '3D Control Sigmatel - Rear Depth' 0%,0%
+fi
amixer -q $card sset 'PCM' 0%,0% mute
-amixer -q $card sset 'Surround' 0%,0% mute
+if test "$has_surround" = "yes" ; then
+ amixer -q $card sset 'Surround' 0%,0% mute
+fi
amixer -q $card sset 'Surround Digital' 0%,0% capture
amixer -q $card sset 'Center' 0%,0%
amixer -q $card sset 'LFE' 0%,0%