projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c193300
)
ALSA: hda/cs8409: Increase delay during jack detection
author
Christian A. Ehrhardt
<lk@c--e.de>
Fri, 31 Dec 2021 13:12:21 +0000
(14:12 +0100)
committer
Takashi Iwai
<tiwai@suse.de>
Tue, 4 Jan 2022 16:05:37 +0000
(17:05 +0100)
Commit
c8b4f0865e82
reduced 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: c8b4f0865e82 ("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>
sound/pci/hda/patch_cs8409.c
patch
|
blob
|
history
diff --git
a/sound/pci/hda/patch_cs8409.c
b/sound/pci/hda/patch_cs8409.c
index 31ff11ab868e1ac3c1aff15d20a52728884e2788..07eab788b14587681d9b159b86b7858595d88f8a 100644
(file)
--- a/
sound/pci/hda/patch_cs8409.c
+++ b/
sound/pci/hda/patch_cs8409.c
@@
-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 ~
100u
s*/
- usleep_range(
100, 2
00);
+ /* Wait ~
20m
s*/
+ usleep_range(
20000, 250
00);
cs8409_i2c_write(cs42l42, 0x111f, 0x77);
cs8409_i2c_write(cs42l42, 0x1120, 0xc0);
}