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