Home
last modified time | relevance | path

Searched refs:period_pos (Results 1 - 24 of 24) sorted by relevance

/kernel/linux/linux-5.10/sound/soc/dwc/
H A 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; \
/kernel/linux/linux-6.6/sound/soc/dwc/
H A 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; \
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/drivers/media/usb/tm6000/
H A Dtm6000-alsa.c222 chip->period_pos += length; in tm6000_fillbuf()
223 if (chip->period_pos >= runtime->period_size) { in tm6000_fillbuf()
224 chip->period_pos -= runtime->period_size; in tm6000_fillbuf()
244 chip->period_pos = 0; in snd_tm6000_prepare()
H A Dtm6000.h149 unsigned period_pos; member
/kernel/linux/linux-6.6/drivers/most/
H A Dmost_snd.c36 * @period_pos: current period position (ring buffer)
52 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()
/kernel/linux/linux-5.10/sound/soc/intel/keembay/
H A Dkmb_platform.c55 unsigned int period_pos = tx_ptr % runtime->period_size; in kmb_pcm_tx_fn() local
70 period_pos++; in kmb_pcm_tx_fn()
76 *period_elapsed = period_pos >= runtime->period_size; in kmb_pcm_tx_fn()
85 unsigned int period_pos = rx_ptr % runtime->period_size; in kmb_pcm_rx_fn() local
106 period_pos++; in kmb_pcm_rx_fn()
112 *period_elapsed = period_pos >= runtime->period_size; in kmb_pcm_rx_fn()
/kernel/linux/linux-5.10/sound/isa/sb/
H A Demu8000_pcm.c52 int period_pos; member
195 rec->period_pos += delta; in emu8k_pcm_timer_func()
202 if (rec->period_pos >= (int)rec->period_size) { in emu8k_pcm_timer_func()
203 rec->period_pos %= rec->period_size; in emu8k_pcm_timer_func()
611 rec->period_pos = 0; in emu8k_pcm_prepare()
/kernel/linux/linux-5.10/drivers/staging/most/sound/
H A Dsound.c35 * @period_pos: current period position (ring buffer)
50 unsigned int period_pos; member
217 channel->period_pos += frames; in copy_data()
218 if (channel->period_pos >= runtime->period_size) { in copy_data()
219 channel->period_pos -= runtime->period_size; in copy_data()
363 channel->period_pos = 0; in pcm_prepare()
/kernel/linux/linux-6.6/sound/drivers/
H A Dpcmtest.c101 size_t period_pos; // period-relative position member
361 v_iter->period_pos += v_iter->b_rw; in timer_timeout()
362 if (v_iter->period_pos >= v_iter->period_bytes) { in timer_timeout()
363 v_iter->period_pos %= v_iter->period_bytes; in timer_timeout()
409 v_iter->period_pos = 0; in reset_buf_iterator()
/kernel/linux/linux-6.6/sound/isa/sb/
H A Demu8000_pcm.c52 int period_pos; member
195 rec->period_pos += delta; in emu8k_pcm_timer_func()
202 if (rec->period_pos >= (int)rec->period_size) { in emu8k_pcm_timer_func()
203 rec->period_pos %= rec->period_size; in emu8k_pcm_timer_func()
570 rec->period_pos = 0; in emu8k_pcm_prepare()
/kernel/linux/linux-5.10/sound/usb/misc/
H A Dua101.c109 unsigned int period_pos; member
234 stream->period_pos += frames; in copy_playback_data()
235 if (stream->period_pos >= runtime->period_size) { in copy_playback_data()
236 stream->period_pos -= runtime->period_size; in copy_playback_data()
339 stream->period_pos += frames; in copy_capture_data()
340 if (stream->period_pos >= runtime->period_size) { in copy_capture_data()
341 stream->period_pos -= runtime->period_size; in copy_capture_data()
775 ua->capture.period_pos = 0; in capture_pcm_prepare()
803 ua->playback.period_pos = 0; in playback_pcm_prepare()
/kernel/linux/linux-6.6/sound/usb/misc/
H A Dua101.c108 unsigned int period_pos; member
233 stream->period_pos += frames; in copy_playback_data()
234 if (stream->period_pos >= runtime->period_size) { in copy_playback_data()
235 stream->period_pos -= runtime->period_size; in copy_playback_data()
338 stream->period_pos += frames; in copy_capture_data()
339 if (stream->period_pos >= runtime->period_size) { in copy_capture_data()
340 stream->period_pos -= runtime->period_size; in copy_capture_data()
774 ua->capture.period_pos = 0; in capture_pcm_prepare()
802 ua->playback.period_pos = 0; in playback_pcm_prepare()
/kernel/linux/linux-6.6/sound/soc/intel/keembay/
H A Dkmb_platform.c103 unsigned int period_pos = tx_ptr % runtime->period_size; in kmb_pcm_tx_fn() local
121 period_pos++; in kmb_pcm_tx_fn()
127 *period_elapsed = period_pos >= runtime->period_size; in kmb_pcm_tx_fn()
136 unsigned int period_pos = rx_ptr % runtime->period_size; in kmb_pcm_rx_fn() local
157 period_pos++; in kmb_pcm_rx_fn()
163 *period_elapsed = period_pos >= runtime->period_size; in kmb_pcm_rx_fn()
/kernel/linux/linux-5.10/sound/soc/sh/rcar/
H A Dssi.c1021 int period_pos = byte_pos / ssi->byte_per_period; in rsnd_ssi_pio_interrupt() local
1023 if (period_pos >= runtime->periods) { in rsnd_ssi_pio_interrupt()
1025 period_pos = 0; in rsnd_ssi_pio_interrupt()
1028 ssi->next_period_byte = (period_pos + 1) * ssi->byte_per_period; in rsnd_ssi_pio_interrupt()
/kernel/linux/linux-6.6/sound/soc/sh/rcar/
H A Dssi.c898 int period_pos = byte_pos / ssi->byte_per_period; in rsnd_ssi_pio_interrupt() local
900 if (period_pos >= runtime->periods) { in rsnd_ssi_pio_interrupt()
902 period_pos = 0; in rsnd_ssi_pio_interrupt()
905 ssi->next_period_byte = (period_pos + 1) * ssi->byte_per_period; in rsnd_ssi_pio_interrupt()
/kernel/linux/linux-5.10/sound/soc/sh/
H A 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()
1049 io->period_samples * (io->period_pos + 1)) { in fsi_pointer_update()
1053 io->period_pos++; in fsi_pointer_update()
1055 if (io->period_pos >= runtime->periods) { in fsi_pointer_update()
1057 io->period_pos = 0; in fsi_pointer_update()
/kernel/linux/linux-6.6/sound/soc/sh/
H A 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()
1049 io->period_samples * (io->period_pos + 1)) { in fsi_pointer_update()
1053 io->period_pos++; in fsi_pointer_update()
1055 if (io->period_pos >= runtime->periods) { in fsi_pointer_update()
1057 io->period_pos = 0; in fsi_pointer_update()
/kernel/linux/linux-5.10/sound/pci/ymfpci/
H A Dymfpci_main.c307 ypcm->period_pos += delta; in snd_ymfpci_pcm_interrupt()
309 if (ypcm->period_pos >= ypcm->period_size) { in snd_ymfpci_pcm_interrupt()
316 ypcm->period_pos %= ypcm->period_size; in snd_ymfpci_pcm_interrupt()
359 ypcm->period_pos += delta; in snd_ymfpci_pcm_capture_interrupt()
361 if (ypcm->period_pos >= ypcm->period_size) { in snd_ymfpci_pcm_capture_interrupt()
362 ypcm->period_pos %= ypcm->period_size; in snd_ymfpci_pcm_capture_interrupt()
671 ypcm->period_pos = 0; in snd_ymfpci_playback_prepare()
705 ypcm->period_pos = 0; in snd_ymfpci_capture_prepare()
H A Dymfpci.h265 u32 period_pos; member
/kernel/linux/linux-6.6/sound/pci/ymfpci/
H A Dymfpci_main.c302 ypcm->period_pos += delta; in snd_ymfpci_pcm_interrupt()
304 if (ypcm->period_pos >= ypcm->period_size) { in snd_ymfpci_pcm_interrupt()
311 ypcm->period_pos %= ypcm->period_size; in snd_ymfpci_pcm_interrupt()
354 ypcm->period_pos += delta; in snd_ymfpci_pcm_capture_interrupt()
356 if (ypcm->period_pos >= ypcm->period_size) { in snd_ymfpci_pcm_capture_interrupt()
357 ypcm->period_pos %= ypcm->period_size; in snd_ymfpci_pcm_capture_interrupt()
666 ypcm->period_pos = 0; in snd_ymfpci_playback_prepare()
700 ypcm->period_pos = 0; in snd_ymfpci_capture_prepare()
H A Dymfpci.h265 u32 period_pos; member
/kernel/linux/linux-5.10/sound/pci/emu10k1/
H A Demupcm.c725 unsigned int ptr, period_pos; in snd_emu10k1_playback_mangle_extra() local
729 period_pos = runtime->status->hw_ptr - runtime->hw_ptr_interrupt; in snd_emu10k1_playback_mangle_extra()
730 period_pos %= runtime->period_size; in snd_emu10k1_playback_mangle_extra()
733 ptr |= epcm->ccca_start_addr + period_pos; in snd_emu10k1_playback_mangle_extra()

Completed in 33 milliseconds