summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xutils/ypr0tools/rockbox.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/utils/ypr0tools/rockbox.sh b/utils/ypr0tools/rockbox.sh
index fcae06d717..00a541f381 100755
--- a/utils/ypr0tools/rockbox.sh
+++ b/utils/ypr0tools/rockbox.sh
@@ -38,6 +38,19 @@ echo -n "0" >> /sys/class/graphics/fb0/blank
38 38
39amixer sset 'Soft Mute' 0 39amixer sset 'Soft Mute' 0
40amixer sset 'Master' 85% 40amixer sset 'Master' 85%
41# These are needed only for the R1. TODO: Move all of this into the firmware
42if [ -e "/usr/local/bin/r1" ]
43then
44 amixer cset numid=7,iface=MIXER,name='Master Power witch' 2
45 amixer cset numid=6,iface=MIXER,name='Master Handfree Switch' 0
46 amixer cset numid=5,iface=MIXER,name='Master Mute' 0
47 amixer cset numid=9,iface=MIXER,name='Master samplerate' 44100
48 amixer cset numid=2,iface=MIXER,name='Master Volume' 28
49 amixer cset numid=1,iface=MIXER,name='PCM PlayBack Switch' 2
50 amixer cset numid=8,iface=MIXER,name='FM Mute' 0
51 amixer cset numid=4,iface=MIXER,name='Capture FM Switch' 0
52 amixer cset numid=3,iface=MIXER,name='Capture Mic Switch' 0
53fi
41 54
42# We set-up various settings for the cpu governor: default are 55# We set-up various settings for the cpu governor: default are
43# Every 1,5 s the kernel evaluates if it's the case to down/up clocking the cpu 56# Every 1,5 s the kernel evaluates if it's the case to down/up clocking the cpu