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