ASoC: max98090: exit workaround earlier if PLL is locked
authorTzung-Bi Shih <tzungbi@google.com>
Fri, 22 Nov 2019 07:31:13 +0000 (15:31 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 27 Nov 2019 12:55:32 +0000 (12:55 +0000)
commit6f49919d11690a9b5614445ba30fde18083fdd63
tree4f0ff593383dc0308270e2bf9d23369c6de9bfc2
parentacb874a7c049ec49d8fc66c893170fb42c01bdf7
ASoC: max98090: exit workaround earlier if PLL is locked

According to the datasheet, PLL lock time typically takes 2 msec and
at most takes 7 msec.

Check the lock status every 1 msec and exit the workaround if PLL is
locked.

Signed-off-by: Tzung-Bi Shih <tzungbi@google.com>
Link: https://lore.kernel.org/r/20191122073114.219945-3-tzungbi@google.com
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/max98090.c