summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorKailang Yang <kailang@realtek.com>2015-04-08 16:34:00 +0800
committerSasha Levin <sasha.levin@oracle.com>2015-04-22 23:28:06 -0400
commit432b1f9b275f1e6640212323d24fae779e2e7f55 (patch)
tree143ae913ef7798fb56ab5628bced281b78756ac9 /sound
parent8c54c7cb6fa1ddfc53b280c8be8ef3888a0245df (diff)
ALSA: hda/realtek - Make more stable to get pin sense for ALC283
[ 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>
Diffstat (limited to 'sound')
-rw-r--r--sound/pci/hda/patch_realtek.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index af4002e76b53..6bfa5d68df5d 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -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 */