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

Commit b331439d authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: hda - Fix control element allocations in VIA codec parser



The commit 5b0cb1d8
    ALSA: hda - add more NID->Control mapping
breaks the control element allocation by returning a wrong value.
Let's fix it.

Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent ff818c24
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -476,7 +476,7 @@ static struct snd_kcontrol_new *via_clone_control(struct via_spec *spec,
	knew->name = kstrdup(tmpl->name, GFP_KERNEL);
	if (!knew->name)
		return NULL;
	return 0;
	return knew;
}

static void via_free_kctls(struct hda_codec *codec)