提交 b331439d 编写于 作者: T 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: NTakashi Iwai <tiwai@suse.de>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册