summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2013-10-21 23:54:04 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2013-10-21 23:54:04 +0200
commit0463bf4cb252a7719feec4d7fede0e960ed876ed (patch)
tree07856a6330454bd1de589c7fece28101badc944a
parent9bdf24a4fedadb4844c01c633b97f355abfde6d7 (diff)
downloadrockbox-0463bf4cb252a7719feec4d7fede0e960ed876ed.tar.gz
rockbox-0463bf4cb252a7719feec4d7fede0e960ed876ed.zip
tea5760uk: properly power up the tuner during detect
The old was doing register read/writes without calling tuner_power(), this is broken for target with real tuner power management. Change-Id: I5e60234697a8b91de6189daf6a10e871d5119b65
-rw-r--r--firmware/drivers/tuner/tea5760uk.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/drivers/tuner/tea5760uk.c b/firmware/drivers/tuner/tea5760uk.c
index e3496a161e..28194b13d1 100644
--- a/firmware/drivers/tuner/tea5760uk.c
+++ b/firmware/drivers/tuner/tea5760uk.c
@@ -173,6 +173,7 @@ void tea5760_init(void)
unsigned short manid, chipid;
/* read all registers */
+ tuner_power(true);
fmradio_i2c_read(I2C_ADR, buf, sizeof(buf));
/* check device id */
@@ -192,6 +193,7 @@ void tea5760_init(void)
tea5760_set_clear(3, (1<<0), 1); /* stereo noise cancellation on */
fmradio_i2c_write(I2C_ADR, write_bytes, sizeof(write_bytes));
}
+ tuner_power(false);
}
void tea5760_dbg_info(struct tea5760_dbg_info *info)