ASoC: cs42l43: Reset clamp override on jack removal
[ Upstream commit5fc7d2b5ca] 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:fc918cbe87("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
36e0ea1f96
commit
0ba76fb628
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user