Lines Matching refs:itvsc
54 static void ivtv_alsa_announce_pcm_data(struct snd_ivtv_card *itvsc, in ivtv_alsa_announce_pcm_data() argument
65 dprintk("ivtv alsa announce ptr=%p data=%p num_bytes=%zu\n", itvsc, in ivtv_alsa_announce_pcm_data()
68 substream = itvsc->capture_pcm_substream; in ivtv_alsa_announce_pcm_data()
97 oldptr = itvsc->hwptr_done_capture; in ivtv_alsa_announce_pcm_data()
111 itvsc->hwptr_done_capture += length; in ivtv_alsa_announce_pcm_data()
112 if (itvsc->hwptr_done_capture >= in ivtv_alsa_announce_pcm_data()
114 itvsc->hwptr_done_capture -= in ivtv_alsa_announce_pcm_data()
117 itvsc->capture_transfer_done += length; in ivtv_alsa_announce_pcm_data()
118 if (itvsc->capture_transfer_done >= in ivtv_alsa_announce_pcm_data()
120 itvsc->capture_transfer_done -= in ivtv_alsa_announce_pcm_data()
133 struct snd_ivtv_card *itvsc = snd_pcm_substream_chip(substream); in snd_ivtv_pcm_capture_open() local
135 struct v4l2_device *v4l2_dev = itvsc->v4l2_dev; in snd_ivtv_pcm_capture_open()
142 snd_ivtv_lock(itvsc); in snd_ivtv_pcm_capture_open()
145 snd_ivtv_unlock(itvsc); in snd_ivtv_pcm_capture_open()
159 snd_ivtv_unlock(itvsc); in snd_ivtv_pcm_capture_open()
166 snd_ivtv_unlock(itvsc); in snd_ivtv_pcm_capture_open()
173 itvsc->capture_pcm_substream = substream; in snd_ivtv_pcm_capture_open()
181 snd_ivtv_unlock(itvsc); in snd_ivtv_pcm_capture_open()
188 struct snd_ivtv_card *itvsc = snd_pcm_substream_chip(substream); in snd_ivtv_pcm_capture_close() local
189 struct v4l2_device *v4l2_dev = itvsc->v4l2_dev; in snd_ivtv_pcm_capture_close()
194 snd_ivtv_lock(itvsc); in snd_ivtv_pcm_capture_close()
202 snd_ivtv_unlock(itvsc); in snd_ivtv_pcm_capture_close()
209 struct snd_ivtv_card *itvsc = snd_pcm_substream_chip(substream); in snd_ivtv_pcm_prepare() local
211 itvsc->hwptr_done_capture = 0; in snd_ivtv_pcm_prepare()
212 itvsc->capture_transfer_done = 0; in snd_ivtv_pcm_prepare()
227 struct snd_ivtv_card *itvsc = snd_pcm_substream_chip(substream); in snd_ivtv_pcm_pointer() local
229 spin_lock_irqsave(&itvsc->slock, flags); in snd_ivtv_pcm_pointer()
230 hwptr_done = itvsc->hwptr_done_capture; in snd_ivtv_pcm_pointer()
231 spin_unlock_irqrestore(&itvsc->slock, flags); in snd_ivtv_pcm_pointer()
244 int snd_ivtv_pcm_create(struct snd_ivtv_card *itvsc) in snd_ivtv_pcm_create() argument
247 struct snd_card *sc = itvsc->sc; in snd_ivtv_pcm_create()
248 struct v4l2_device *v4l2_dev = itvsc->v4l2_dev; in snd_ivtv_pcm_create()
263 spin_lock_init(&itvsc->slock); in snd_ivtv_pcm_create()
269 sp->private_data = itvsc; in snd_ivtv_pcm_create()