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