ALSA: hda - Fix mute-LED GPIO initialization for IDT codecs
authorTakashi Iwai <tiwai@suse.de>
Tue, 31 Jul 2012 08:40:05 +0000 (10:40 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Aug 2012 15:31:52 +0000 (08:31 -0700)
commit2a69bac35f3667f380d83ca5ed5b880ee7133154
treec7dfc755ecc699f6b201ac6712940521888e7ec5
parent22e0422852d3aa14ad9f1793b8d7cb9e74b81608
ALSA: hda - Fix mute-LED GPIO initialization for IDT codecs

commit 1f43f6c1bc8d740e75b4177eb29110858bb5fea2 upstream.

The IDT codecs initializes the GPIO setup for mute LEDs via
snd_hda_sync_vmaster_hook().  This works in most cases except for the
very first call, which is called before PCM and control creations.
Thus before Master switch is set manually via alsactl, the mute LED
may show the wrong state, depending on the polarity.

Now it's fixed by calling the LED-status update function manually when
no vmaster is set yet.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/pci/hda/patch_sigmatel.c