diff options
author | Kailang Yang <kailang@realtek.com> | 2015-04-08 16:34:00 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-04-19 10:11:05 +0200 |
commit | 328927c7aaf8d7743ccd1f0df514155ff46af694 (patch) | |
tree | 650fe43d897cf3988f9c7618e339c60f7d4ed723 /sound | |
parent | 6a8bc76409acd4bc64250f43f974d4e6463a39fa (diff) | |
download | lwn-328927c7aaf8d7743ccd1f0df514155ff46af694.tar.gz lwn-328927c7aaf8d7743ccd1f0df514155ff46af694.zip |
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 <kailang@realtek.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/hda/patch_realtek.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 94615072e373..82b8a87b8614 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -2885,6 +2885,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 */ |