diff options
author | Takashi Iwai <tiwai@suse.de> | 2011-05-17 04:04:08 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-05-17 04:04:08 -0400 |
commit | 52d3cb88d75701f800db16561ff12c7692b56e55 (patch) | |
tree | 87304b73bc402292692a4839136bd20c5700cb82 | |
parent | 1682c8174692180fcb19317704a0d32c8731eb33 (diff) |
ALSA: hda - Fix initialization of spec->automute_lines in patch_realtek.c
spec->automute_lines shouldn't be set unless the line-detection is
available.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | sound/pci/hda/patch_realtek.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 473ddc72b5cd..1f00cdbf2341 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c | |||
@@ -1584,7 +1584,7 @@ static void alc_init_auto_hp(struct hda_codec *codec) | |||
1584 | AC_USRSP_EN | ALC880_FRONT_EVENT); | 1584 | AC_USRSP_EN | ALC880_FRONT_EVENT); |
1585 | spec->detect_line = 1; | 1585 | spec->detect_line = 1; |
1586 | } | 1586 | } |
1587 | spec->automute_lines = 1; | 1587 | spec->automute_lines = spec->detect_line; |
1588 | } | 1588 | } |
1589 | 1589 | ||
1590 | if (spec->automute) { | 1590 | if (spec->automute) { |