• Home
  • Raw
  • Download

Lines Matching refs:itvsc

76 static void snd_ivtv_card_free(struct snd_ivtv_card *itvsc)  in snd_ivtv_card_free()  argument
78 if (itvsc == NULL) in snd_ivtv_card_free()
81 if (itvsc->v4l2_dev != NULL) in snd_ivtv_card_free()
82 to_ivtv(itvsc->v4l2_dev)->alsa = NULL; in snd_ivtv_card_free()
86 kfree(itvsc); in snd_ivtv_card_free()
100 struct snd_ivtv_card **itvsc) in snd_ivtv_card_create() argument
102 *itvsc = kzalloc(sizeof(struct snd_ivtv_card), GFP_KERNEL); in snd_ivtv_card_create()
103 if (*itvsc == NULL) in snd_ivtv_card_create()
106 (*itvsc)->v4l2_dev = v4l2_dev; in snd_ivtv_card_create()
107 (*itvsc)->sc = sc; in snd_ivtv_card_create()
109 sc->private_data = *itvsc; in snd_ivtv_card_create()
115 static int snd_ivtv_card_set_names(struct snd_ivtv_card *itvsc) in snd_ivtv_card_set_names() argument
117 struct ivtv *itv = to_ivtv(itvsc->v4l2_dev); in snd_ivtv_card_set_names()
118 struct snd_card *sc = itvsc->sc; in snd_ivtv_card_set_names()
139 struct snd_ivtv_card *itvsc; in snd_ivtv_init() local
158 ret = snd_ivtv_card_create(v4l2_dev, sc, &itvsc); in snd_ivtv_init()
166 snd_ivtv_card_set_names(itvsc); in snd_ivtv_init()
170 ret = snd_ivtv_mixer_create(itvsc); in snd_ivtv_init()
177 ret = snd_ivtv_pcm_create(itvsc); in snd_ivtv_init()
187 itv->alsa = itvsc; in snd_ivtv_init()
203 kfree(itvsc); in snd_ivtv_init()
255 static void __exit snd_ivtv_exit(struct snd_ivtv_card *itvsc) in snd_ivtv_exit() argument
257 struct ivtv *itv = to_ivtv(itvsc->v4l2_dev); in snd_ivtv_exit()
261 snd_card_free(itvsc->sc); in snd_ivtv_exit()
268 struct snd_ivtv_card *itvsc; in ivtv_alsa_exit_callback() local
276 itvsc = to_snd_ivtv_card(v4l2_dev); in ivtv_alsa_exit_callback()
277 if (itvsc == NULL) { in ivtv_alsa_exit_callback()
283 snd_ivtv_exit(itvsc); in ivtv_alsa_exit_callback()