summaryrefslogtreecommitdiffstats
path: root/apps/radio/radio.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 /apps/radio/radio.c
parent58b226edc51f260a19cf0655bbec67622ebe7cef (diff)
downloadrockbox-906e90eb7b036214b2ee48ad2219e1ef679ee7d1.tar.gz
rockbox-906e90eb7b036214b2ee48ad2219e1ef679ee7d1.tar.bz2
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 'apps/radio/radio.c')
-rw-r--r--apps/radio/radio.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/apps/radio/radio.c b/apps/radio/radio.c
index e9de69b1ce..9f139f49a6 100644
--- a/apps/radio/radio.c
+++ b/apps/radio/radio.c
@@ -192,9 +192,6 @@ void radio_start(void)
/* clear flag before any yielding */
radio_status &= ~FMRADIO_START_PAUSED;
- if(radio_status == FMRADIO_OFF)
- tuner_power(true);
-
curr_freq = global_status.last_frequency * fmr->freq_step + fmr->freq_min;
tuner_set(RADIO_SLEEP, 0); /* wake up the tuner */
@@ -246,9 +243,6 @@ void radio_pause(void)
}
tuner_set(RADIO_MUTE, 1);
- /* For si4700: 2==this is really 'pause'. other tuners treat it
- * like 'bool'. */
- tuner_set(RADIO_SLEEP, 2);
radio_status = FMRADIO_PAUSED;
} /* radio_pause */
@@ -258,7 +252,6 @@ static void radio_off(void)
tuner_set(RADIO_MUTE, 1);
tuner_set(RADIO_SLEEP, 1); /* low power mode, if available */
radio_status = FMRADIO_OFF;
- tuner_power(false); /* status update, power off if avail. */
}
void radio_stop(void)