ALSA: hda - do not detect jack on internal speakers for Realtek
authorDavid Henningsson <david.henningsson@canonical.com>
Wed, 10 Oct 2012 14:32:09 +0000 (16:32 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 10 Oct 2012 15:13:22 +0000 (17:13 +0200)
This caused the internal speaker to mute itself because it was
present, which happened after powersave.
It was found on Dell XPS 15 (L502x), ALC665.

Reported-by: Da Fox <da.fox.mail@gmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_realtek.c

index 7bec68c89c5db0715e4f7d4a5d58f70e3361b958..8253b4eeb6a1bea0687675e8ac66ca41b9a84758 100644 (file)
@@ -611,6 +611,8 @@ static void alc_line_automute(struct hda_codec *codec, struct hda_jack_tbl *jack
 {
        struct alc_spec *spec = codec->spec;
 
+       if (spec->autocfg.line_out_type == AUTO_PIN_SPEAKER_OUT)
+               return;
        /* check LO jack only when it's different from HP */
        if (spec->autocfg.line_out_pins[0] == spec->autocfg.hp_pins[0])
                return;