Commit b331439d authored by Takashi Iwai's avatar Takashi Iwai

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
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment