summaryrefslogtreecommitdiff
path: root/firmware/drivers/tuner/tea5767.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/tuner/tea5767.c')
-rw-r--r--firmware/drivers/tuner/tea5767.c2
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)
167 167
168 /* init chipid register with 0xFF in case fmradio_i2c_read fails silently */ 168 /* init chipid register with 0xFF in case fmradio_i2c_read fails silently */
169 buf[3] = 0xFF; 169 buf[3] = 0xFF;
170 tuner_power(true);
170 if (fmradio_i2c_read(I2C_ADR, buf, sizeof(buf)) < 0) { 171 if (fmradio_i2c_read(I2C_ADR, buf, sizeof(buf)) < 0) {
171 /* no i2c device detected */ 172 /* no i2c device detected */
172 tuner_present = false; 173 tuner_present = false;
@@ -175,6 +176,7 @@ void tea5767_init(void)
175 chipid = buf[3] & 0x0F; 176 chipid = buf[3] & 0x0F;
176 tuner_present = (chipid == 0); 177 tuner_present = (chipid == 0);
177 } 178 }
179 tuner_power(false);
178#endif 180#endif
179} 181}
180 182