Home
last modified time | relevance | path

Searched refs:cxsc (Results 1 – 4 of 4) sorted by relevance

/linux-6.12.1/drivers/media/pci/cx18/
Dcx18-alsa-pcm.c58 void cx18_alsa_announce_pcm_data(struct snd_cx18_card *cxsc, u8 *pcm_data, in cx18_alsa_announce_pcm_data() argument
68 dprintk("cx18 alsa announce ptr=%p data=%p num_bytes=%zu\n", cxsc, in cx18_alsa_announce_pcm_data()
71 substream = cxsc->capture_pcm_substream; in cx18_alsa_announce_pcm_data()
100 oldptr = cxsc->hwptr_done_capture; in cx18_alsa_announce_pcm_data()
114 cxsc->hwptr_done_capture += length; in cx18_alsa_announce_pcm_data()
115 if (cxsc->hwptr_done_capture >= in cx18_alsa_announce_pcm_data()
117 cxsc->hwptr_done_capture -= in cx18_alsa_announce_pcm_data()
120 cxsc->capture_transfer_done += length; in cx18_alsa_announce_pcm_data()
121 if (cxsc->capture_transfer_done >= in cx18_alsa_announce_pcm_data()
123 cxsc->capture_transfer_done -= in cx18_alsa_announce_pcm_data()
[all …]
Dcx18-alsa-main.c54 static void snd_cx18_card_free(struct snd_cx18_card *cxsc) in snd_cx18_card_free() argument
56 if (cxsc == NULL) in snd_cx18_card_free()
59 if (cxsc->v4l2_dev != NULL) in snd_cx18_card_free()
60 to_cx18(cxsc->v4l2_dev)->alsa = NULL; in snd_cx18_card_free()
64 kfree(cxsc); in snd_cx18_card_free()
78 struct snd_cx18_card **cxsc) in snd_cx18_card_create() argument
80 *cxsc = kzalloc(sizeof(struct snd_cx18_card), GFP_KERNEL); in snd_cx18_card_create()
81 if (*cxsc == NULL) in snd_cx18_card_create()
84 (*cxsc)->v4l2_dev = v4l2_dev; in snd_cx18_card_create()
85 (*cxsc)->sc = sc; in snd_cx18_card_create()
[all …]
Dcx18-alsa.h25 static inline void snd_cx18_lock(struct snd_cx18_card *cxsc) in snd_cx18_lock() argument
27 struct cx18 *cx = to_cx18(cxsc->v4l2_dev); in snd_cx18_lock()
31 static inline void snd_cx18_unlock(struct snd_cx18_card *cxsc) in snd_cx18_unlock() argument
33 struct cx18 *cx = to_cx18(cxsc->v4l2_dev); in snd_cx18_unlock()
Dcx18-alsa-pcm.h9 int snd_cx18_pcm_create(struct snd_cx18_card *cxsc);