summaryrefslogtreecommitdiff
path: root/package/alsa-utils/files
diff options
context:
space:
mode:
Diffstat (limited to 'package/alsa-utils/files')
-rw-r--r--package/alsa-utils/files/alsa-utils.postinst4
-rw-r--r--package/alsa-utils/files/amixer.init10
2 files changed, 9 insertions, 5 deletions
diff --git a/package/alsa-utils/files/alsa-utils.postinst b/package/alsa-utils/files/alsa-utils.postinst
index bd4ff3be2..0c381ff14 100644
--- a/package/alsa-utils/files/alsa-utils.postinst
+++ b/package/alsa-utils/files/alsa-utils.postinst
@@ -1,5 +1,5 @@
#!/bin/sh
. $IPKG_INSTROOT/etc/functions.sh
add_rcconf amixer
-add_rcconf amixer_volume amixer_volume "75%"
-add_rcconf amixer_mixer amixer_mixer "Master"
+add_rcconf amixer_volume amixer_volume "80%"
+add_rcconf amixer_mixer amixer_mixer "Master PCM"
diff --git a/package/alsa-utils/files/amixer.init b/package/alsa-utils/files/amixer.init
index 7f5f37177..f5c21b8c3 100644
--- a/package/alsa-utils/files/amixer.init
+++ b/package/alsa-utils/files/amixer.init
@@ -10,11 +10,15 @@ autostart)
exec sh $0 start
;;
start)
- amixer set $amixer_mixer on
- amixer set $amixer_mixer $amixer_volume
+ for mixer in $amixer_mixer; do
+ amixer set $mixer on
+ amixer set $mixer $amixer_volume
+ done
;;
stop)
- amixer set $amixer_mixer off
+ for mixer in $amixer_mixer; do
+ amixer set $mixer off
+ done
;;
restart)
sh $0 stop