diff options
author | Lorenzo Miori <memorys60@gmail.com> | 2013-11-21 13:15:08 +0100 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2013-11-21 14:26:24 +0100 |
commit | adc503302c65df3cfd7c0f6f900458a27beb5a9c (patch) | |
tree | be87db2762e566d8bdc3ccd6cc230803b5335c26 | |
parent | 193753aa1f93ba28995a80048cbc46f1fc5cde05 (diff) | |
download | rockbox-adc5033.tar.gz rockbox-adc5033.zip |
tea5767: properly power up the tuner during detect
Change-Id: I5ca5c3ae28db1427e2528cb1740a9199180b9b38
Reviewed-on: http://gerrit.rockbox.org/670
Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
-rw-r--r-- | firmware/drivers/tuner/tea5767.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/drivers/tuner/tea5767.c b/firmware/drivers/tuner/tea5767.c index 6efcee26e3..d0041f9ce1 100644 --- a/firmware/drivers/tuner/tea5767.c +++ b/firmware/drivers/tuner/tea5767.c @@ -167,6 +167,7 @@ void tea5767_init(void) /* init chipid register with 0xFF in case fmradio_i2c_read fails silently */ buf[3] = 0xFF; + tuner_power(true); if (fmradio_i2c_read(I2C_ADR, buf, sizeof(buf)) < 0) { /* no i2c device detected */ tuner_present = false; @@ -175,6 +176,7 @@ void tea5767_init(void) chipid = buf[3] & 0x0F; tuner_present = (chipid == 0); } + tuner_power(false); #endif } |