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>
This commit is contained in:
Takashi Iwai 2011-05-17 10:04:08 +02:00
Родитель 1682c81746
Коммит 52d3cb88d7
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -1584,7 +1584,7 @@ static void alc_init_auto_hp(struct hda_codec *codec)
AC_USRSP_EN | ALC880_FRONT_EVENT); AC_USRSP_EN | ALC880_FRONT_EVENT);
spec->detect_line = 1; spec->detect_line = 1;
} }
spec->automute_lines = 1; spec->automute_lines = spec->detect_line;
} }
if (spec->automute) { if (spec->automute) {