Lines Matching refs:v4l2_dev
47 struct snd_ivtv_card *to_snd_ivtv_card(struct v4l2_device *v4l2_dev)
49 return to_ivtv(v4l2_dev)->alsa;
53 struct snd_ivtv_card *p_to_snd_ivtv_card(struct v4l2_device **v4l2_dev)
55 return container_of(v4l2_dev, struct snd_ivtv_card, v4l2_dev);
63 if (itvsc->v4l2_dev != NULL)
64 to_ivtv(itvsc->v4l2_dev)->alsa = NULL;
80 static int snd_ivtv_card_create(struct v4l2_device *v4l2_dev,
88 (*itvsc)->v4l2_dev = v4l2_dev;
99 struct ivtv *itv = to_ivtv(itvsc->v4l2_dev);
117 static int snd_ivtv_init(struct v4l2_device *v4l2_dev)
119 struct ivtv *itv = to_ivtv(v4l2_dev);
143 ret = snd_ivtv_card_create(v4l2_dev, sc, &itvsc);
190 struct v4l2_device *v4l2_dev = &itv->v4l2_dev;
193 if (v4l2_dev == NULL) {
199 itv = to_ivtv(v4l2_dev);
206 if (s->vdev.v4l2_dev == NULL) {
217 if (snd_ivtv_init(v4l2_dev)) {
235 struct ivtv *itv = to_ivtv(itvsc->v4l2_dev);
245 struct v4l2_device *v4l2_dev = dev_get_drvdata(dev);
248 if (v4l2_dev == NULL) {
254 itvsc = to_snd_ivtv_card(v4l2_dev);