Home
last modified time | relevance | path

Searched refs:period_size (Results 1 – 25 of 102) sorted by relevance

12345

/Linux-v4.19/sound/core/
Dpcm_trace.h21 __field( snd_pcm_uframes_t, period_size )
33 __entry->period_size = (substream)->runtime->period_size;
46 (unsigned long)__entry->period_size,
58 __field( snd_pcm_uframes_t, period_size )
68 __entry->period_size = (substream)->runtime->period_size;
79 (unsigned long)__entry->period_size,
117 __field( snd_pcm_uframes_t, period_size )
128 __entry->period_size = (substream)->runtime->period_size;
139 __entry->period_size,
Dpcm_timer.c46 fsize = runtime->period_size; in snd_pcm_timer_resolution_change()
60 runtime->rate, runtime->period_size); in snd_pcm_timer_resolution_change()
/Linux-v4.19/sound/pci/ctxfi/
Dcttimer.c72 unsigned int period_size = runtime->period_size; in ct_systimer_callback() local
79 if (dist >= period_size || in ct_systimer_callback()
80 position / period_size != ti->position / period_size) { in ct_systimer_callback()
86 interval = ((period_size - (position % period_size)) in ct_systimer_callback()
107 jiffies + (runtime->period_size * HZ + in ct_systimer_start()
203 unsigned int period_size, rate; in ct_xfitimer_reprogram() local
205 period_size = ti->substream->runtime->period_size; in ct_xfitimer_reprogram()
208 if (pos / period_size != ti->position / period_size) { in ct_xfitimer_reprogram()
213 pos %= period_size; in ct_xfitimer_reprogram()
214 pos = period_size - pos; in ct_xfitimer_reprogram()
[all …]
/Linux-v4.19/sound/pci/
Dsis7019.c88 u16 period_size; member
223 sis_update_sso(voice, voice->period_size); in sis_update_voice()
230 if (voice->vperiod > voice->period_size) { in sis_update_voice()
231 voice->vperiod -= voice->period_size; in sis_update_voice()
232 if (voice->vperiod < voice->period_size) in sis_update_voice()
235 sis_update_sso(voice, voice->period_size); in sis_update_voice()
285 sis_update_sso(voice, voice->period_size); in sis_update_voice()
453 unsigned int period_size, buffer_size; in sis_alloc_timing_voice() local
461 period_size = params_period_size(hw_params); in sis_alloc_timing_voice()
463 needed = (period_size != buffer_size && in sis_alloc_timing_voice()
[all …]
/Linux-v4.19/sound/soc/au1x/
Ddma.c36 unsigned int period_size; member
49 stream->period_size = 0; in au1000_release_dma_link()
74 if (stream->period_size == period_bytes && in au1000_setup_dma_link()
80 stream->period_size = period_bytes; in au1000_setup_dma_link()
119 set_dma_count0(stream->dma, stream->period_size >> 1); in au1000_dma_start()
121 set_dma_count1(stream->dma, stream->period_size >> 1); in au1000_dma_start()
125 set_dma_count1(stream->dma, stream->period_size >> 1); in au1000_dma_start()
127 set_dma_count0(stream->dma, stream->period_size >> 1); in au1000_dma_start()
143 set_dma_count0(stream->dma, stream->period_size >> 1); in au1000_dma_interrupt()
150 set_dma_count1(stream->dma, stream->period_size >> 1); in au1000_dma_interrupt()
/Linux-v4.19/sound/soc/atmel/
Datmel-pcm-pdc.c155 size_t period_size; member
181 prtd->period_ptr += prtd->period_size; in atmel_pcm_dma_irq()
188 prtd->period_size / params->pdc_xfer_size); in atmel_pcm_dma_irq()
195 prtd->period_ptr += prtd->period_size; in atmel_pcm_dma_irq()
202 prtd->period_size / params->pdc_xfer_size); in atmel_pcm_dma_irq()
230 prtd->period_size = params_period_bytes(params); in atmel_pcm_hw_params()
237 prtd->period_size); in atmel_pcm_hw_params()
286 prtd->period_size / params->pdc_xfer_size); in atmel_pcm_trigger()
288 prtd->period_ptr += prtd->period_size; in atmel_pcm_trigger()
292 prtd->period_size / params->pdc_xfer_size); in atmel_pcm_trigger()
/Linux-v4.19/drivers/media/pci/tw686x/
Dtw686x-audio.c74 dev->period_size); in tw686x_audio_irq()
149 unsigned int period_size = snd_pcm_lib_period_bytes(ss); in tw686x_pcm_prepare() local
160 (dev->period_size != period_size)) && dev->audio_enabled) in tw686x_pcm_prepare()
176 if (dev->period_size != period_size) { in tw686x_pcm_prepare()
179 dev->period_size = period_size; in tw686x_pcm_prepare()
182 reg |= period_size << AUDIO_DMA_SIZE_SHIFT; in tw686x_pcm_prepare()
195 ac->buf[i].dma = rt->dma_addr + period_size * i; in tw686x_pcm_prepare()
196 ac->buf[i].virt = rt->dma_area + period_size * i; in tw686x_pcm_prepare()
/Linux-v4.19/sound/usb/usx2y/
Dusb_stream.c41 if (s->idle_outsize + lb + l > s->period_size) in playback_prep_freqn()
54 s->idle_outsize += lb - s->period_size; in playback_prep_freqn()
56 lb, s->period_size); in playback_prep_freqn()
216 sk->s->period_size = frame_size * period_frames; in usb_stream_new()
313 if (s->idle_outsize + lb + l > s->period_size) in usb_stream_prepare_playback()
329 s->period_size); in usb_stream_prepare_playback()
337 s->idle_outsize += lb - s->period_size; in usb_stream_prepare_playback()
408 for (; p < iu->number_of_packets && l < s->period_size; ++p) { in loop_back()
411 if (l + il > s->period_size) in loop_back()
412 il = s->period_size - l; in loop_back()
[all …]
/Linux-v4.19/drivers/staging/vc04_services/bcm2835-audio/
Dbcm2835-pcm.c67 if (alsa_stream->period_size) { in bcm2835_playback_fifo()
68 if ((alsa_stream->pos / alsa_stream->period_size) != in bcm2835_playback_fifo()
69 ((alsa_stream->pos + consumed) / alsa_stream->period_size)) in bcm2835_playback_fifo()
76 (int) (alsa_stream->period_size * alsa_stream->substream->runtime->periods), in bcm2835_playback_fifo()
219 alsa_stream->period_size = 0; in snd_bcm2835_playback_close()
307 alsa_stream->period_size = snd_pcm_lib_period_bytes(substream); in snd_bcm2835_pcm_prepare()
311 alsa_stream->buffer_size, alsa_stream->period_size, in snd_bcm2835_pcm_prepare()
/Linux-v4.19/sound/pci/aw2/
Daw2-saa7146.h55 unsigned long period_size,
60 unsigned long period_size,
Daw2-saa7146.c157 unsigned long period_size, in snd_aw2_saa7146_pcm_init_playback() argument
182 dw_limit = snd_aw2_saa7146_get_limit(period_size); in snd_aw2_saa7146_pcm_init_playback()
214 unsigned long period_size, in snd_aw2_saa7146_pcm_init_capture() argument
239 dw_limit = snd_aw2_saa7146_get_limit(period_size); in snd_aw2_saa7146_pcm_init_capture()
Daw2-alsa.c447 unsigned long period_size, buffer_size; in snd_aw2_pcm_prepare_playback() local
451 period_size = snd_pcm_lib_period_bytes(substream); in snd_aw2_pcm_prepare_playback()
456 runtime->dma_addr, period_size, in snd_aw2_pcm_prepare_playback()
476 unsigned long period_size, buffer_size; in snd_aw2_pcm_prepare_capture() local
480 period_size = snd_pcm_lib_period_bytes(substream); in snd_aw2_pcm_prepare_capture()
485 runtime->dma_addr, period_size, in snd_aw2_pcm_prepare_capture()
/Linux-v4.19/sound/soc/dwc/
Ddwc-pcm.c30 unsigned int period_pos = tx_ptr % runtime->period_size; \
40 *period_elapsed = period_pos >= runtime->period_size; \
50 unsigned int period_pos = rx_ptr % runtime->period_size; \
60 *period_elapsed = period_pos >= runtime->period_size; \
/Linux-v4.19/drivers/media/pci/cx25821/
Dcx25821-alsa.c86 unsigned int period_size; member
517 chip->period_size = params_period_bytes(hw_params); in snd_cx25821_hw_params()
519 chip->dma_size = chip->period_size * params_periods(hw_params); in snd_cx25821_hw_params()
528 if (chip->period_size > AUDIO_LINE_SIZE) in snd_cx25821_hw_params()
529 chip->period_size = AUDIO_LINE_SIZE; in snd_cx25821_hw_params()
531 buf->bpl = chip->period_size; in snd_cx25821_hw_params()
544 chip->period_size, chip->num_periods, 1); in snd_cx25821_hw_params()
631 return runtime->period_size * (count & (runtime->periods - 1)); in snd_cx25821_pointer()
/Linux-v4.19/sound/soc/fsl/
Dfsl_dma.c109 size_t period_size; member
188 dma_private->dma_buf_next += dma_private->period_size; in fsl_dma_update_pointers()
563 size_t period_size = params_period_bytes(hw_params); in fsl_dma_hw_params() local
576 dma_private->period_size = period_size; in fsl_dma_hw_params()
580 (NUM_DMA_LINKS * period_size); in fsl_dma_hw_params()
650 link->count = cpu_to_be32(period_size); in fsl_dma_hw_params()
687 temp_addr += period_size; in fsl_dma_hw_params()
/Linux-v4.19/sound/soc/uniphier/
Daio-dma.c31 int bytes = runtime->period_size * in aiodma_pcm_irq()
129 int bytes = runtime->period_size * in uniphier_aiodma_prepare()
156 int bytes = runtime->period_size * in uniphier_aiodma_trigger()
190 int bytes = runtime->period_size * in uniphier_aiodma_pointer()
/Linux-v4.19/drivers/media/pci/cx23885/
Dcx23885-alsa.c378 chip->period_size = params_period_bytes(hw_params); in snd_cx23885_hw_params()
380 chip->dma_size = chip->period_size * params_periods(hw_params); in snd_cx23885_hw_params()
389 buf->bpl = chip->period_size; in snd_cx23885_hw_params()
402 chip->period_size, chip->num_periods, 1); in snd_cx23885_hw_params()
488 return runtime->period_size * (count & (runtime->periods-1)); in snd_cx23885_pointer()
/Linux-v4.19/drivers/iio/adc/
Dti_am335x_adc.c45 int period_size; member
238 data = dma->buf + dma->current_period * dma->period_size; in tiadc_dma_rx_complete()
241 for (i = 0; i < dma->period_size; i += indio_dev->scan_bytes) { in tiadc_dma_rx_complete()
264 dma->period_size = rounddown(DMA_BUFFER_SIZE / 2, in tiadc_start_dma()
271 dma->period_size * 2, in tiadc_start_dma()
272 dma->period_size, DMA_DEV_TO_MEM, in tiadc_start_dma()
/Linux-v4.19/sound/pci/lx6464es/
Dlx6464es.c113 snd_pcm_uframes_t period_size = runtime->period_size; in lx_hardware_open() local
122 err = lx_set_granularity(chip, period_size); in lx_hardware_open()
125 period_size); in lx_hardware_open()
290 pos = lx_stream->frame_pos * substream->runtime->period_size; in lx_pcm_stream_pointer()
433 const u32 period_size = substream->runtime->period_size; in lx_trigger_start() local
435 const u32 period_bytes = period_size * bytes_per_frame; in lx_trigger_start()
/Linux-v4.19/drivers/media/pci/saa7134/
Dsaa7134-alsa.c674 unsigned int period_size, periods; in snd_card_saa7134_hw_params() local
677 period_size = params_period_bytes(hw_params); in snd_card_saa7134_hw_params()
680 if (period_size < 0x100 || period_size > 0x10000) in snd_card_saa7134_hw_params()
684 if (period_size * periods > 1024 * 1024) in snd_card_saa7134_hw_params()
690 dev->dmasound.blksize == period_size) in snd_card_saa7134_hw_params()
701 dev->dmasound.blksize = period_size; in snd_card_saa7134_hw_params()
702 dev->dmasound.bufsize = period_size * periods; in snd_card_saa7134_hw_params()
/Linux-v4.19/sound/isa/sb/
Demu8000_pcm.c60 unsigned int period_size; member
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()
627 rec->period_size = subs->runtime->period_size; in emu8k_pcm_prepare()
/Linux-v4.19/drivers/media/pci/cx88/
Dcx88-alsa.c78 unsigned int period_size; member
470 chip->period_size = params_period_bytes(hw_params); in snd_cx88_hw_params()
472 chip->dma_size = chip->period_size * params_periods(hw_params); in snd_cx88_hw_params()
482 buf->bpl = chip->period_size; in snd_cx88_hw_params()
494 chip->period_size, chip->num_periods, 1); in snd_cx88_hw_params()
577 return runtime->period_size * (count & (runtime->periods - 1)); in snd_cx88_pointer()
/Linux-v4.19/sound/soc/codecs/
Dtlv320dac33.c1066 unsigned int period_size = substream->runtime->period_size; in dac33_calculate_times() local
1081 if (period_size <= dac33->alarm_threshold) in dac33_calculate_times()
1086 dac33->nsample = period_size * in dac33_calculate_times()
1087 ((dac33->alarm_threshold / period_size) + in dac33_calculate_times()
1088 (dac33->alarm_threshold % period_size ? in dac33_calculate_times()
1090 else if (period_size > nsample_limit) in dac33_calculate_times()
1093 dac33->nsample = period_size; in dac33_calculate_times()
1101 dac33->uthr = UTHR_FROM_PERIOD_SIZE(period_size, rate, in dac33_calculate_times()
/Linux-v4.19/include/uapi/sound/
Dusb_stream.h46 int period_size; member
/Linux-v4.19/sound/pci/trident/
Dtrident_main.c741 unsigned int period_size) in snd_trident_spurious_threshold() argument
743 unsigned int res = (rate * period_size) / 48000; in snd_trident_spurious_threshold()
959 voice->spurious_threshold = snd_trident_spurious_threshold(runtime->rate, runtime->period_size); in snd_trident_playback_prepare()
994 evoice->ESO = (runtime->period_size * 2) + 4 - 1; /* in samples */ in snd_trident_playback_prepare()
1012 evoice->isync_mark = runtime->period_size; in snd_trident_playback_prepare()
1013 evoice->ESO = (runtime->period_size * 2) - 1; in snd_trident_playback_prepare()
1104 voice->spurious_threshold = snd_trident_spurious_threshold(runtime->rate, runtime->period_size); in snd_trident_capture_prepare()
1106 voice->isync_mark = runtime->period_size; in snd_trident_capture_prepare()
1111 voice->ESO = voice->isync_ESO = (runtime->period_size * 2) + 6 - 1; in snd_trident_capture_prepare()
1201 voice->spurious_threshold = snd_trident_spurious_threshold(runtime->rate, runtime->period_size); in snd_trident_si7018_capture_prepare()
[all …]

12345