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

Commit 1687ccc8 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: hda/realtek - Use alc_write_coef_idx() in alc269_quanta_automake()



Just a refactoring.

Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent f2a227cd
Loading
Loading
Loading
Loading
+2 −9
Original line number Diff line number Diff line
@@ -3355,15 +3355,8 @@ static void alc269_quanta_automute(struct hda_codec *codec)
{
	snd_hda_gen_update_outputs(codec);

	snd_hda_codec_write(codec, 0x20, 0,
			AC_VERB_SET_COEF_INDEX, 0x0c);
	snd_hda_codec_write(codec, 0x20, 0,
			AC_VERB_SET_PROC_COEF, 0x680);

	snd_hda_codec_write(codec, 0x20, 0,
			AC_VERB_SET_COEF_INDEX, 0x0c);
	snd_hda_codec_write(codec, 0x20, 0,
			AC_VERB_SET_PROC_COEF, 0x480);
	alc_write_coef_idx(codec, 0x0c, 0x680);
	alc_write_coef_idx(codec, 0x0c, 0x480);
}

static void alc269_fixup_quanta_mute(struct hda_codec *codec,