Skip to content

Commit

Permalink
ALSA: hda/cirrus - Add missing init/free of hda_gen_spec
Browse files Browse the repository at this point in the history
In the transition to the generic fixup code, the call of
snd_hda_gen_init() and snd_hda_gen_free() was missing.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Takashi Iwai committed Oct 10, 2012
1 parent c5e0b6d commit b2cbf3b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sound/pci/hda/patch_cirrus.c
Original file line number Diff line number Diff line change
Expand Up @@ -1243,6 +1243,7 @@ static void cs_free(struct hda_codec *codec)
struct cs_spec *spec = codec->spec;
kfree(spec->capture_bind[0]);
kfree(spec->capture_bind[1]);
snd_hda_gen_free(&spec->gen);
kfree(codec->spec);
}

Expand Down Expand Up @@ -1426,6 +1427,7 @@ static int patch_cs420x(struct hda_codec *codec)
if (!spec)
return -ENOMEM;
codec->spec = spec;
snd_hda_gen_init(&spec->gen);

spec->vendor_nid = CS420X_VENDOR_NID;

Expand Down Expand Up @@ -1964,6 +1966,7 @@ static int patch_cs4210(struct hda_codec *codec)
if (!spec)
return -ENOMEM;
codec->spec = spec;
snd_hda_gen_init(&spec->gen);

spec->vendor_nid = CS4210_VENDOR_NID;

Expand Down Expand Up @@ -2003,6 +2006,7 @@ static int patch_cs4213(struct hda_codec *codec)
if (!spec)
return -ENOMEM;
codec->spec = spec;
snd_hda_gen_init(&spec->gen);

spec->vendor_nid = CS4213_VENDOR_NID;

Expand Down

0 comments on commit b2cbf3b

Please sign in to comment.