ALSA: hda - Fix control element allocations in VIA codec parser
The commit 5b0cb1d850
ALSA: hda - add more NID->Control mapping
breaks the control element allocation by returning a wrong value.
Let's fix it.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
@@ -476,7 +476,7 @@ static struct snd_kcontrol_new *via_clone_control(struct via_spec *spec,
|
|||||||
knew->name = kstrdup(tmpl->name, GFP_KERNEL);
|
knew->name = kstrdup(tmpl->name, GFP_KERNEL);
|
||||||
if (!knew->name)
|
if (!knew->name)
|
||||||
return NULL;
|
return NULL;
|
||||||
return 0;
|
return knew;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void via_free_kctls(struct hda_codec *codec)
|
static void via_free_kctls(struct hda_codec *codec)
|
||||||
|
Reference in New Issue
Block a user