aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/patch_cirrus.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2012-10-10 02:53:06 -0400
committerTakashi Iwai <tiwai@suse.de>2012-10-10 03:24:08 -0400
commitb2cbf3b30e6d1237f8864c4c9123f2a68cdfedf6 (patch)
tree8fe1d7bf1cd26e8bb103c7af753ed9139ea48f75 /sound/pci/hda/patch_cirrus.c
parentc5e0b6dbad9b4d18c561af90b384d02373f1c994 (diff)
ALSA: hda/cirrus - Add missing init/free of hda_gen_spec
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>
Diffstat (limited to 'sound/pci/hda/patch_cirrus.c')
-rw-r--r--sound/pci/hda/patch_cirrus.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_cirrus.c b/sound/pci/hda/patch_cirrus.c
index f441f53f0306..61a71131711c 100644
--- a/sound/pci/hda/patch_cirrus.c
+++ b/sound/pci/hda/patch_cirrus.c
@@ -1243,6 +1243,7 @@ static void cs_free(struct hda_codec *codec)
1243 struct cs_spec *spec = codec->spec; 1243 struct cs_spec *spec = codec->spec;
1244 kfree(spec->capture_bind[0]); 1244 kfree(spec->capture_bind[0]);
1245 kfree(spec->capture_bind[1]); 1245 kfree(spec->capture_bind[1]);
1246 snd_hda_gen_free(&spec->gen);
1246 kfree(codec->spec); 1247 kfree(codec->spec);
1247} 1248}
1248 1249
@@ -1426,6 +1427,7 @@ static int patch_cs420x(struct hda_codec *codec)
1426 if (!spec) 1427 if (!spec)
1427 return -ENOMEM; 1428 return -ENOMEM;
1428 codec->spec = spec; 1429 codec->spec = spec;
1430 snd_hda_gen_init(&spec->gen);
1429 1431
1430 spec->vendor_nid = CS420X_VENDOR_NID; 1432 spec->vendor_nid = CS420X_VENDOR_NID;
1431 1433
@@ -1964,6 +1966,7 @@ static int patch_cs4210(struct hda_codec *codec)
1964 if (!spec) 1966 if (!spec)
1965 return -ENOMEM; 1967 return -ENOMEM;
1966 codec->spec = spec; 1968 codec->spec = spec;
1969 snd_hda_gen_init(&spec->gen);
1967 1970
1968 spec->vendor_nid = CS4210_VENDOR_NID; 1971 spec->vendor_nid = CS4210_VENDOR_NID;
1969 1972
@@ -2003,6 +2006,7 @@ static int patch_cs4213(struct hda_codec *codec)
2003 if (!spec) 2006 if (!spec)
2004 return -ENOMEM; 2007 return -ENOMEM;
2005 codec->spec = spec; 2008 codec->spec = spec;
2009 snd_hda_gen_init(&spec->gen);
2006 2010
2007 spec->vendor_nid = CS4213_VENDOR_NID; 2011 spec->vendor_nid = CS4213_VENDOR_NID;
2008 2012