Commit 664389dbd59eba1af2904c4dcbb7af774e6a3324

Authored by David Henningsson
Committed by Takashi Iwai
1 parent 86b2723725

ALSA: hda - Fix powermap for external mics on IDT codecs

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>

Showing 1 changed file with 8 additions and 0 deletions Side-by-side Diff

sound/pci/hda/patch_sigmatel.c
... ... @@ -502,6 +502,13 @@
502 502 jack_update_power(codec, jack);
503 503 }
504 504  
  505 +static void stac_mic_autoswitch(struct hda_codec *codec,
  506 + struct hda_jack_tbl *jack)
  507 +{
  508 + snd_hda_gen_mic_autoswitch(codec, jack);
  509 + jack_update_power(codec, jack);
  510 +}
  511 +
505 512 static void stac_vref_event(struct hda_codec *codec, struct hda_jack_tbl *event)
506 513 {
507 514 unsigned int data;
... ... @@ -3509,6 +3516,7 @@
3509 3516 spec->gen.automute_hook = stac_update_outputs;
3510 3517 spec->gen.hp_automute_hook = stac_hp_automute;
3511 3518 spec->gen.line_automute_hook = stac_line_automute;
  3519 + spec->gen.mic_autoswitch_hook = stac_mic_autoswitch;
3512 3520  
3513 3521 err = snd_hda_gen_parse_auto_config(codec, &spec->gen.autocfg);
3514 3522 if (err < 0)