mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 10:33:41 +02:00
ASoC: cs42l42: Fallback to headphones for type detect
After tip sense detects a jack insertion, if automatic type detection, and manual type detection fails, then fall back to assume the jack connected belongs to headphones. Signed-off-by: Stefan Binding <sbinding@opensource.cirrus.com> Link: https://lore.kernel.org/r/20220927121440.2506632-1-sbinding@opensource.cirrus.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
db6ae79a7e
commit
4556089150
|
|
@ -1199,14 +1199,11 @@ static void cs42l42_manual_hs_type_detect(struct cs42l42_private *cs42l42)
|
|||
cs42l42->hs_type = CS42L42_PLUG_OMTP;
|
||||
hs_det_sw = CS42L42_HSDET_SW_TYPE2;
|
||||
break;
|
||||
case CS42L42_HSDET_COMP_TYPE3:
|
||||
/* Detect Type 3 and Type 4 Headsets as Headphones */
|
||||
default:
|
||||
cs42l42->hs_type = CS42L42_PLUG_HEADPHONE;
|
||||
hs_det_sw = CS42L42_HSDET_SW_TYPE3;
|
||||
break;
|
||||
default:
|
||||
cs42l42->hs_type = CS42L42_PLUG_INVALID;
|
||||
hs_det_sw = CS42L42_HSDET_SW_TYPE4;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user