Skip to content

Commit

Permalink
ALSA: hda - Fix control element allocations in VIA codec parser
Browse files Browse the repository at this point in the history
The commit 5b0cb1d
    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>
  • Loading branch information
Takashi Iwai committed Apr 14, 2010
1 parent ff818c2 commit b331439
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/pci/hda/patch_via.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b331439

Please sign in to comment.