Skip to content

Commit 6510e13

Browse files
charleskeepaxbroonie
authored andcommitted
ASoC: cs42l43: Report insert for exotic peripherals
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>
1 parent 6de23f8 commit 6510e13

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

sound/soc/codecs/cs42l43-jack.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -699,6 +699,7 @@ static int cs42l43_run_type_detect(struct cs42l43_codec *priv)
699699
switch (type & CS42L43_HSDET_TYPE_STS_MASK) {
700700
case 0x0: // CTIA
701701
case 0x1: // OMTP
702+
case 0x4:
702703
return cs42l43_run_load_detect(priv, true);
703704
case 0x2: // 3-pole
704705
return cs42l43_run_load_detect(priv, false);

0 commit comments

Comments
 (0)