Lines Matching refs:v4l2_dev
49 struct snd_cx18_card *to_snd_cx18_card(struct v4l2_device *v4l2_dev)
51 return to_cx18(v4l2_dev)->alsa;
59 if (cxsc->v4l2_dev != NULL)
60 to_cx18(cxsc->v4l2_dev)->alsa = NULL;
76 static int snd_cx18_card_create(struct v4l2_device *v4l2_dev,
84 (*cxsc)->v4l2_dev = v4l2_dev;
95 struct cx18 *cx = to_cx18(cxsc->v4l2_dev);
113 static int snd_cx18_init(struct v4l2_device *v4l2_dev)
115 struct cx18 *cx = to_cx18(v4l2_dev);
137 ret = snd_cx18_card_create(v4l2_dev, sc, &cxsc);
181 struct v4l2_device *v4l2_dev = &cx->v4l2_dev;
184 if (v4l2_dev == NULL) {
190 cx = to_cx18(v4l2_dev);
197 if (s->video_dev.v4l2_dev == NULL) {
209 if (snd_cx18_init(v4l2_dev)) {
228 struct cx18 *cx = to_cx18(cxsc->v4l2_dev);
238 struct v4l2_device *v4l2_dev = dev_get_drvdata(dev);
241 if (v4l2_dev == NULL) {
247 cxsc = to_snd_cx18_card(v4l2_dev);