Lines Matching refs:itvsc
58 static void snd_ivtv_card_free(struct snd_ivtv_card *itvsc) in snd_ivtv_card_free() argument
60 if (itvsc == NULL) in snd_ivtv_card_free()
63 if (itvsc->v4l2_dev != NULL) in snd_ivtv_card_free()
64 to_ivtv(itvsc->v4l2_dev)->alsa = NULL; in snd_ivtv_card_free()
68 kfree(itvsc); in snd_ivtv_card_free()
82 struct snd_ivtv_card **itvsc) in snd_ivtv_card_create() argument
84 *itvsc = kzalloc(sizeof(struct snd_ivtv_card), GFP_KERNEL); in snd_ivtv_card_create()
85 if (*itvsc == NULL) in snd_ivtv_card_create()
88 (*itvsc)->v4l2_dev = v4l2_dev; in snd_ivtv_card_create()
89 (*itvsc)->sc = sc; in snd_ivtv_card_create()
91 sc->private_data = *itvsc; in snd_ivtv_card_create()
97 static int snd_ivtv_card_set_names(struct snd_ivtv_card *itvsc) in snd_ivtv_card_set_names() argument
99 struct ivtv *itv = to_ivtv(itvsc->v4l2_dev); in snd_ivtv_card_set_names()
100 struct snd_card *sc = itvsc->sc; in snd_ivtv_card_set_names()
121 struct snd_ivtv_card *itvsc; in snd_ivtv_init() local
143 ret = snd_ivtv_card_create(v4l2_dev, sc, &itvsc); in snd_ivtv_init()
151 snd_ivtv_card_set_names(itvsc); in snd_ivtv_init()
154 ret = snd_ivtv_pcm_create(itvsc); in snd_ivtv_init()
164 itv->alsa = itvsc; in snd_ivtv_init()
183 kfree(itvsc); in snd_ivtv_init()
233 static void __exit snd_ivtv_exit(struct snd_ivtv_card *itvsc) in snd_ivtv_exit() argument
235 struct ivtv *itv = to_ivtv(itvsc->v4l2_dev); in snd_ivtv_exit()
239 snd_card_free(itvsc->sc); in snd_ivtv_exit()
246 struct snd_ivtv_card *itvsc; in ivtv_alsa_exit_callback() local
254 itvsc = to_snd_ivtv_card(v4l2_dev); in ivtv_alsa_exit_callback()
255 if (itvsc == NULL) { in ivtv_alsa_exit_callback()
261 snd_ivtv_exit(itvsc); in ivtv_alsa_exit_callback()