Home
last modified time | relevance | path

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

12345

/linux/sound/core/
A 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,
A Dpcm_timer.c31 fsize = runtime->period_size; in snd_pcm_timer_resolution_change()
45 runtime->rate, runtime->period_size); in snd_pcm_timer_resolution_change()
/linux/sound/pci/ctxfi/
A Dcttimer.c69 unsigned int period_size = runtime->period_size; in ct_systimer_callback() local
76 if (dist >= period_size || in ct_systimer_callback()
77 position / period_size != ti->position / period_size) { in ct_systimer_callback()
83 interval = ((period_size - (position % period_size)) in ct_systimer_callback()
104 jiffies + (runtime->period_size * HZ + in ct_systimer_start()
200 unsigned int period_size, rate; in ct_xfitimer_reprogram() local
202 period_size = ti->substream->runtime->period_size; in ct_xfitimer_reprogram()
205 if (pos / period_size != ti->position / period_size) { in ct_xfitimer_reprogram()
210 pos %= period_size; in ct_xfitimer_reprogram()
211 pos = period_size - pos; in ct_xfitimer_reprogram()
[all …]
/linux/sound/pci/
A Dsis7019.c75 u16 period_size; member
451 period_size != (buffer_size / 2)); in sis_alloc_timing_voice()
534 voice->period_size = runtime->period_size; in sis_pcm_playback_prepare()
705 u16 buffer_size, period_size; in sis_prepare_timing_voice() local
714 period_size = buffer_size; in sis_prepare_timing_voice()
729 if (vperiod > period_size) { in sis_prepare_timing_voice()
730 u16 tail = vperiod % period_size; in sis_prepare_timing_voice()
739 period_size -= tail; in sis_prepare_timing_voice()
742 sso = period_size - 1; in sis_prepare_timing_voice()
747 period_size = runtime->period_size; in sis_prepare_timing_voice()
[all …]
/linux/sound/soc/au1x/
A Ddma.c37 unsigned int period_size; member
50 stream->period_size = 0; in au1000_release_dma_link()
75 if (stream->period_size == period_bytes && in au1000_setup_dma_link()
81 stream->period_size = period_bytes; in au1000_setup_dma_link()
120 set_dma_count0(stream->dma, stream->period_size >> 1); in au1000_dma_start()
122 set_dma_count1(stream->dma, stream->period_size >> 1); in au1000_dma_start()
126 set_dma_count1(stream->dma, stream->period_size >> 1); in au1000_dma_start()
128 set_dma_count0(stream->dma, stream->period_size >> 1); in au1000_dma_start()
144 set_dma_count0(stream->dma, stream->period_size >> 1); in au1000_dma_interrupt()
151 set_dma_count1(stream->dma, stream->period_size >> 1); in au1000_dma_interrupt()
/linux/sound/soc/atmel/
A Datmel-pcm-pdc.c80 size_t period_size; member
106 prtd->period_ptr += prtd->period_size; in atmel_pcm_dma_irq()
113 prtd->period_size / params->pdc_xfer_size); in atmel_pcm_dma_irq()
120 prtd->period_ptr += prtd->period_size; in atmel_pcm_dma_irq()
127 prtd->period_size / params->pdc_xfer_size); in atmel_pcm_dma_irq()
153 prtd->period_size = params_period_bytes(params); in atmel_pcm_hw_params()
160 prtd->period_size); in atmel_pcm_hw_params()
211 prtd->period_size / params->pdc_xfer_size); in atmel_pcm_trigger()
213 prtd->period_ptr += prtd->period_size; in atmel_pcm_trigger()
217 prtd->period_size / params->pdc_xfer_size); in atmel_pcm_trigger()
/linux/drivers/media/pci/tw686x/
A Dtw686x-audio.c71 dev->period_size); in tw686x_audio_irq()
135 unsigned int period_size = snd_pcm_lib_period_bytes(ss); in tw686x_pcm_prepare() local
146 (dev->period_size != period_size)) && dev->audio_enabled) in tw686x_pcm_prepare()
162 if (dev->period_size != period_size) { in tw686x_pcm_prepare()
165 dev->period_size = period_size; in tw686x_pcm_prepare()
168 reg |= period_size << AUDIO_DMA_SIZE_SHIFT; in tw686x_pcm_prepare()
181 ac->buf[i].dma = rt->dma_addr + period_size * i; in tw686x_pcm_prepare()
182 ac->buf[i].virt = rt->dma_area + period_size * i; in tw686x_pcm_prepare()
/linux/sound/usb/usx2y/
A Dusb_stream.c29 if (s->idle_outsize + lb + l > s->period_size) in playback_prep_freqn()
42 s->idle_outsize += lb - s->period_size; in playback_prep_freqn()
44 lb, s->period_size); in playback_prep_freqn()
326 s->period_size); in usb_stream_prepare_playback()
334 s->idle_outsize += lb - s->period_size; in usb_stream_prepare_playback()
409 if (l + il > s->period_size) in loop_back()
410 il = s->period_size - l; in loop_back()
421 ol = s->period_size - s->playback1st_size; in loop_back()
426 if (l != s->period_size) in loop_back()
475 if (insize + l > s->period_size && in stream_idle()
[all …]
/linux/sound/soc/fsl/
A Dfsl_dma.c105 size_t period_size; member
184 dma_private->dma_buf_next += dma_private->period_size; in fsl_dma_update_pointers()
530 size_t period_size = params_period_bytes(hw_params); in fsl_dma_hw_params() local
543 dma_private->period_size = period_size; in fsl_dma_hw_params()
547 (NUM_DMA_LINKS * period_size); in fsl_dma_hw_params()
617 link->count = cpu_to_be32(period_size); in fsl_dma_hw_params()
654 temp_addr += period_size; in fsl_dma_hw_params()
A Dimx-pcm-rpmsg.c363 msg->s_msg.param.period_size = snd_pcm_lib_period_bytes(substream); in imx_rpmsg_prepare_and_submit()
367 msg->s_msg.param.period_size; in imx_rpmsg_prepare_and_submit()
518 snd_pcm_uframes_t period_size = runtime->period_size; in imx_rpmsg_pcm_ack() local
576 if ((avail - written_num * period_size) <= period_size) { in imx_rpmsg_pcm_ack()
581 time_msec = (int)(runtime->period_size * 1000 / runtime->rate); in imx_rpmsg_pcm_ack()
/linux/drivers/staging/vc04_services/bcm2835-audio/
A Dbcm2835-pcm.c58 if (!alsa_stream->period_size) in bcm2835_playback_fifo()
78 if (alsa_stream->period_offset >= alsa_stream->period_size) { in bcm2835_playback_fifo()
79 alsa_stream->period_offset %= alsa_stream->period_size; in bcm2835_playback_fifo()
179 alsa_stream->period_size = 0; in snd_bcm2835_playback_close()
226 alsa_stream->period_size = snd_pcm_lib_period_bytes(substream); in snd_bcm2835_pcm_prepare()
/linux/drivers/media/pci/cx25821/
A Dcx25821-alsa.c77 unsigned int period_size; member
508 chip->period_size = params_period_bytes(hw_params); in snd_cx25821_hw_params()
510 chip->dma_size = chip->period_size * params_periods(hw_params); in snd_cx25821_hw_params()
519 if (chip->period_size > AUDIO_LINE_SIZE) in snd_cx25821_hw_params()
520 chip->period_size = AUDIO_LINE_SIZE; in snd_cx25821_hw_params()
522 buf->bpl = chip->period_size; in snd_cx25821_hw_params()
535 chip->period_size, chip->num_periods, 1); in snd_cx25821_hw_params()
622 return runtime->period_size * (count & (runtime->periods - 1)); in snd_cx25821_pointer()
/linux/sound/soc/dwc/
A 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/sound/pci/aw2/
A Daw2-saa7146.c144 unsigned long period_size, in snd_aw2_saa7146_pcm_init_playback() argument
169 dw_limit = snd_aw2_saa7146_get_limit(period_size); in snd_aw2_saa7146_pcm_init_playback()
201 unsigned long period_size, in snd_aw2_saa7146_pcm_init_capture() argument
226 dw_limit = snd_aw2_saa7146_get_limit(period_size); in snd_aw2_saa7146_pcm_init_capture()
A Daw2-alsa.c345 unsigned long period_size, buffer_size; in snd_aw2_pcm_prepare_playback() local
349 period_size = snd_pcm_lib_period_bytes(substream); in snd_aw2_pcm_prepare_playback()
354 runtime->dma_addr, period_size, in snd_aw2_pcm_prepare_playback()
374 unsigned long period_size, buffer_size; in snd_aw2_pcm_prepare_capture() local
378 period_size = snd_pcm_lib_period_bytes(substream); in snd_aw2_pcm_prepare_capture()
383 runtime->dma_addr, period_size, in snd_aw2_pcm_prepare_capture()
A Daw2-saa7146.h42 unsigned long period_size,
47 unsigned long period_size,
/linux/sound/soc/uniphier/
A Daio-dma.c31 int bytes = runtime->period_size * in aiodma_pcm_irq()
114 int bytes = runtime->period_size * in uniphier_aiodma_prepare()
142 int bytes = runtime->period_size * in uniphier_aiodma_trigger()
177 int bytes = runtime->period_size * in uniphier_aiodma_pointer()
/linux/drivers/media/pci/cx23885/
A Dcx23885-alsa.c370 chip->period_size = params_period_bytes(hw_params); in snd_cx23885_hw_params()
372 chip->dma_size = chip->period_size * params_periods(hw_params); in snd_cx23885_hw_params()
381 buf->bpl = chip->period_size; in snd_cx23885_hw_params()
394 chip->period_size, chip->num_periods, 1); in snd_cx23885_hw_params()
480 return runtime->period_size * (count & (runtime->periods-1)); in snd_cx23885_pointer()
/linux/sound/soc/sh/
A Drz-ssi.c403 current_period = strm->buffer_pos / runtime->period_size; in rz_ssi_pointer_update()
425 frames_left = runtime->period_size - (strm->buffer_pos % in rz_ssi_pio_recv()
426 runtime->period_size); in rz_ssi_pio_recv()
428 frames_left = runtime->period_size; in rz_ssi_pio_recv()
481 frames_left = runtime->period_size - (strm->buffer_pos % in rz_ssi_pio_send()
482 runtime->period_size); in rz_ssi_pio_send()
484 frames_left = runtime->period_size; in rz_ssi_pio_send()
614 amount = runtime->period_size; in rz_ssi_dma_transfer()
655 rz_ssi_pointer_update(strm, strm->substream->runtime->period_size); in rz_ssi_dma_complete()
/linux/sound/pci/lx6464es/
A Dlx6464es.c103 snd_pcm_uframes_t period_size = runtime->period_size; in lx_hardware_open() local
112 err = lx_set_granularity(chip, period_size); in lx_hardware_open()
115 period_size); in lx_hardware_open()
279 pos = lx_stream->frame_pos * substream->runtime->period_size; in lx_pcm_stream_pointer()
415 const u32 period_size = substream->runtime->period_size; in lx_trigger_start() local
417 const u32 period_bytes = period_size * bytes_per_frame; in lx_trigger_start()
/linux/drivers/iio/adc/
A Dti_am335x_adc.c38 int period_size; member
222 data = dma->buf + dma->current_period * dma->period_size; in tiadc_dma_rx_complete()
225 for (i = 0; i < dma->period_size; i += indio_dev->scan_bytes) { in tiadc_dma_rx_complete()
250 dma->period_size = rounddown(DMA_BUFFER_SIZE / 2, in tiadc_start_dma()
257 dma->period_size * 2, in tiadc_start_dma()
258 dma->period_size, DMA_DEV_TO_MEM, in tiadc_start_dma()
/linux/drivers/media/pci/saa7134/
A Dsaa7134-alsa.c666 unsigned int period_size, periods; in snd_card_saa7134_hw_params() local
669 period_size = params_period_bytes(hw_params); in snd_card_saa7134_hw_params()
672 if (period_size < 0x100 || period_size > 0x10000) in snd_card_saa7134_hw_params()
676 if (period_size * periods > 1024 * 1024) in snd_card_saa7134_hw_params()
682 dev->dmasound.blksize == period_size) in snd_card_saa7134_hw_params()
693 dev->dmasound.blksize = period_size; in snd_card_saa7134_hw_params()
694 dev->dmasound.bufsize = period_size * periods; in snd_card_saa7134_hw_params()
/linux/sound/pci/trident/
A Dtrident_main.c727 unsigned int period_size) in snd_trident_spurious_threshold() argument
971 evoice->isync_mark = runtime->period_size; in snd_trident_playback_prepare()
972 evoice->ESO = (runtime->period_size * 2) - 1; in snd_trident_playback_prepare()
1065 voice->isync_mark = runtime->period_size; in snd_trident_capture_prepare()
1195 evoice->isync_mark = runtime->period_size; in snd_trident_si7018_capture_prepare()
1196 evoice->ESO = (runtime->period_size * 2) - 1; in snd_trident_si7018_capture_prepare()
1272 evoice->isync_mark = runtime->period_size; in snd_trident_foldback_prepare()
1273 evoice->ESO = (runtime->period_size * 2) - 1; in snd_trident_foldback_prepare()
1384 voice->isync_mark = runtime->period_size; in snd_trident_spdif_prepare()
1466 evoice->isync_mark = runtime->period_size; in snd_trident_spdif_prepare()
[all …]
/linux/sound/soc/codecs/
A Dtlv320dac33.c1052 unsigned int period_size = substream->runtime->period_size; in dac33_calculate_times() local
1067 if (period_size <= dac33->alarm_threshold) in dac33_calculate_times()
1072 dac33->nsample = period_size * in dac33_calculate_times()
1073 ((dac33->alarm_threshold / period_size) + in dac33_calculate_times()
1074 ((dac33->alarm_threshold % period_size) ? in dac33_calculate_times()
1076 else if (period_size > nsample_limit) in dac33_calculate_times()
1079 dac33->nsample = period_size; in dac33_calculate_times()
1087 dac33->uthr = UTHR_FROM_PERIOD_SIZE(period_size, rate, in dac33_calculate_times()
/linux/drivers/media/pci/cx88/
A Dcx88-alsa.c69 unsigned int period_size; member
461 chip->period_size = params_period_bytes(hw_params); in snd_cx88_hw_params()
463 chip->dma_size = chip->period_size * params_periods(hw_params); in snd_cx88_hw_params()
473 buf->bpl = chip->period_size; in snd_cx88_hw_params()
485 chip->period_size, chip->num_periods, 1); in snd_cx88_hw_params()
568 return runtime->period_size * (count & (runtime->periods - 1)); in snd_cx88_pointer()

Completed in 53 milliseconds

12345