Lines Matching refs:cxsc

70 static void snd_cx18_card_free(struct snd_cx18_card *cxsc)  in snd_cx18_card_free()  argument
72 if (cxsc == NULL) in snd_cx18_card_free()
75 if (cxsc->v4l2_dev != NULL) in snd_cx18_card_free()
76 to_cx18(cxsc->v4l2_dev)->alsa = NULL; in snd_cx18_card_free()
80 kfree(cxsc); in snd_cx18_card_free()
94 struct snd_cx18_card **cxsc) in snd_cx18_card_create() argument
96 *cxsc = kzalloc(sizeof(struct snd_cx18_card), GFP_KERNEL); in snd_cx18_card_create()
97 if (*cxsc == NULL) in snd_cx18_card_create()
100 (*cxsc)->v4l2_dev = v4l2_dev; in snd_cx18_card_create()
101 (*cxsc)->sc = sc; in snd_cx18_card_create()
103 sc->private_data = *cxsc; in snd_cx18_card_create()
109 static int snd_cx18_card_set_names(struct snd_cx18_card *cxsc) in snd_cx18_card_set_names() argument
111 struct cx18 *cx = to_cx18(cxsc->v4l2_dev); in snd_cx18_card_set_names()
112 struct snd_card *sc = cxsc->sc; in snd_cx18_card_set_names()
133 struct snd_cx18_card *cxsc; in snd_cx18_init() local
153 ret = snd_cx18_card_create(v4l2_dev, sc, &cxsc); in snd_cx18_init()
161 snd_cx18_card_set_names(cxsc); in snd_cx18_init()
164 ret = snd_cx18_pcm_create(cxsc); in snd_cx18_init()
174 cx->alsa = cxsc; in snd_cx18_init()
190 kfree(cxsc); in snd_cx18_init()
242 static void __exit snd_cx18_exit(struct snd_cx18_card *cxsc) in snd_cx18_exit() argument
244 struct cx18 *cx = to_cx18(cxsc->v4l2_dev); in snd_cx18_exit()
248 snd_card_free(cxsc->sc); in snd_cx18_exit()
255 struct snd_cx18_card *cxsc; in cx18_alsa_exit_callback() local
263 cxsc = to_snd_cx18_card(v4l2_dev); in cx18_alsa_exit_callback()
264 if (cxsc == NULL) { in cx18_alsa_exit_callback()
270 snd_cx18_exit(cxsc); in cx18_alsa_exit_callback()