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

Commit 27439ce7 authored by Lydia Wang's avatar Lydia Wang Committed by Takashi Iwai
Browse files

ALSA: hda - VIA: Add VT1802 check in via_speaker_automute function



Add VT1802 check in via_speaker_automute() function.

Signed-off-by: default avatarLydia Wang <lydiawang@viatech.com.cn>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent e87885fe
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1685,7 +1685,7 @@ static void via_speaker_automute(struct hda_codec *codec)
	unsigned int hp_present;
	struct via_spec *spec = codec->spec;

	if (spec->codec_type != VT2002P && spec->codec_type != VT1812)
	if (!VT2002P_COMPATIBLE(spec))
		return;

	hp_present = snd_hda_jack_detect(codec, spec->autocfg.hp_pins[0]);