This is a note to let you know that I've just added the patch titled

    ALSA: hda - Fix mute-LED GPIO initialization for IDT codecs

to the 3.4-stable tree which can be found at:
    
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     alsa-hda-fix-mute-led-gpio-initialization-for-idt-codecs.patch
and it can be found in the queue-3.4 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.


>From 1f43f6c1bc8d740e75b4177eb29110858bb5fea2 Mon Sep 17 00:00:00 2001
From: Takashi Iwai <[email protected]>
Date: Tue, 31 Jul 2012 10:40:05 +0200
Subject: ALSA: hda - Fix mute-LED GPIO initialization for IDT codecs

From: Takashi Iwai <[email protected]>

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 <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>

---
 sound/pci/hda/patch_sigmatel.c |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

--- a/sound/pci/hda/patch_sigmatel.c
+++ b/sound/pci/hda/patch_sigmatel.c
@@ -4437,7 +4437,13 @@ static int stac92xx_init(struct hda_code
        snd_hda_jack_report_sync(codec);
 
        /* sync mute LED */
-       snd_hda_sync_vmaster_hook(&spec->vmaster_mute);
+       if (spec->gpio_led) {
+               if (spec->vmaster_mute.hook)
+                       snd_hda_sync_vmaster_hook(&spec->vmaster_mute);
+               else /* the very first init call doesn't have vmaster yet */
+                       stac92xx_update_led_status(codec, false);
+       }
+
        if (spec->dac_list)
                stac92xx_power_down(codec);
        return 0;


Patches currently in stable-queue which might be from [email protected] are

queue-3.4/alsa-mpu401-fix-missing-initialization-of-irq-field.patch
queue-3.4/alsa-hda-fix-mute-led-gpio-setup-for-hp-mini-210.patch
queue-3.4/alsa-hda-add-dock-support-for-thinkpad-x230-tablet.patch
queue-3.4/alsa-hda-add-support-for-realtek-alc282.patch
queue-3.4/alsa-hda-fix-polarity-of-mute-led-on-hp-mini-210.patch
queue-3.4/alsa-snd-usb-fix-clock-source-validity-index.patch
queue-3.4/alsa-hda-fix-mute-led-gpio-initialization-for-idt-codecs.patch
queue-3.4/alsa-hda-fix-invalid-d3-of-headphone-dac-on-vt202x-codecs.patch
queue-3.4/alsa-hda-support-dock-on-lenovo-thinkpad-t530-with-alc269vc.patch
queue-3.4/alsa-hda-turn-on-pin_out-from-hdmi-playback-prepare.patch
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to