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/s1a0903x01.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/s1a0903x01.c')
-rw-r--r-- | firmware/drivers/tuner/s1a0903x01.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/firmware/drivers/tuner/s1a0903x01.c b/firmware/drivers/tuner/s1a0903x01.c index 2c93ebdaad..91d1319fb5 100644 --- a/firmware/drivers/tuner/s1a0903x01.c +++ b/firmware/drivers/tuner/s1a0903x01.c | |||
@@ -47,12 +47,16 @@ int s1a0903x01_set(int setting, int value) | |||
47 | { | 47 | { |
48 | case RADIO_SLEEP: | 48 | case RADIO_SLEEP: |
49 | if (!value) | 49 | if (!value) |
50 | { /* wakeup: just unit */ | 50 | { |
51 | tuner_power(true); | ||
52 | /* wakeup: just unit */ | ||
51 | fm_in1 = DEFAULT_IN1; | 53 | fm_in1 = DEFAULT_IN1; |
52 | fm_in2 = DEFAULT_IN2; | 54 | fm_in2 = DEFAULT_IN2; |
53 | fmradio_set(1, fm_in1); | 55 | fmradio_set(1, fm_in1); |
54 | fmradio_set(2, fm_in2); | 56 | fmradio_set(2, fm_in2); |
55 | } | 57 | } |
58 | else | ||
59 | tuner_power(false); | ||
56 | /* else we have no sleep mode? */ | 60 | /* else we have no sleep mode? */ |
57 | break; | 61 | break; |
58 | 62 | ||