mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2025-04-19 20:58:31 +09:00
ASoC: cs42l43: Reset clamp override on jack removal
Some of the manually selected jack configurations will disable the headphone clamp override. Restore this on jack removal, such that the state is consistent for a new insert. Fixes: fc918cbe874e ("ASoC: cs42l43: Add support for the cs42l43") Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com> Link: https://patch.msgid.link/20250409120717.1294528-1-ckeepax@opensource.cirrus.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
d4c29a3360
commit
5fc7d2b5ca
@ -702,6 +702,9 @@ static void cs42l43_clear_jack(struct cs42l43_codec *priv)
|
||||
CS42L43_PGA_WIDESWING_MODE_EN_MASK, 0);
|
||||
regmap_update_bits(cs42l43->regmap, CS42L43_STEREO_MIC_CTRL,
|
||||
CS42L43_JACK_STEREO_CONFIG_MASK, 0);
|
||||
regmap_update_bits(cs42l43->regmap, CS42L43_STEREO_MIC_CLAMP_CTRL,
|
||||
CS42L43_SMIC_HPAMP_CLAMP_DIS_FRC_MASK,
|
||||
CS42L43_SMIC_HPAMP_CLAMP_DIS_FRC_MASK);
|
||||
regmap_update_bits(cs42l43->regmap, CS42L43_HS2,
|
||||
CS42L43_HSDET_MODE_MASK | CS42L43_HSDET_MANUAL_MODE_MASK,
|
||||
0x2 << CS42L43_HSDET_MODE_SHIFT);
|
||||
|
Loading…
x
Reference in New Issue
Block a user