Lines Matching defs:codec
2 * ad73311.c -- ALSA Soc AD73311 codec support
46 struct snd_soc_codec *codec;
49 codec = kzalloc(sizeof(struct snd_soc_codec), GFP_KERNEL);
50 if (codec == NULL)
52 mutex_init(&codec->mutex);
53 codec->name = "AD73311";
54 codec->owner = THIS_MODULE;
55 codec->dai = &ad73311_dai;
56 codec->num_dai = 1;
57 socdev->card->codec = codec;
58 INIT_LIST_HEAD(&codec->dapm_widgets);
59 INIT_LIST_HEAD(&codec->dapm_paths);
71 kfree(socdev->card->codec);
72 socdev->card->codec = NULL;
79 struct snd_soc_codec *codec = socdev->card->codec;
81 if (codec == NULL)
84 kfree(codec);