summaryrefslogtreecommitdiffstats
path: root/move/tree/alsa_default.pl
diff options
context:
space:
mode:
authorMystery Man <unknown@mandriva.org>2005-09-02 22:32:32 +0000
committerMystery Man <unknown@mandriva.org>2005-09-02 22:32:32 +0000
commitbd9ae60ea7df3a2dc09798ea1cba6f55f2c3f0e4 (patch)
tree7a03e33fba584c7014f990f1448a337627d50484 /move/tree/alsa_default.pl
parent4da1048be0a7528a1a9f55e6f87cb2766508473b (diff)
downloaddrakx-backup-do-not-use-bd9ae60ea7df3a2dc09798ea1cba6f55f2c3f0e4.tar
drakx-backup-do-not-use-bd9ae60ea7df3a2dc09798ea1cba6f55f2c3f0e4.tar.gz
drakx-backup-do-not-use-bd9ae60ea7df3a2dc09798ea1cba6f55f2c3f0e4.tar.bz2
drakx-backup-do-not-use-bd9ae60ea7df3a2dc09798ea1cba6f55f2c3f0e4.tar.xz
drakx-backup-do-not-use-bd9ae60ea7df3a2dc09798ea1cba6f55f2c3f0e4.zip
This commit was manufactured by cvs2svn to create tagV10_3_0_53mdk
'V10_3_0_53mdk'.
Diffstat (limited to 'move/tree/alsa_default.pl')
-rwxr-xr-xmove/tree/alsa_default.pl19
1 files changed, 0 insertions, 19 deletions
diff --git a/move/tree/alsa_default.pl b/move/tree/alsa_default.pl
deleted file mode 100755
index 28b06cc04..000000000
--- a/move/tree/alsa_default.pl
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/usr/bin/perl -pi
-
-# state machine:
-if (/\s*control\./) {
- ($min, $max) = (0, 0);
-} elsif (/\s*name '/) {
- # skip masks and blacklist sb live and the like:
- $ignore = /\s*name '.*(3D Control|AC97 Playback Volume|Audigy Analog\/Digital Output Jack|External Amplifier Power Down|Exchange DAC|IEC958 input monitor|IEC958 Capture Monitor|IEC958 Playback Switch|mask|Mic Boost \(\+20dB\)|Mic Playback Switch|Output Jack|Surround down mix)/i;
-} elsif (!$ignore) {
- if (/s*comment.range '(\d+) - (\d+)'/) {
- ($min, $max) = ($1, $2);
- } elsif (/s*value/) {
- # enable switches:
- s/(value\w*\S*)\s* false/\1 true/;
- # set volume to 80%:
- my $val = int($max*0.8);
- s/(value\w*\S*)\s* \d+/\1 $val/;
- }
-}