]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: rt5663: Delay and retry reading rt5663 ID register
authorOder Chiou <oder_chiou@realtek.com>
Thu, 9 Nov 2017 11:28:10 +0000 (19:28 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 9 Nov 2017 11:35:54 +0000 (11:35 +0000)
commit5421105a9f1d481666565d02a10893752644e313
treeb4c33f65967ddc2979bc1d78f4b9011634d43b25
parent38ac717cca04b15f110e64bf502db63730e9a6a9
ASoC: rt5663: Delay and retry reading rt5663 ID register

In the probe, the codec may not be ready for I2C reading or there are some
glitches on the i2c line. So if the i2c reading value is incorrect, it will
read again after delay. This issue is similar the patch
https://patchwork.kernel.org/patch/9681421/. In current project, these 2
devices were connected to the same i2c line, and they met the same problem.

Signed-off-by: Oder Chiou <oder_chiou@realtek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5663.c