Skip to content

Commit

Permalink
ALSA: hda - Fix initialization of spec->automute_lines in patch_realt…
Browse files Browse the repository at this point in the history
…ek.c

spec->automute_lines shouldn't be set unless the line-detection is
available.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Takashi Iwai committed May 17, 2011
1 parent 1682c81 commit 52d3cb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/pci/hda/patch_realtek.c
Original file line number Diff line number Diff line change
Expand Up @@ -1584,7 +1584,7 @@ static void alc_init_auto_hp(struct hda_codec *codec)
AC_USRSP_EN | ALC880_FRONT_EVENT);
spec->detect_line = 1;
}
spec->automute_lines = 1;
spec->automute_lines = spec->detect_line;
}

if (spec->automute) {
Expand Down

0 comments on commit 52d3cb8

Please sign in to comment.