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

Commit 02aba550 authored by David Henningsson's avatar David Henningsson Committed by Takashi Iwai
Browse files

ALSA: hda - do not add non-existing Mic boost controls



If the input node does not have any volume capable input amp,
don't add such a control.

Signed-off-by: default avatarDavid Henningsson <david.henningsson@canonical.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent c0f3b216
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2826,6 +2826,9 @@ static int parse_mic_boost(struct hda_codec *codec)
			struct nid_path *path;
			unsigned int val;

			if (!nid_has_volume(codec, nid, HDA_INPUT))
				continue;

			label = hda_get_autocfg_input_label(codec, cfg, i);
			if (prev_label && !strcmp(label, prev_label))
				type_idx++;