From 1fea6f6b22af74e904d918fff4cebec345529f4b Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Sat, 27 Dec 2008 19:18:50 +0000 Subject: Make si4700 tuner driver more sane with bit and field defines and entirely hide strange i2c interface from code with write/set/clear/masked functionality. On Gigabeat S use by-the-book busmode selection and GPIO lines. Implement some primitive station detection, debug registers in screen, and misc. changes to tie things together. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19600 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/as3525/power-as3525.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'firmware/target/arm/as3525/power-as3525.c') diff --git a/firmware/target/arm/as3525/power-as3525.c b/firmware/target/arm/as3525/power-as3525.c index 07867546c2..2fbeab0bc6 100644 --- a/firmware/target/arm/as3525/power-as3525.c +++ b/firmware/target/arm/as3525/power-as3525.c @@ -54,9 +54,21 @@ void ide_power_enable(bool on) } #if CONFIG_TUNER +static bool tuner_on = false; + bool tuner_power(bool status) { - (void)status; - return false; + if (status != tuner_on) + { + tuner_on = status; + status = !status; + } + + return status; +} + +bool tuner_powered(void) +{ + return tuner_on; /* No debug info */ } #endif -- cgit v1.2.3