ASoC: rt711-sdca: fix the latency time of clock stop prepare state machine transitions
authorShuming Fan <shumingf@realtek.com>
Wed, 16 Nov 2022 09:03:18 +0000 (17:03 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Dec 2022 10:37:16 +0000 (11:37 +0100)
commitfe2d44e86e96a48cdd963eda32cb3e1c80eb897f
treed9027c7c741a559b73a8aa4171ef8285edc00f72
parente945f3d809ed07b4e7c2d0e29a80acdca2e71728
ASoC: rt711-sdca: fix the latency time of clock stop prepare state machine transitions

[ Upstream commit c7d7d4e7bb1290cc473610b0bb96d9fa606d00e7 ]

Due to the hardware behavior, it takes some time for CBJ detection/impedance sensing/de-bounce.
The ClockStop_NotFinished flag will be raised until these functions are completed.
In ClockStopMode0 mode case, the SdW controller might check this flag from D3 to D0 when the
jack detection interrupt happened.

Signed-off-by: Shuming Fan <shumingf@realtek.com>
Link: https://lore.kernel.org/r/20221116090318.5017-1-shumingf@realtek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/codecs/rt711-sdca-sdw.c