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

Commit 24fef902 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: hda/generic - Don't override power_filter when power_save_node is set



Currently the generic parser sets codec->power_filter when
power_save_node flag is set.  But this overrides the existing filter
that has been already set by the codec driver, thus it looses some
features.  Instead, set the default power_filter only when it's not
set yet.

Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent b6c09b3c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -4918,6 +4918,7 @@ int snd_hda_gen_parse_auto_config(struct hda_codec *codec,
	parse_digital(codec);

	if (spec->power_down_unused || codec->power_save_node)
		if (!codec->power_filter)
			codec->power_filter = snd_hda_gen_path_power_filter;

	if (!spec->no_analog && spec->beep_nid) {