• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/media/video/cx18/

Lines Matching refs:cxsc

72 void cx18_alsa_announce_pcm_data(struct snd_cx18_card *cxsc, u8 *pcm_data,
82 dprintk("cx18 alsa announce ptr=%p data=%p num_bytes=%zd\n", cxsc,
85 substream = cxsc->capture_pcm_substream;
114 oldptr = cxsc->hwptr_done_capture;
128 cxsc->hwptr_done_capture += length;
129 if (cxsc->hwptr_done_capture >=
131 cxsc->hwptr_done_capture -=
134 cxsc->capture_transfer_done += length;
135 if (cxsc->capture_transfer_done >=
137 cxsc->capture_transfer_done -=
150 struct snd_cx18_card *cxsc = snd_pcm_substream_chip(substream);
152 struct v4l2_device *v4l2_dev = cxsc->v4l2_dev;
159 snd_cx18_lock(cxsc);
169 snd_cx18_unlock(cxsc);
176 snd_cx18_unlock(cxsc);
183 cxsc->capture_pcm_substream = substream;
191 snd_cx18_unlock(cxsc);
198 struct snd_cx18_card *cxsc = snd_pcm_substream_chip(substream);
199 struct v4l2_device *v4l2_dev = cxsc->v4l2_dev;
205 snd_cx18_lock(cxsc);
213 snd_cx18_unlock(cxsc);
260 struct snd_cx18_card *cxsc = snd_pcm_substream_chip(substream);
263 spin_lock_irqsave(&cxsc->slock, flags);
269 spin_unlock_irqrestore(&cxsc->slock, flags);
276 struct snd_cx18_card *cxsc = snd_pcm_substream_chip(substream);
278 cxsc->hwptr_done_capture = 0;
279 cxsc->capture_transfer_done = 0;
294 struct snd_cx18_card *cxsc = snd_pcm_substream_chip(substream);
296 spin_lock_irqsave(&cxsc->slock, flags);
297 hwptr_done = cxsc->hwptr_done_capture;
298 spin_unlock_irqrestore(&cxsc->slock, flags);
323 int snd_cx18_pcm_create(struct snd_cx18_card *cxsc)
326 struct snd_card *sc = cxsc->sc;
327 struct v4l2_device *v4l2_dev = cxsc->v4l2_dev;
342 spin_lock_init(&cxsc->slock);
347 sp->private_data = cxsc;