Home
last modified time | relevance | path

Searched refs:period_pos (Results 1 – 8 of 8) sorted by relevance

/linux/sound/soc/dwc/
H A Ddwc-pcm.c27 unsigned int period_pos = tx_ptr % runtime->period_size; \
33 period_pos++; \
37 *period_elapsed = period_pos >= runtime->period_size; \
47 unsigned int period_pos = rx_ptr % runtime->period_size; \
53 period_pos++; \
57 *period_elapsed = period_pos >= runtime->period_size; \
/linux/drivers/media/usb/usbtv/
H A Dusbtv-audio.c103 size_t i, frame_bytes, chunk_length, buffer_pos, period_pos; in usbtv_audio_urb_received() local
129 period_pos = chip->snd_period_pos; in usbtv_audio_urb_received()
148 period_pos += chunk_length; in usbtv_audio_urb_received()
153 if (period_pos >= runtime->period_size) { in usbtv_audio_urb_received()
154 period_pos -= runtime->period_size; in usbtv_audio_urb_received()
162 chip->snd_period_pos = period_pos; in usbtv_audio_urb_received()
/linux/sound/isa/sb/
H A Demu8000_pcm.c52 int period_pos; member
196 rec->period_pos += delta; in emu8k_pcm_timer_func()
203 if (rec->period_pos >= (int)rec->period_size) { in emu8k_pcm_timer_func()
204 rec->period_pos %= rec->period_size; in emu8k_pcm_timer_func()
568 rec->period_pos = 0; in emu8k_pcm_prepare()
/linux/drivers/most/
H A Dmost_snd.c52 unsigned int period_pos; member
209 channel->period_pos += frames; in copy_data()
210 if (channel->period_pos >= runtime->period_size) { in copy_data()
211 channel->period_pos -= runtime->period_size; in copy_data()
355 channel->period_pos = 0; in pcm_prepare()
/linux/sound/drivers/
H A Dpcmtest.c102 size_t period_pos; // period-relative position member
362 v_iter->period_pos += v_iter->b_rw; in timer_timeout()
363 if (v_iter->period_pos >= v_iter->period_bytes) { in timer_timeout()
364 v_iter->period_pos %= v_iter->period_bytes; in timer_timeout()
410 v_iter->period_pos = 0; in reset_buf_iterator()
/linux/sound/usb/misc/
H A Dua101.c108 unsigned int period_pos; member
231 stream->period_pos += frames; in copy_playback_data()
232 if (stream->period_pos >= runtime->period_size) { in copy_playback_data()
233 stream->period_pos -= runtime->period_size; in copy_playback_data()
335 stream->period_pos += frames; in copy_capture_data()
336 if (stream->period_pos >= runtime->period_size) { in copy_capture_data()
337 stream->period_pos -= runtime->period_size; in copy_capture_data()
759 ua->capture.period_pos = 0; in capture_pcm_prepare()
787 ua->playback.period_pos = 0; in playback_pcm_prepare()
/linux/sound/pci/ymfpci/
H A Dymfpci_main.c290 ypcm->period_pos += delta; in snd_ymfpci_pcm_interrupt()
292 if (ypcm->period_pos >= ypcm->period_size) { in snd_ymfpci_pcm_interrupt()
299 ypcm->period_pos %= ypcm->period_size; in snd_ymfpci_pcm_interrupt()
341 ypcm->period_pos += delta; in snd_ymfpci_pcm_capture_interrupt()
343 if (ypcm->period_pos >= ypcm->period_size) { in snd_ymfpci_pcm_capture_interrupt()
344 ypcm->period_pos %= ypcm->period_size; in snd_ymfpci_pcm_capture_interrupt()
644 ypcm->period_pos = 0; in snd_ymfpci_playback_prepare()
678 ypcm->period_pos = 0; in snd_ymfpci_capture_prepare()
H A Dymfpci.h265 u32 period_pos; member