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
This commit is contained in:
Amaury Pouly 2013-10-21 23:54:04 +02:00
parent 9bdf24a4fe
commit 0463bf4cb2

View file

@ -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)