Lines Matching refs:v4l2_dev
50 struct snd_cx18_card *to_snd_cx18_card(struct v4l2_device *v4l2_dev)
52 return to_cx18(v4l2_dev)->alsa;
56 struct snd_cx18_card *p_to_snd_cx18_card(struct v4l2_device **v4l2_dev)
58 return container_of(v4l2_dev, struct snd_cx18_card, v4l2_dev);
66 if (cxsc->v4l2_dev != NULL)
67 to_cx18(cxsc->v4l2_dev)->alsa = NULL;
83 static int snd_cx18_card_create(struct v4l2_device *v4l2_dev,
91 (*cxsc)->v4l2_dev = v4l2_dev;
102 struct cx18 *cx = to_cx18(cxsc->v4l2_dev);
120 static int snd_cx18_init(struct v4l2_device *v4l2_dev)
122 struct cx18 *cx = to_cx18(v4l2_dev);
144 ret = snd_cx18_card_create(v4l2_dev, sc, &cxsc);
188 struct v4l2_device *v4l2_dev = &cx->v4l2_dev;
191 if (v4l2_dev == NULL) {
197 cx = to_cx18(v4l2_dev);
204 if (s->video_dev.v4l2_dev == NULL) {
216 if (snd_cx18_init(v4l2_dev)) {
235 struct cx18 *cx = to_cx18(cxsc->v4l2_dev);
245 struct v4l2_device *v4l2_dev = dev_get_drvdata(dev);
248 if (v4l2_dev == NULL) {
254 cxsc = to_snd_cx18_card(v4l2_dev);