Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 353222
b: refs/heads/master
c: 664389d
h: refs/heads/master
v: v3
  • Loading branch information
David Henningsson authored and Takashi Iwai committed Jan 28, 2013
1 parent 4de7118 commit 75b689f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 86b2723725a2e186f5699d97cb20014fa893931f
refs/heads/master: 664389dbd59eba1af2904c4dcbb7af774e6a3324
8 changes: 8 additions & 0 deletions trunk/sound/pci/hda/patch_sigmatel.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 75b689f

Please sign in to comment.