From 0463bf4cb252a7719feec4d7fede0e960ed876ed Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Mon, 21 Oct 2013 23:54:04 +0200 Subject: [PATCH] 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 --- firmware/drivers/tuner/tea5760uk.c | 2 ++ 1 file changed, 2 insertions(+) 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)