Skip to content

Commit 42f990b

Browse files
chadmedjannau
authored andcommitted
ASoC: cs42l84: halve headset detection delay
200ms of sleep was excessive for the standard headset detection routine. Halve this to 100ms. Signed-off-by: James Calligeros <jcalligeros99@gmail.com>
1 parent 16f85f8 commit 42f990b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sound/soc/codecs/cs42l84.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ static void cs42l84_detect_hs(struct cs42l84_private *cs42l84)
724724
CS42L84_MISC_DET_CTL_PDN_MIC_LVL_DET, 0);
725725

726726
/* TODO: Optimize */
727-
msleep(100);
727+
msleep(50);
728728

729729
/* Connect HSBIAS in CTIA wiring */
730730
/* TODO: Should likely be subject of detection */
@@ -745,7 +745,7 @@ static void cs42l84_detect_hs(struct cs42l84_private *cs42l84)
745745
FIELD_PREP(CS42L84_MISC_DET_CTL_DETECT_MODE, 3));
746746

747747
/* TODO: Optimize */
748-
msleep(100);
748+
msleep(50);
749749

750750
regmap_read(cs42l84->regmap, CS42L84_HS_DET_STATUS2, &reg);
751751
regmap_update_bits(cs42l84->regmap,

0 commit comments

Comments
 (0)