Lines Matching refs:cxsc
58 void cx18_alsa_announce_pcm_data(struct snd_cx18_card *cxsc, u8 *pcm_data,
68 dprintk("cx18 alsa announce ptr=%p data=%p num_bytes=%zu\n", cxsc,
71 substream = cxsc->capture_pcm_substream;
100 oldptr = cxsc->hwptr_done_capture;
114 cxsc->hwptr_done_capture += length;
115 if (cxsc->hwptr_done_capture >=
117 cxsc->hwptr_done_capture -=
120 cxsc->capture_transfer_done += length;
121 if (cxsc->capture_transfer_done >=
123 cxsc->capture_transfer_done -=
136 struct snd_cx18_card *cxsc = snd_pcm_substream_chip(substream);
138 struct v4l2_device *v4l2_dev = cxsc->v4l2_dev;
145 snd_cx18_lock(cxsc);
155 snd_cx18_unlock(cxsc);
162 snd_cx18_unlock(cxsc);
169 cxsc->capture_pcm_substream = substream;
177 snd_cx18_unlock(cxsc);
184 struct snd_cx18_card *cxsc = snd_pcm_substream_chip(substream);
185 struct v4l2_device *v4l2_dev = cxsc->v4l2_dev;
190 snd_cx18_lock(cxsc);
198 snd_cx18_unlock(cxsc);
205 struct snd_cx18_card *cxsc = snd_pcm_substream_chip(substream);
207 cxsc->hwptr_done_capture = 0;
208 cxsc->capture_transfer_done = 0;
223 struct snd_cx18_card *cxsc = snd_pcm_substream_chip(substream);
225 spin_lock_irqsave(&cxsc->slock, flags);
226 hwptr_done = cxsc->hwptr_done_capture;
227 spin_unlock_irqrestore(&cxsc->slock, flags);
240 int snd_cx18_pcm_create(struct snd_cx18_card *cxsc)
243 struct snd_card *sc = cxsc->sc;
244 struct v4l2_device *v4l2_dev = cxsc->v4l2_dev;
259 spin_lock_init(&cxsc->slock);
265 sp->private_data = cxsc;