Lines Matching refs:itvsc
81 static void snd_ivtv_card_free(struct snd_ivtv_card *itvsc) in snd_ivtv_card_free() argument
83 if (itvsc == NULL) in snd_ivtv_card_free()
86 if (itvsc->v4l2_dev != NULL) in snd_ivtv_card_free()
87 to_ivtv(itvsc->v4l2_dev)->alsa = NULL; in snd_ivtv_card_free()
91 kfree(itvsc); in snd_ivtv_card_free()
105 struct snd_ivtv_card **itvsc) in snd_ivtv_card_create() argument
107 *itvsc = kzalloc(sizeof(struct snd_ivtv_card), GFP_KERNEL); in snd_ivtv_card_create()
108 if (*itvsc == NULL) in snd_ivtv_card_create()
111 (*itvsc)->v4l2_dev = v4l2_dev; in snd_ivtv_card_create()
112 (*itvsc)->sc = sc; in snd_ivtv_card_create()
114 sc->private_data = *itvsc; in snd_ivtv_card_create()
120 static int snd_ivtv_card_set_names(struct snd_ivtv_card *itvsc) in snd_ivtv_card_set_names() argument
122 struct ivtv *itv = to_ivtv(itvsc->v4l2_dev); in snd_ivtv_card_set_names()
123 struct snd_card *sc = itvsc->sc; in snd_ivtv_card_set_names()
144 struct snd_ivtv_card *itvsc; in snd_ivtv_init() local
166 ret = snd_ivtv_card_create(v4l2_dev, sc, &itvsc); in snd_ivtv_init()
174 snd_ivtv_card_set_names(itvsc); in snd_ivtv_init()
178 ret = snd_ivtv_mixer_create(itvsc); in snd_ivtv_init()
185 ret = snd_ivtv_pcm_create(itvsc); in snd_ivtv_init()
195 itv->alsa = itvsc; in snd_ivtv_init()
214 kfree(itvsc); in snd_ivtv_init()
266 static void __exit snd_ivtv_exit(struct snd_ivtv_card *itvsc) in snd_ivtv_exit() argument
268 struct ivtv *itv = to_ivtv(itvsc->v4l2_dev); in snd_ivtv_exit()
272 snd_card_free(itvsc->sc); in snd_ivtv_exit()
279 struct snd_ivtv_card *itvsc; in ivtv_alsa_exit_callback() local
287 itvsc = to_snd_ivtv_card(v4l2_dev); in ivtv_alsa_exit_callback()
288 if (itvsc == NULL) { in ivtv_alsa_exit_callback()
294 snd_ivtv_exit(itvsc); in ivtv_alsa_exit_callback()