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()
52 struct snd_ivtv_card *p_to_snd_ivtv_card(struct v4l2_device **v4l2_dev) in p_to_snd_ivtv_card() argument
54 return container_of(v4l2_dev, struct snd_ivtv_card, v4l2_dev); in p_to_snd_ivtv_card()
62 if (itvsc->v4l2_dev != NULL) in snd_ivtv_card_free()
63 to_ivtv(itvsc->v4l2_dev)->alsa = NULL; in snd_ivtv_card_free()
79 static int snd_ivtv_card_create(struct v4l2_device *v4l2_dev, in snd_ivtv_card_create() argument
87 (*itvsc)->v4l2_dev = v4l2_dev; in snd_ivtv_card_create()
98 struct ivtv *itv = to_ivtv(itvsc->v4l2_dev); in snd_ivtv_card_set_names()
116 static int snd_ivtv_init(struct v4l2_device *v4l2_dev) in snd_ivtv_init() argument
118 struct ivtv *itv = to_ivtv(v4l2_dev); in snd_ivtv_init()
142 ret = snd_ivtv_card_create(v4l2_dev, sc, &itvsc); in snd_ivtv_init()
189 struct v4l2_device *v4l2_dev = &itv->v4l2_dev; in ivtv_alsa_load() local
192 if (v4l2_dev == NULL) { in ivtv_alsa_load()
198 itv = to_ivtv(v4l2_dev); in ivtv_alsa_load()
205 if (s->vdev.v4l2_dev == NULL) { in ivtv_alsa_load()
216 if (snd_ivtv_init(v4l2_dev)) { in ivtv_alsa_load()
234 struct ivtv *itv = to_ivtv(itvsc->v4l2_dev); in snd_ivtv_exit()
244 struct v4l2_device *v4l2_dev = dev_get_drvdata(dev); in ivtv_alsa_exit_callback() local
247 if (v4l2_dev == NULL) { in ivtv_alsa_exit_callback()
253 itvsc = to_snd_ivtv_card(v4l2_dev); in ivtv_alsa_exit_callback()