Lines Matching refs:v4l2_dev
46 struct snd_ivtv_card *to_snd_ivtv_card(struct v4l2_device *v4l2_dev) in to_snd_ivtv_card() argument
48 return to_ivtv(v4l2_dev)->alsa; in to_snd_ivtv_card()
56 if (itvsc->v4l2_dev != NULL) in snd_ivtv_card_free()
57 to_ivtv(itvsc->v4l2_dev)->alsa = NULL; in snd_ivtv_card_free()
73 static int snd_ivtv_card_create(struct v4l2_device *v4l2_dev, in snd_ivtv_card_create() argument
81 (*itvsc)->v4l2_dev = v4l2_dev; in snd_ivtv_card_create()
92 struct ivtv *itv = to_ivtv(itvsc->v4l2_dev); in snd_ivtv_card_set_names()
110 static int snd_ivtv_init(struct v4l2_device *v4l2_dev) in snd_ivtv_init() argument
112 struct ivtv *itv = to_ivtv(v4l2_dev); in snd_ivtv_init()
136 ret = snd_ivtv_card_create(v4l2_dev, sc, &itvsc); in snd_ivtv_init()
183 struct v4l2_device *v4l2_dev = &itv->v4l2_dev; in ivtv_alsa_load() local
186 if (v4l2_dev == NULL) { in ivtv_alsa_load()
192 itv = to_ivtv(v4l2_dev); in ivtv_alsa_load()
199 if (s->vdev.v4l2_dev == NULL) { in ivtv_alsa_load()
210 if (snd_ivtv_init(v4l2_dev)) { in ivtv_alsa_load()
228 struct ivtv *itv = to_ivtv(itvsc->v4l2_dev); in snd_ivtv_exit()
238 struct v4l2_device *v4l2_dev = dev_get_drvdata(dev); in ivtv_alsa_exit_callback() local
241 if (v4l2_dev == NULL) { in ivtv_alsa_exit_callback()
247 itvsc = to_snd_ivtv_card(v4l2_dev); in ivtv_alsa_exit_callback()