From: Kailang Yang Date: Wed, 8 Apr 2015 08:34:00 +0000 (+0800) Subject: ALSA: hda/realtek - Make more stable to get pin sense for ALC283 X-Git-Tag: v3.12.41~69 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=791054ac25b7b8a7a92af2a050b2319c1dc78240;p=thirdparty%2Fkernel%2Fstable.git ALSA: hda/realtek - Make more stable to get pin sense for ALC283 commit a59d7199f62b8336570972dcc288321d0ec999fe 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: Kailang Yang Signed-off-by: Takashi Iwai Signed-off-by: Jiri Slaby --- diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 754882b588d4b..1cc403e836447 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -2723,6 +2723,8 @@ static void alc283_init(struct hda_codec *codec) if (!hp_pin) return; + + msleep(30); hp_pin_sense = snd_hda_jack_detect(codec, hp_pin); /* Index 0x43 Direct Drive HP AMP LPM Control 1 */