diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2013-10-21 23:54:04 +0200 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2013-10-21 23:54:04 +0200 |
commit | 0463bf4cb252a7719feec4d7fede0e960ed876ed (patch) | |
tree | 07856a6330454bd1de589c7fece28101badc944a | |
parent | 9bdf24a4fedadb4844c01c633b97f355abfde6d7 (diff) | |
download | rockbox-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.c | 2 |
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) | |||
173 | unsigned short manid, chipid; | 173 | unsigned short manid, chipid; |
174 | 174 | ||
175 | /* read all registers */ | 175 | /* read all registers */ |
176 | tuner_power(true); | ||
176 | fmradio_i2c_read(I2C_ADR, buf, sizeof(buf)); | 177 | fmradio_i2c_read(I2C_ADR, buf, sizeof(buf)); |
177 | 178 | ||
178 | /* check device id */ | 179 | /* check device id */ |
@@ -192,6 +193,7 @@ void tea5760_init(void) | |||
192 | tea5760_set_clear(3, (1<<0), 1); /* stereo noise cancellation on */ | 193 | tea5760_set_clear(3, (1<<0), 1); /* stereo noise cancellation on */ |
193 | fmradio_i2c_write(I2C_ADR, write_bytes, sizeof(write_bytes)); | 194 | fmradio_i2c_write(I2C_ADR, write_bytes, sizeof(write_bytes)); |
194 | } | 195 | } |
196 | tuner_power(false); | ||
195 | } | 197 | } |
196 | 198 | ||
197 | void tea5760_dbg_info(struct tea5760_dbg_info *info) | 199 | void tea5760_dbg_info(struct tea5760_dbg_info *info) |