Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 257766
b: refs/heads/master
c: 21ce0b6
h: refs/heads/master
v: v3
  • Loading branch information
Takashi Iwai committed Jul 11, 2011
1 parent 177ed4d commit 07c5bea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 017f2a104c7fed53a9b2534f0795f1f5af87674f
refs/heads/master: 21ce0b65272b85f122455818b0c69740945b451a
5 changes: 1 addition & 4 deletions trunk/sound/pci/hda/patch_via.c
Original file line number Diff line number Diff line change
Expand Up @@ -1606,12 +1606,10 @@ static void via_unsol_event(struct hda_codec *codec,

res &= ~VIA_JACK_EVENT;

if (res == VIA_HP_EVENT)
if (res == VIA_HP_EVENT || res == VIA_LINE_EVENT)
via_hp_automute(codec);
else if (res == VIA_GPIO_EVENT)
via_gpio_control(codec);
else if (res == VIA_LINE_EVENT)
via_line_automute(codec, false);
}

#ifdef SND_HDA_NEEDS_RESUME
Expand Down Expand Up @@ -2535,7 +2533,6 @@ static int via_init(struct hda_codec *codec)
via_auto_init_unsol_event(codec);

via_hp_automute(codec);
via_line_automute(codec, false);

return 0;
}
Expand Down

0 comments on commit 07c5bea

Please sign in to comment.