diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2012-02-05 15:58:10 +0100 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2012-02-25 15:59:08 +0100 |
commit | 906e90eb7b036214b2ee48ad2219e1ef679ee7d1 (patch) | |
tree | 79d581f2d79a4a6ca4ad63824d0c3082c6c4d453 /firmware/drivers/tuner/tea5760uk.c | |
parent | 58b226edc51f260a19cf0655bbec67622ebe7cef (diff) | |
download | rockbox-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/tea5760uk.c')
-rw-r--r-- | firmware/drivers/tuner/tea5760uk.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/drivers/tuner/tea5760uk.c b/firmware/drivers/tuner/tea5760uk.c index c1dff598b3..0e2e208693 100644 --- a/firmware/drivers/tuner/tea5760uk.c +++ b/firmware/drivers/tuner/tea5760uk.c | |||
@@ -61,8 +61,10 @@ int tea5760_set(int setting, int value) | |||
61 | if (value) { | 61 | if (value) { |
62 | /* sleep / standby mode */ | 62 | /* sleep / standby mode */ |
63 | tea5760_set_clear(3, (1<<6), 0); | 63 | tea5760_set_clear(3, (1<<6), 0); |
64 | tuner_power(false); | ||
64 | } | 65 | } |
65 | else { | 66 | else { |
67 | tuner_power(true); | ||
66 | /* active mode */ | 68 | /* active mode */ |
67 | tea5760_set_clear(3, (1<<6), 1); | 69 | tea5760_set_clear(3, (1<<6), 1); |
68 | /* disable hard mute */ | 70 | /* disable hard mute */ |