ALSA: hda - Fix invalid snd_BUG_ON() in alc271_hp_gate_mic_jack()
authorTakashi Iwai <tiwai@suse.de>
Wed, 23 Jan 2013 12:57:20 +0000 (13:57 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 23 Jan 2013 12:57:20 +0000 (13:57 +0100)
commit0db75790e282dd1c8752b2472a9485940dd92c70
tree9bed56a8ea26e9819b4ceaf10d01713598e214ab
parent2cf215bfaa01384374291a118c8152ab18a55a63
ALSA: hda - Fix invalid snd_BUG_ON() in alc271_hp_gate_mic_jack()

The fixup function is called multiple times before parsing the pins,
so snd_BUG_ON() hits when loaded.  Move it to the proper place in the
if block.

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