summaryrefslogtreecommitdiffstats
path: root/move/tree/alsa_default.pl
diff options
context:
space:
mode:
Diffstat (limited to 'move/tree/alsa_default.pl')
-rwxr-xr-xmove/tree/alsa_default.pl12
1 files changed, 6 insertions, 6 deletions
diff --git a/move/tree/alsa_default.pl b/move/tree/alsa_default.pl
index 0ad89c264..d95400f67 100755
--- a/move/tree/alsa_default.pl
+++ b/move/tree/alsa_default.pl
@@ -1,19 +1,19 @@
-#!/usr/bin/perl
+#!/usr/bin/perl -pi
# state machine:
if (/\s*control\./) {
($min, $max) = (0, 0);
} elsif (/\s*name '/) {
- # skip masks
- $ignore = /\s*name '.*(3D Control|mask|Exchange DAC|Output Jack)/;
+ # 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|Output Jack|Surround down mix)/i;
} elsif (!$ignore) {
if (/s*comment.range '(\d+) - (\d+)'/) {
($min, $max) = ($1, $2);
} elsif (/s*value/) {
- # enable switches (we should really blacklist sb live and the like):
+ # enable switches:
s/(value\w*\S*)\s* false/\1 true/;
- # set volume to 67%:
- my $val = int($max*0.6);
+ # set volume to 80%:
+ my $val = int($max*0.8);
s/(value\w*\S*)\s* 0/\1 $val/
}
}