Lines Matching refs:cxsc
61 static void snd_cx18_card_free(struct snd_cx18_card *cxsc) in snd_cx18_card_free() argument
63 if (cxsc == NULL) in snd_cx18_card_free()
66 if (cxsc->v4l2_dev != NULL) in snd_cx18_card_free()
67 to_cx18(cxsc->v4l2_dev)->alsa = NULL; in snd_cx18_card_free()
71 kfree(cxsc); in snd_cx18_card_free()
85 struct snd_cx18_card **cxsc) in snd_cx18_card_create() argument
87 *cxsc = kzalloc(sizeof(struct snd_cx18_card), GFP_KERNEL); in snd_cx18_card_create()
88 if (*cxsc == NULL) in snd_cx18_card_create()
91 (*cxsc)->v4l2_dev = v4l2_dev; in snd_cx18_card_create()
92 (*cxsc)->sc = sc; in snd_cx18_card_create()
94 sc->private_data = *cxsc; in snd_cx18_card_create()
100 static int snd_cx18_card_set_names(struct snd_cx18_card *cxsc) in snd_cx18_card_set_names() argument
102 struct cx18 *cx = to_cx18(cxsc->v4l2_dev); in snd_cx18_card_set_names()
103 struct snd_card *sc = cxsc->sc; in snd_cx18_card_set_names()
124 struct snd_cx18_card *cxsc; in snd_cx18_init() local
144 ret = snd_cx18_card_create(v4l2_dev, sc, &cxsc); in snd_cx18_init()
152 snd_cx18_card_set_names(cxsc); in snd_cx18_init()
155 ret = snd_cx18_pcm_create(cxsc); in snd_cx18_init()
165 cx->alsa = cxsc; in snd_cx18_init()
181 kfree(cxsc); in snd_cx18_init()
233 static void __exit snd_cx18_exit(struct snd_cx18_card *cxsc) in snd_cx18_exit() argument
235 struct cx18 *cx = to_cx18(cxsc->v4l2_dev); in snd_cx18_exit()
239 snd_card_free(cxsc->sc); in snd_cx18_exit()
246 struct snd_cx18_card *cxsc; in cx18_alsa_exit_callback() local
254 cxsc = to_snd_cx18_card(v4l2_dev); in cx18_alsa_exit_callback()
255 if (cxsc == NULL) { in cx18_alsa_exit_callback()
261 snd_cx18_exit(cxsc); in cx18_alsa_exit_callback()