Lines Matching refs:cxsc

60 static void snd_cx18_card_free(struct snd_cx18_card *cxsc)  in snd_cx18_card_free()  argument
62 if (cxsc == NULL) in snd_cx18_card_free()
65 if (cxsc->v4l2_dev != NULL) in snd_cx18_card_free()
66 to_cx18(cxsc->v4l2_dev)->alsa = NULL; in snd_cx18_card_free()
70 kfree(cxsc); in snd_cx18_card_free()
84 struct snd_cx18_card **cxsc) in snd_cx18_card_create() argument
86 *cxsc = kzalloc(sizeof(struct snd_cx18_card), GFP_KERNEL); in snd_cx18_card_create()
87 if (*cxsc == NULL) in snd_cx18_card_create()
90 (*cxsc)->v4l2_dev = v4l2_dev; in snd_cx18_card_create()
91 (*cxsc)->sc = sc; in snd_cx18_card_create()
93 sc->private_data = *cxsc; in snd_cx18_card_create()
99 static int snd_cx18_card_set_names(struct snd_cx18_card *cxsc) in snd_cx18_card_set_names() argument
101 struct cx18 *cx = to_cx18(cxsc->v4l2_dev); in snd_cx18_card_set_names()
102 struct snd_card *sc = cxsc->sc; in snd_cx18_card_set_names()
123 struct snd_cx18_card *cxsc; in snd_cx18_init() local
143 ret = snd_cx18_card_create(v4l2_dev, sc, &cxsc); in snd_cx18_init()
151 snd_cx18_card_set_names(cxsc); in snd_cx18_init()
154 ret = snd_cx18_pcm_create(cxsc); in snd_cx18_init()
164 cx->alsa = cxsc; in snd_cx18_init()
180 kfree(cxsc); in snd_cx18_init()
232 static void __exit snd_cx18_exit(struct snd_cx18_card *cxsc) in snd_cx18_exit() argument
234 struct cx18 *cx = to_cx18(cxsc->v4l2_dev); in snd_cx18_exit()
238 snd_card_free(cxsc->sc); in snd_cx18_exit()
245 struct snd_cx18_card *cxsc; in cx18_alsa_exit_callback() local
253 cxsc = to_snd_cx18_card(v4l2_dev); in cx18_alsa_exit_callback()
254 if (cxsc == NULL) { in cx18_alsa_exit_callback()
260 snd_cx18_exit(cxsc); in cx18_alsa_exit_callback()