Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 52d3cb88 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

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: default avatarTakashi Iwai <tiwai@suse.de>
parent 1682c817
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) {