Lines Matching refs:itvsc

51 static void snd_ivtv_card_free(struct snd_ivtv_card *itvsc)  in snd_ivtv_card_free()  argument
53 if (itvsc == NULL) in snd_ivtv_card_free()
56 if (itvsc->v4l2_dev != NULL) in snd_ivtv_card_free()
57 to_ivtv(itvsc->v4l2_dev)->alsa = NULL; in snd_ivtv_card_free()
61 kfree(itvsc); in snd_ivtv_card_free()
75 struct snd_ivtv_card **itvsc) in snd_ivtv_card_create() argument
77 *itvsc = kzalloc(sizeof(struct snd_ivtv_card), GFP_KERNEL); in snd_ivtv_card_create()
78 if (*itvsc == NULL) in snd_ivtv_card_create()
81 (*itvsc)->v4l2_dev = v4l2_dev; in snd_ivtv_card_create()
82 (*itvsc)->sc = sc; in snd_ivtv_card_create()
84 sc->private_data = *itvsc; in snd_ivtv_card_create()
90 static int snd_ivtv_card_set_names(struct snd_ivtv_card *itvsc) in snd_ivtv_card_set_names() argument
92 struct ivtv *itv = to_ivtv(itvsc->v4l2_dev); in snd_ivtv_card_set_names()
93 struct snd_card *sc = itvsc->sc; in snd_ivtv_card_set_names()
114 struct snd_ivtv_card *itvsc; in snd_ivtv_init() local
136 ret = snd_ivtv_card_create(v4l2_dev, sc, &itvsc); in snd_ivtv_init()
144 snd_ivtv_card_set_names(itvsc); in snd_ivtv_init()
147 ret = snd_ivtv_pcm_create(itvsc); in snd_ivtv_init()
157 itv->alsa = itvsc; in snd_ivtv_init()
176 kfree(itvsc); in snd_ivtv_init()
226 static void __exit snd_ivtv_exit(struct snd_ivtv_card *itvsc) in snd_ivtv_exit() argument
228 struct ivtv *itv = to_ivtv(itvsc->v4l2_dev); in snd_ivtv_exit()
232 snd_card_free(itvsc->sc); in snd_ivtv_exit()
239 struct snd_ivtv_card *itvsc; in ivtv_alsa_exit_callback() local
247 itvsc = to_snd_ivtv_card(v4l2_dev); in ivtv_alsa_exit_callback()
248 if (itvsc == NULL) { in ivtv_alsa_exit_callback()
254 snd_ivtv_exit(itvsc); in ivtv_alsa_exit_callback()