Lines Matching refs:itvsc

57 static void snd_ivtv_card_free(struct snd_ivtv_card *itvsc)  in snd_ivtv_card_free()  argument
59 if (itvsc == NULL) in snd_ivtv_card_free()
62 if (itvsc->v4l2_dev != NULL) in snd_ivtv_card_free()
63 to_ivtv(itvsc->v4l2_dev)->alsa = NULL; in snd_ivtv_card_free()
67 kfree(itvsc); in snd_ivtv_card_free()
81 struct snd_ivtv_card **itvsc) in snd_ivtv_card_create() argument
83 *itvsc = kzalloc(sizeof(struct snd_ivtv_card), GFP_KERNEL); in snd_ivtv_card_create()
84 if (*itvsc == NULL) in snd_ivtv_card_create()
87 (*itvsc)->v4l2_dev = v4l2_dev; in snd_ivtv_card_create()
88 (*itvsc)->sc = sc; in snd_ivtv_card_create()
90 sc->private_data = *itvsc; in snd_ivtv_card_create()
96 static int snd_ivtv_card_set_names(struct snd_ivtv_card *itvsc) in snd_ivtv_card_set_names() argument
98 struct ivtv *itv = to_ivtv(itvsc->v4l2_dev); in snd_ivtv_card_set_names()
99 struct snd_card *sc = itvsc->sc; in snd_ivtv_card_set_names()
120 struct snd_ivtv_card *itvsc; in snd_ivtv_init() local
142 ret = snd_ivtv_card_create(v4l2_dev, sc, &itvsc); in snd_ivtv_init()
150 snd_ivtv_card_set_names(itvsc); in snd_ivtv_init()
153 ret = snd_ivtv_pcm_create(itvsc); in snd_ivtv_init()
163 itv->alsa = itvsc; in snd_ivtv_init()
182 kfree(itvsc); in snd_ivtv_init()
232 static void __exit snd_ivtv_exit(struct snd_ivtv_card *itvsc) in snd_ivtv_exit() argument
234 struct ivtv *itv = to_ivtv(itvsc->v4l2_dev); in snd_ivtv_exit()
238 snd_card_free(itvsc->sc); in snd_ivtv_exit()
245 struct snd_ivtv_card *itvsc; in ivtv_alsa_exit_callback() local
253 itvsc = to_snd_ivtv_card(v4l2_dev); in ivtv_alsa_exit_callback()
254 if (itvsc == NULL) { in ivtv_alsa_exit_callback()
260 snd_ivtv_exit(itvsc); in ivtv_alsa_exit_callback()