瀏覽代碼

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>
Kailang Yang 10 年之前
父節點
當前提交
a59d7199f6
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      sound/pci/hda/patch_realtek.c

+ 2 - 0
sound/pci/hda/patch_realtek.c

@@ -2912,6 +2912,8 @@ static void alc283_init(struct hda_codec *codec)
 
 
 	if (!hp_pin)
 	if (!hp_pin)
 		return;
 		return;
+
+	msleep(30);
 	hp_pin_sense = snd_hda_jack_detect(codec, hp_pin);
 	hp_pin_sense = snd_hda_jack_detect(codec, hp_pin);
 
 
 	/* Index 0x43 Direct Drive HP AMP LPM Control 1 */
 	/* Index 0x43 Direct Drive HP AMP LPM Control 1 */