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