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

Commit 63f10d2c authored by Lydia Wang's avatar Lydia Wang Committed by Takashi Iwai
Browse files

ALSA: hda - Fix unsol event initializations for VIA codecs



Fix a issue to enable unsolicited response to line-out pins.

Signed-off-by: default avatarLydia Wang <lydiawang@viatech.com.cn>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent ff2b7e2a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2427,7 +2427,7 @@ static void via_auto_init_unsol_event(struct hda_codec *codec)
	for (i = 0; i < cfg->line_outs; i++) {
		if (cfg->line_out_pins[i] &&
		    is_jack_detectable(codec, cfg->line_out_pins[i]))
			snd_hda_codec_write(codec, cfg->line_out_pins[0], 0,
			snd_hda_codec_write(codec, cfg->line_out_pins[i], 0,
				AC_VERB_SET_UNSOLICITED_ENABLE,
				AC_USRSP_EN | ev | VIA_JACK_EVENT);
	}