ALSA: hda/realtek - Make more stable to get pin sense for ALC283
authorKailang Yang <kailang@realtek.com>
Wed, 8 Apr 2015 08:34:00 +0000 (16:34 +0800)
committerSasha Levin <sasha.levin@oracle.com>
Thu, 23 Apr 2015 03:28:06 +0000 (23:28 -0400)
[ Upstream commit a59d7199f62b8336570972dcc288321d0ec999fe ]

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 <kailang@realtek.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
sound/pci/hda/patch_realtek.c

index af4002e..6bfa5d6 100644 (file)
@@ -2908,6 +2908,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 */