Skip to content
/ linux Public

Commit f1d4b89

Browse files
charleskeepaxgregkh
authored andcommitted
ASoC: cs42l43: Report insert for exotic peripherals
[ Upstream commit 6510e13 ] For some exotic peripherals the type detect can return a reserved value of 0x4. This will currently return an error and not report anything to user-space, update this to report the insert normally. Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com> Link: https://patch.msgid.link/20260223093616.3800350-1-ckeepax@opensource.cirrus.com Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 20232d7 commit f1d4b89

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sound/soc/codecs/cs42l43-jack.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -711,6 +711,7 @@ static int cs42l43_run_type_detect(struct cs42l43_codec *priv)
711711
switch (type & CS42L43_HSDET_TYPE_STS_MASK) {
712712
case 0x0: // CTIA
713713
case 0x1: // OMTP
714+
case 0x4:
714715
return cs42l43_run_load_detect(priv, true);
715716
case 0x2: // 3-pole
716717
return cs42l43_run_load_detect(priv, false);

0 commit comments

Comments
 (0)