Lines Matching refs:cxsc
76 static void snd_cx18_card_free(struct snd_cx18_card *cxsc) in snd_cx18_card_free() argument
78 if (cxsc == NULL) in snd_cx18_card_free()
81 if (cxsc->v4l2_dev != NULL) in snd_cx18_card_free()
82 to_cx18(cxsc->v4l2_dev)->alsa = NULL; in snd_cx18_card_free()
86 kfree(cxsc); in snd_cx18_card_free()
100 struct snd_cx18_card **cxsc) in snd_cx18_card_create() argument
102 *cxsc = kzalloc(sizeof(struct snd_cx18_card), GFP_KERNEL); in snd_cx18_card_create()
103 if (*cxsc == NULL) in snd_cx18_card_create()
106 (*cxsc)->v4l2_dev = v4l2_dev; in snd_cx18_card_create()
107 (*cxsc)->sc = sc; in snd_cx18_card_create()
109 sc->private_data = *cxsc; in snd_cx18_card_create()
115 static int snd_cx18_card_set_names(struct snd_cx18_card *cxsc) in snd_cx18_card_set_names() argument
117 struct cx18 *cx = to_cx18(cxsc->v4l2_dev); in snd_cx18_card_set_names()
118 struct snd_card *sc = cxsc->sc; in snd_cx18_card_set_names()
139 struct snd_cx18_card *cxsc; in snd_cx18_init() local
159 ret = snd_cx18_card_create(v4l2_dev, sc, &cxsc); in snd_cx18_init()
167 snd_cx18_card_set_names(cxsc); in snd_cx18_init()
170 ret = snd_cx18_pcm_create(cxsc); in snd_cx18_init()
180 cx->alsa = cxsc; in snd_cx18_init()
196 kfree(cxsc); in snd_cx18_init()
248 static void __exit snd_cx18_exit(struct snd_cx18_card *cxsc) in snd_cx18_exit() argument
250 struct cx18 *cx = to_cx18(cxsc->v4l2_dev); in snd_cx18_exit()
254 snd_card_free(cxsc->sc); in snd_cx18_exit()
261 struct snd_cx18_card *cxsc; in cx18_alsa_exit_callback() local
269 cxsc = to_snd_cx18_card(v4l2_dev); in cx18_alsa_exit_callback()
270 if (cxsc == NULL) { in cx18_alsa_exit_callback()
276 snd_cx18_exit(cxsc); in cx18_alsa_exit_callback()