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