diff options
| author | Thomas Martitz <kugel@rockbox.org> | 2014-03-09 23:25:50 +0100 |
|---|---|---|
| committer | Thomas Martitz <kugel@rockbox.org> | 2014-03-09 23:25:50 +0100 |
| commit | dda54b85daa83b7803b4fb189ab45859f96ff3f9 (patch) | |
| tree | 06ffa45593f08450c421b81c42869f298c9e1268 /utils/ypr0tools | |
| parent | 157562bdbd38b7c4927274d96181a779f48092ac (diff) | |
| download | rockbox-dda54b85daa83b7803b4fb189ab45859f96ff3f9.zip rockbox-dda54b85daa83b7803b4fb189ab45859f96ff3f9.tar.gz rockbox-dda54b85daa83b7803b4fb189ab45859f96ff3f9.tar.bz2 rockbox-dda54b85daa83b7803b4fb189ab45859f96ff3f9.tar.xz | |
ypr1: Add some commands to rockbox.sh which are needed for playback
Change-Id: I2772e218174b5d1fbc7c066fee41d6fb06c01900
Diffstat (limited to 'utils/ypr0tools')
| -rwxr-xr-x | utils/ypr0tools/rockbox.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/utils/ypr0tools/rockbox.sh b/utils/ypr0tools/rockbox.sh index fcae06d..00a541f 100755 --- a/utils/ypr0tools/rockbox.sh +++ b/utils/ypr0tools/rockbox.sh @@ -38,6 +38,19 @@ echo -n "0" >> /sys/class/graphics/fb0/blank amixer sset 'Soft Mute' 0 amixer sset 'Master' 85% +# These are needed only for the R1. TODO: Move all of this into the firmware +if [ -e "/usr/local/bin/r1" ] +then + amixer cset numid=7,iface=MIXER,name='Master Power witch' 2 + amixer cset numid=6,iface=MIXER,name='Master Handfree Switch' 0 + amixer cset numid=5,iface=MIXER,name='Master Mute' 0 + amixer cset numid=9,iface=MIXER,name='Master samplerate' 44100 + amixer cset numid=2,iface=MIXER,name='Master Volume' 28 + amixer cset numid=1,iface=MIXER,name='PCM PlayBack Switch' 2 + amixer cset numid=8,iface=MIXER,name='FM Mute' 0 + amixer cset numid=4,iface=MIXER,name='Capture FM Switch' 0 + amixer cset numid=3,iface=MIXER,name='Capture Mic Switch' 0 +fi # We set-up various settings for the cpu governor: default are # Every 1,5 s the kernel evaluates if it's the case to down/up clocking the cpu |