]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: wm8962: Wait for updated value of WM8962_CLOCKING1 register
authorChancel Liu <chancel.liu@nxp.com>
Wed, 9 Nov 2022 12:13:54 +0000 (20:13 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 9 Nov 2022 19:19:49 +0000 (19:19 +0000)
commit8cb806412b35a83b834a9e45af7bb7fe10b603f1
treee3d1e5000a2b5bbc0fec327cf4a93576eae57b3f
parent477dc612e729ad4dd7e2403bbc48259cdbeec3d6
ASoC: wm8962: Wait for updated value of WM8962_CLOCKING1 register

DSPCLK_DIV field in WM8962_CLOCKING1 register is used to generate
correct frequency of LRCLK and BCLK. Sometimes the read-only value
can't be updated timely after enabling SYSCLK. This results in wrong
calculation values. Delay is introduced here to wait for newest value
from register. The time of the delay should be at least 500~1000us
according to test.

Signed-off-by: Chancel Liu <chancel.liu@nxp.com>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20221109121354.123958-1-chancel.liu@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm8962.c