Commit fcc62f12 authored by Kailang Yang's avatar Kailang Yang Committed by Luis Henriques

ALSA: hda/realtek - Make more stable to get pin sense for ALC283

commit a59d7199 upstream.

Pin sense will active when power pin is wake up.
Power pin will not wake up immediately during resume state.
Add some delay to wait for power pin activated.
Signed-off-by: default avatarKailang Yang <kailang@realtek.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarLuis Henriques <luis.henriques@canonical.com>
parent ea88728a
...@@ -3057,6 +3057,8 @@ static void alc283_init(struct hda_codec *codec) ...@@ -3057,6 +3057,8 @@ static void alc283_init(struct hda_codec *codec)
if (!hp_pin) if (!hp_pin)
return; return;
msleep(30);
hp_pin_sense = snd_hda_jack_detect(codec, hp_pin); hp_pin_sense = snd_hda_jack_detect(codec, hp_pin);
/* Index 0x43 Direct Drive HP AMP LPM Control 1 */ /* Index 0x43 Direct Drive HP AMP LPM Control 1 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment