From 906e90eb7b036214b2ee48ad2219e1ef679ee7d1 Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Sun, 5 Feb 2012 15:58:10 +0100 Subject: 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 --- firmware/drivers/tuner/tea5760uk.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'firmware/drivers/tuner/tea5760uk.c') 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) if (value) { /* sleep / standby mode */ tea5760_set_clear(3, (1<<6), 0); + tuner_power(false); } else { + tuner_power(true); /* active mode */ tea5760_set_clear(3, (1<<6), 1); /* disable hard mute */ -- cgit v1.2.3