mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 19:08:57 +09:00
ALSA: hda/cs8409: Increase delay during jack detection
[ Upstream commit8cd0765717] Commitc8b4f0865ereduced delays related to cs42l42 jack detection. However, the change was too aggressive. As a result internal speakers on DELL Inspirion 3501 are not detected. Increase the delay in cs42l42_run_jack_detect() a bit. Fixes:c8b4f0865e("ALSA: hda/cs8409: Remove unnecessary delays") Signed-off-by: Christian A. Ehrhardt <lk@c--e.de> Link: https://lore.kernel.org/r/20211231131221.itwotyfk5qomn7n6@cae.in-ulm.de Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
65b517f4e0
commit
b624b5b2fe
@@ -628,8 +628,8 @@ static void cs42l42_run_jack_detect(struct sub_codec *cs42l42)
|
||||
cs8409_i2c_write(cs42l42, 0x1b74, 0x07);
|
||||
cs8409_i2c_write(cs42l42, 0x131b, 0xFD);
|
||||
cs8409_i2c_write(cs42l42, 0x1120, 0x80);
|
||||
/* Wait ~100us*/
|
||||
usleep_range(100, 200);
|
||||
/* Wait ~20ms*/
|
||||
usleep_range(20000, 25000);
|
||||
cs8409_i2c_write(cs42l42, 0x111f, 0x77);
|
||||
cs8409_i2c_write(cs42l42, 0x1120, 0xc0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user