Skip to content

Commit

Permalink
ALSA: hda/realtek - Make more stable to get pin sense for ALC283
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
kailangyang authored and tiwai committed Apr 8, 2015
1 parent 9fc88ad commit a59d719
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sound/pci/hda/patch_realtek.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit a59d719

Please sign in to comment.