Lines Matching refs:cxsc
54 static void snd_cx18_card_free(struct snd_cx18_card *cxsc)
56 if (cxsc == NULL)
59 if (cxsc->v4l2_dev != NULL)
60 to_cx18(cxsc->v4l2_dev)->alsa = NULL;
64 kfree(cxsc);
78 struct snd_cx18_card **cxsc)
80 *cxsc = kzalloc(sizeof(struct snd_cx18_card), GFP_KERNEL);
81 if (*cxsc == NULL)
84 (*cxsc)->v4l2_dev = v4l2_dev;
85 (*cxsc)->sc = sc;
87 sc->private_data = *cxsc;
93 static int snd_cx18_card_set_names(struct snd_cx18_card *cxsc)
95 struct cx18 *cx = to_cx18(cxsc->v4l2_dev);
96 struct snd_card *sc = cxsc->sc;
117 struct snd_cx18_card *cxsc;
137 ret = snd_cx18_card_create(v4l2_dev, sc, &cxsc);
145 snd_cx18_card_set_names(cxsc);
148 ret = snd_cx18_pcm_create(cxsc);
158 cx->alsa = cxsc;
174 kfree(cxsc);
226 static void __exit snd_cx18_exit(struct snd_cx18_card *cxsc)
228 struct cx18 *cx = to_cx18(cxsc->v4l2_dev);
230 /* FIXME - pointer checks & shutdown cxsc */
232 snd_card_free(cxsc->sc);
239 struct snd_cx18_card *cxsc;
247 cxsc = to_snd_cx18_card(v4l2_dev);
248 if (cxsc == NULL) {
254 snd_cx18_exit(cxsc);