Lines Matching refs:cxsc

58 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()
136 struct snd_cx18_card *cxsc = snd_pcm_substream_chip(substream); in snd_cx18_pcm_capture_open() local
138 struct v4l2_device *v4l2_dev = cxsc->v4l2_dev; in snd_cx18_pcm_capture_open()
145 snd_cx18_lock(cxsc); in snd_cx18_pcm_capture_open()
155 snd_cx18_unlock(cxsc); in snd_cx18_pcm_capture_open()
162 snd_cx18_unlock(cxsc); in snd_cx18_pcm_capture_open()
169 cxsc->capture_pcm_substream = substream; in snd_cx18_pcm_capture_open()
177 snd_cx18_unlock(cxsc); in snd_cx18_pcm_capture_open()
184 struct snd_cx18_card *cxsc = snd_pcm_substream_chip(substream); in snd_cx18_pcm_capture_close() local
185 struct v4l2_device *v4l2_dev = cxsc->v4l2_dev; in snd_cx18_pcm_capture_close()
190 snd_cx18_lock(cxsc); in snd_cx18_pcm_capture_close()
198 snd_cx18_unlock(cxsc); in snd_cx18_pcm_capture_close()
205 struct snd_cx18_card *cxsc = snd_pcm_substream_chip(substream); in snd_cx18_pcm_prepare() local
207 cxsc->hwptr_done_capture = 0; in snd_cx18_pcm_prepare()
208 cxsc->capture_transfer_done = 0; in snd_cx18_pcm_prepare()
223 struct snd_cx18_card *cxsc = snd_pcm_substream_chip(substream); in snd_cx18_pcm_pointer() local
225 spin_lock_irqsave(&cxsc->slock, flags); in snd_cx18_pcm_pointer()
226 hwptr_done = cxsc->hwptr_done_capture; in snd_cx18_pcm_pointer()
227 spin_unlock_irqrestore(&cxsc->slock, flags); in snd_cx18_pcm_pointer()
240 int snd_cx18_pcm_create(struct snd_cx18_card *cxsc) in snd_cx18_pcm_create() argument
243 struct snd_card *sc = cxsc->sc; in snd_cx18_pcm_create()
244 struct v4l2_device *v4l2_dev = cxsc->v4l2_dev; in snd_cx18_pcm_create()
259 spin_lock_init(&cxsc->slock); in snd_cx18_pcm_create()
265 sp->private_data = cxsc; in snd_cx18_pcm_create()