Lines Matching refs:cxsc

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