mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 21:22:39 -05:00
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:
parent
9bdf24a4fe
commit
0463bf4cb2
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue