mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 01:04:41 +01:00
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>
This commit is contained in:
parent
6de23f81a5
commit
6510e1324b
1 changed files with 1 additions and 0 deletions
|
|
@ -699,6 +699,7 @@ static int cs42l43_run_type_detect(struct cs42l43_codec *priv)
|
|||
switch (type & CS42L43_HSDET_TYPE_STS_MASK) {
|
||||
case 0x0: // CTIA
|
||||
case 0x1: // OMTP
|
||||
case 0x4:
|
||||
return cs42l43_run_load_detect(priv, true);
|
||||
case 0x2: // 3-pole
|
||||
return cs42l43_run_load_detect(priv, false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue