Home
last modified time | relevance | path

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

/Linux-v4.19/sound/soc/dwc/
Ddwc-pcm.c30 unsigned int period_pos = tx_ptr % runtime->period_size; \
36 period_pos++; \
40 *period_elapsed = period_pos >= runtime->period_size; \
50 unsigned int period_pos = rx_ptr % runtime->period_size; \
56 period_pos++; \
60 *period_elapsed = period_pos >= runtime->period_size; \
/Linux-v4.19/drivers/media/usb/usbtv/
Dusbtv-audio.c127 size_t i, frame_bytes, chunk_length, buffer_pos, period_pos; in usbtv_audio_urb_received() local
153 period_pos = chip->snd_period_pos; in usbtv_audio_urb_received()
172 period_pos += chunk_length; in usbtv_audio_urb_received()
177 if (period_pos >= runtime->period_size) { in usbtv_audio_urb_received()
178 period_pos -= runtime->period_size; in usbtv_audio_urb_received()
186 chip->snd_period_pos = period_pos; in usbtv_audio_urb_received()
/Linux-v4.19/drivers/media/usb/tm6000/
Dtm6000-alsa.c257 chip->period_pos += length; in tm6000_fillbuf()
258 if (chip->period_pos >= runtime->period_size) { in tm6000_fillbuf()
259 chip->period_pos -= runtime->period_size; in tm6000_fillbuf()
313 chip->period_pos = 0; in snd_tm6000_prepare()
Dtm6000.h150 unsigned period_pos; member
/Linux-v4.19/drivers/staging/most/sound/
Dsound.c49 unsigned int period_pos; member
205 channel->period_pos += frames; in copy_data()
206 if (channel->period_pos >= runtime->period_size) { in copy_data()
207 channel->period_pos -= runtime->period_size; in copy_data()
395 channel->period_pos = 0; in pcm_prepare()
/Linux-v4.19/sound/isa/sb/
Demu8000_pcm.c65 int period_pos; member
208 rec->period_pos += delta; in emu8k_pcm_timer_func()
215 if (rec->period_pos >= (int)rec->period_size) { in emu8k_pcm_timer_func()
216 rec->period_pos %= rec->period_size; in emu8k_pcm_timer_func()
624 rec->period_pos = 0; in emu8k_pcm_prepare()
/Linux-v4.19/sound/usb/misc/
Dua101.c119 unsigned int period_pos; member
244 stream->period_pos += frames; in copy_playback_data()
245 if (stream->period_pos >= runtime->period_size) { in copy_playback_data()
246 stream->period_pos -= runtime->period_size; in copy_playback_data()
349 stream->period_pos += frames; in copy_capture_data()
350 if (stream->period_pos >= runtime->period_size) { in copy_capture_data()
351 stream->period_pos -= runtime->period_size; in copy_capture_data()
798 ua->capture.period_pos = 0; in capture_pcm_prepare()
826 ua->playback.period_pos = 0; in playback_pcm_prepare()
/Linux-v4.19/sound/soc/sh/rcar/
Dssi.c803 int period_pos = byte_pos / ssi->byte_per_period; in rsnd_ssi_pio_interrupt() local
805 if (period_pos >= runtime->periods) { in rsnd_ssi_pio_interrupt()
807 period_pos = 0; in rsnd_ssi_pio_interrupt()
810 ssi->next_period_byte = (period_pos + 1) * ssi->byte_per_period; in rsnd_ssi_pio_interrupt()
/Linux-v4.19/sound/soc/sh/
Dfsi.c211 int period_pos; /* current period position */ member
531 io->period_pos = 0; in fsi_stream_init()
559 io->period_pos = 0; in fsi_stream_quit()
1036 io->period_samples * (io->period_pos + 1)) { in fsi_pointer_update()
1040 io->period_pos++; in fsi_pointer_update()
1042 if (io->period_pos >= runtime->periods) { in fsi_pointer_update()
1044 io->period_pos = 0; in fsi_pointer_update()
/Linux-v4.19/sound/pci/ymfpci/
Dymfpci_main.c320 ypcm->period_pos += delta; in snd_ymfpci_pcm_interrupt()
322 if (ypcm->period_pos >= ypcm->period_size) { in snd_ymfpci_pcm_interrupt()
329 ypcm->period_pos %= ypcm->period_size; in snd_ymfpci_pcm_interrupt()
372 ypcm->period_pos += delta; in snd_ymfpci_pcm_capture_interrupt()
374 if (ypcm->period_pos >= ypcm->period_size) { in snd_ymfpci_pcm_capture_interrupt()
375 ypcm->period_pos %= ypcm->period_size; in snd_ymfpci_pcm_capture_interrupt()
686 ypcm->period_pos = 0; in snd_ymfpci_playback_prepare()
726 ypcm->period_pos = 0; in snd_ymfpci_capture_prepare()
Dymfpci.h280 u32 period_pos; member
/Linux-v4.19/sound/pci/emu10k1/
Demupcm.c750 unsigned int ptr, period_pos; in snd_emu10k1_playback_mangle_extra() local
754 period_pos = runtime->status->hw_ptr - runtime->hw_ptr_interrupt; in snd_emu10k1_playback_mangle_extra()
755 period_pos %= runtime->period_size; in snd_emu10k1_playback_mangle_extra()
758 ptr |= epcm->ccca_start_addr + period_pos; in snd_emu10k1_playback_mangle_extra()