Lines Matching refs:cxsc
76 static void snd_cx18_card_free(struct snd_cx18_card *cxsc)
78 if (cxsc == NULL)
81 if (cxsc->v4l2_dev != NULL)
82 to_cx18(cxsc->v4l2_dev)->alsa = NULL;
85 kfree(cxsc);
99 struct snd_cx18_card **cxsc)
101 *cxsc = kzalloc(sizeof(struct snd_cx18_card), GFP_KERNEL);
102 if (*cxsc == NULL)
105 (*cxsc)->v4l2_dev = v4l2_dev;
106 (*cxsc)->sc = sc;
108 sc->private_data = *cxsc;
114 static int snd_cx18_card_set_names(struct snd_cx18_card *cxsc)
116 struct cx18 *cx = to_cx18(cxsc->v4l2_dev);
117 struct snd_card *sc = cxsc->sc;
138 struct snd_cx18_card *cxsc;
157 ret = snd_cx18_card_create(v4l2_dev, sc, &cxsc);
165 snd_cx18_card_set_names(cxsc);
168 ret = snd_cx18_pcm_create(cxsc);
177 cx->alsa = cxsc;
244 static void __exit snd_cx18_exit(struct snd_cx18_card *cxsc)
246 struct cx18 *cx = to_cx18(cxsc->v4l2_dev);
249 snd_card_free(cxsc->sc);
256 struct snd_cx18_card *cxsc;
264 cxsc = to_snd_cx18_card(v4l2_dev);
265 if (cxsc == NULL) {
271 snd_cx18_exit(cxsc);