ALSA: hda/generic - Fix wrong initial power state for fixed pins
authorTakashi Iwai <tiwai@suse.de>
Thu, 9 Apr 2015 08:21:30 +0000 (10:21 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 9 Apr 2015 08:33:44 +0000 (10:33 +0200)
commitd5ac0100a9027bdf488cf20247b1041f26f796f3
tree0ff84a125b7a94f929824cd3dca9873e1c3271d8
parent2206dc949286fe0010c69213d3d8b4c53e6a2295
ALSA: hda/generic - Fix wrong initial power state for fixed pins

When the widget power-saving is enabled, the first automute hook
invocation checks through the whole pins and it also tries to
synchronize the power state.  However, this results in a wrong state
because it calls unconditionally snd_hda_jack_detect_state().
This patch adds a check of jack detectability before the actual jack
detection call.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_generic.c