ASoC: rt5645: improve the depop sequences of CBJ detection
authorShuming Fan <shumingf@realtek.com>
Fri, 18 Aug 2023 02:37:32 +0000 (02:37 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 18 Aug 2023 12:55:05 +0000 (13:55 +0100)
commitaa98697c7dbd8dcb30841ca48456e7d534209d6d
tree4fe1c0645564d78cce292c50864c2e2fb288df9f
parentcfee987c92362331ea754c0fb092d5f37de0f2fb
ASoC: rt5645: improve the depop sequences of CBJ detection

This patch will improve the depop function of CBJ detection before the headphone playback
when the system resumes.
We also want to complete the CBJ detection in the system-level resume function.
It could avoid triggering the detection at the playing state of headphones.

Signed-off-by: Shuming Fan <shumingf@realtek.com>
Link: https://lore.kernel.org/r/20230818023732.2153170-1-shumingf@realtek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5645.c