summaryrefslogtreecommitdiff
path: root/firmware/drivers/tuner/ipod_remote_tuner.c
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2012-02-05 15:58:10 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2012-02-25 15:59:08 +0100
commit906e90eb7b036214b2ee48ad2219e1ef679ee7d1 (patch)
tree79d581f2d79a4a6ca4ad63824d0c3082c6c4d453 /firmware/drivers/tuner/ipod_remote_tuner.c
parent58b226edc51f260a19cf0655bbec67622ebe7cef (diff)
downloadrockbox-906e90eb7b036214b2ee48ad2219e1ef679ee7d1.tar.gz
rockbox-906e90eb7b036214b2ee48ad2219e1ef679ee7d1.zip
Move radio power handling from apps/ to drivers.
Remove direct calls to tuner_power(...) in apps/ and let the driver manage tuner power with the RADIO_SLEEP setting. Change-Id: I37cd0472e60db5d666dae1b9fe4755dd65c03edd Reviewed-on: http://gerrit.rockbox.org/84 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
Diffstat (limited to 'firmware/drivers/tuner/ipod_remote_tuner.c')
-rw-r--r--firmware/drivers/tuner/ipod_remote_tuner.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/firmware/drivers/tuner/ipod_remote_tuner.c b/firmware/drivers/tuner/ipod_remote_tuner.c
index ad84cb9890..8b599cb79c 100644
--- a/firmware/drivers/tuner/ipod_remote_tuner.c
+++ b/firmware/drivers/tuner/ipod_remote_tuner.c
@@ -31,8 +31,6 @@
31#include "settings.h" 31#include "settings.h"
32#include "power.h" 32#include "power.h"
33 33
34static bool powered = false;
35
36static unsigned char tuner_param = 0x00, old_tuner_param = 0xFF; 34static unsigned char tuner_param = 0x00, old_tuner_param = 0xFF;
37/* temp var for tests to avoid looping execution in submenus settings*/ 35/* temp var for tests to avoid looping execution in submenus settings*/
38static int mono_mode = -1, old_region = -1; 36static int mono_mode = -1, old_region = -1;
@@ -150,7 +148,6 @@ static void rmt_tuner_scan(int param)
150 iap_send_pkt(data1, sizeof(data1)); 148 iap_send_pkt(data1, sizeof(data1));
151} 149}
152 150
153#if 0 /* function is not used */
154static void rmt_tuner_mute(int value) 151static void rmt_tuner_mute(int value)
155{ 152{
156 /* mute flag off (play) */ 153 /* mute flag off (play) */
@@ -162,7 +159,6 @@ static void rmt_tuner_mute(int value)
162 } 159 }
163 iap_send_pkt(data, sizeof(data)); 160 iap_send_pkt(data, sizeof(data));
164} 161}
165#endif
166 162
167static void rmt_tuner_region(int region) 163static void rmt_tuner_region(int region)
168{ 164{
@@ -362,7 +358,7 @@ int ipod_rmt_tuner_set(int setting, int value)
362 case RADIO_MUTE: 358 case RADIO_MUTE:
363 { 359 {
364 /* mute flag sent to accessory */ 360 /* mute flag sent to accessory */
365 /* rmt_tuner_mute(value); */ 361 rmt_tuner_mute(value);
366 break; 362 break;
367 } 363 }
368 364
@@ -453,10 +449,3 @@ char* ipod_get_rds_info(int setting)
453 } 449 }
454 return text; 450 return text;
455} 451}
456
457bool tuner_power(bool status)
458{
459 bool oldstatus = powered;
460 powered = status;
461 return oldstatus;
462}