ALSA: hda - Fix powermap for external mics on IDT codecs
authorDavid Henningsson <david.henningsson@canonical.com>
Mon, 28 Jan 2013 10:29:17 +0000 (11:29 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 28 Jan 2013 10:33:01 +0000 (11:33 +0100)
This patch fixes a regression of the external mic not working on
HP Probook 4520s.

Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_sigmatel.c

index 1c49861b994f74915adadd92f4a7a54209d6c0d5..951fc0ddf75a2ee48c5a548eb4510185c2fc1fd2 100644 (file)
@@ -502,6 +502,13 @@ static void stac_line_automute(struct hda_codec *codec,
        jack_update_power(codec, jack);
 }
 
+static void stac_mic_autoswitch(struct hda_codec *codec,
+                               struct hda_jack_tbl *jack)
+{
+       snd_hda_gen_mic_autoswitch(codec, jack);
+       jack_update_power(codec, jack);
+}
+
 static void stac_vref_event(struct hda_codec *codec, struct hda_jack_tbl *event)
 {
        unsigned int data;
@@ -3509,6 +3516,7 @@ static int stac_parse_auto_config(struct hda_codec *codec)
        spec->gen.automute_hook = stac_update_outputs;
        spec->gen.hp_automute_hook = stac_hp_automute;
        spec->gen.line_automute_hook = stac_line_automute;
+       spec->gen.mic_autoswitch_hook = stac_mic_autoswitch;
 
        err = snd_hda_gen_parse_auto_config(codec, &spec->gen.autocfg);
        if (err < 0)
This page took 0.027049 seconds and 5 git commands to generate.