summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKailang Yang2015-04-08 10:34:00 +0200
committerTakashi Iwai2015-04-08 11:29:45 +0200
commita59d7199f62b8336570972dcc288321d0ec999fe (patch)
tree9f8aceac9414589d7fc7bcc1d2eb495ef0a566d7
parentALSA: usb-audio: don't try to get Benchmark DAC1 sample rate (diff)
downloadkernel-qcow2-linux-a59d7199f62b8336570972dcc288321d0ec999fe.tar.gz
kernel-qcow2-linux-a59d7199f62b8336570972dcc288321d0ec999fe.tar.xz
kernel-qcow2-linux-a59d7199f62b8336570972dcc288321d0ec999fe.zip
ALSA: hda/realtek - Make more stable to get pin sense for ALC283
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>
-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 f75c1274b448..a07da0bbb2b4 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -2912,6 +2912,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 */