]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerTakashi Iwai <tiwai@suse.de>
Tue, 31 Jul 2012 08:50:20 +0000 (10:50 +0200)
commit71d262ecdacfe567b33e0c008120d5395710bb52
tree6923fdb09817ef494a3142994df19f141b1d634f
parenta4c4b287a701f5febf15c43ffe88e1b3708c7509
ALSA: hda - Fix mute-LED GPIO initialization for IDT codecs

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.

Cc: <stable@vger.kernel.org> [v3.4+]
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_sigmatel.c