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

    ALSA: hda/via - don't report presence on HPs with no presence support

to the 3.6-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-via-don-t-report-presence-on-hps-with-no-presence-support.patch
and it can be found in the queue-3.6 subdirectory.

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


>From cf55e904516947597d75fd3844acc24891a95772 Mon Sep 17 00:00:00 2001
From: Herton Ronaldo Krzesinski <[email protected]>
Date: Fri, 21 Sep 2012 20:45:19 -0300
Subject: ALSA: hda/via - don't report presence on HPs with no presence support

From: Herton Ronaldo Krzesinski <[email protected]>

commit cf55e904516947597d75fd3844acc24891a95772 upstream.

If headphone jack can't detect plug presence, and we have the jack in
the jack table, snd_hda_jack_detect will return the plug as always
present (as it'll be considered as a phantom jack). The problem is that
when this happens, line out pins will always be disabled, resulting in
no sound if there are no headphones connected.

This was reported as a no sound problem after suspend on
http://bugs.launchpad.net/bugs/1052499, since the bug doesn't manifests
on first initialization before the phantom jack is added, but on resume
we reexecute the initialization code, and via_hp_automute starts
reporting HP always present with the jack now on the table.

BugLink: https://bugs.launchpad.net/bugs/1052499
Signed-off-by: Herton Ronaldo Krzesinski <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>

---
 sound/pci/hda/patch_via.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

--- a/sound/pci/hda/patch_via.c
+++ b/sound/pci/hda/patch_via.c
@@ -1672,7 +1672,8 @@ static void via_hp_automute(struct hda_c
        struct via_spec *spec = codec->spec;
 
        if (!spec->hp_independent_mode && spec->autocfg.hp_pins[0] &&
-           (spec->codec_type != VT1708 || spec->vt1708_jack_detect))
+           (spec->codec_type != VT1708 || spec->vt1708_jack_detect) &&
+           is_jack_detectable(codec, spec->autocfg.hp_pins[0]))
                present = snd_hda_jack_detect(codec, spec->autocfg.hp_pins[0]);
 
        if (spec->smart51_enabled)


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

queue-3.6/ext4-fix-crash-when-accessing-proc-mounts-concurrently.patch
queue-3.6/drm-i915-prevent-possible-pin-leak-on-error-path.patch
queue-3.6/alsa-hda-realtek-fix-detection-of-alc271x-codec.patch
queue-3.6/alsa-hda-via-don-t-report-presence-on-hps-with-no-presence-support.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