summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2010-05-24 20:12:10 +0000
committerMichael Sevakis <jethead71@rockbox.org>2010-05-24 20:12:10 +0000
commite236b9574641302d02e4d044ed78a65e9ae6fdc2 (patch)
tree7c560c9397de3670e2448587050591c05eae436d /firmware
parent06601e5fbaa772bdfe4265c19ff75c3f8c24e223 (diff)
downloadrockbox-e236b9574641302d02e4d044ed78a65e9ae6fdc2.tar.gz
rockbox-e236b9574641302d02e4d044ed78a65e9ae6fdc2.tar.bz2
rockbox-e236b9574641302d02e4d044ed78a65e9ae6fdc2.zip
Si4700 tuner: It doesn't like to do i2c while powered off and hangs the bus. Make 'pause' simply be 'mute', allowing tuning during user mute as well as nicer-sounding unmute.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26269 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/drivers/tuner/si4700.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/drivers/tuner/si4700.c b/firmware/drivers/tuner/si4700.c
index 3a49d6ef41..985659b77b 100644
--- a/firmware/drivers/tuner/si4700.c
+++ b/firmware/drivers/tuner/si4700.c
@@ -411,7 +411,9 @@ int si4700_set(int setting, int value)
switch(setting)
{
case RADIO_SLEEP:
- si4700_sleep(value);
+ if (value != 2)
+ si4700_sleep(value);
+ /* else actually it's 'pause' */
break;
case RADIO_FREQUENCY: