| /linux/tools/testing/selftests/alsa/ |
| H A D | pcm-test.conf | 7 period_size 8000 16 period_size 8000 25 period_size 22500 34 period_size 512 43 period_size 24000 52 period_size 48000 61 period_size 48000
|
| H A D | test-pcmtest-driver.c | 23 unsigned long period_size; member 100 snd_pcm_hw_params_set_period_size_near(*handle, hwparams, ¶ms->period_size, 0); in setup_handle() 106 snd_pcm_sw_params_set_avail_min(*handle, swparams, params->period_size); in setup_handle() 108 snd_pcm_hw_params_set_period_size_near(*handle, hwparams, ¶ms->period_size, 0); in setup_handle() 139 self->params.period_size = 4096; in FIXTURE_SETUP()
|
| /linux/sound/core/ |
| H A D | pcm_trace.h | 21 __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 [all...] |
| H A D | pcm_timer.c | 31 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/ |
| H A D | cttimer.c | 69 unsigned int period_size = runtime->period_size; in ct_systimer_callback() local 75 if (dist >= period_size || in ct_systimer_callback() 76 position / period_size != ti->position / period_size) { in ct_systimer_callback() 82 interval = ((period_size - (position % period_size)) in ct_systimer_callback() 101 jiffies + (runtime->period_size * HZ + in ct_systimer_start() 193 unsigned int period_size, rate; in ct_xfitimer_reprogram() local 195 period_size = ti->substream->runtime->period_size; in ct_xfitimer_reprogram() 198 if (pos / period_size != ti->position / period_size) { in ct_xfitimer_reprogram() 203 pos %= period_size; in ct_xfitimer_reprogram() 204 pos = period_size - pos; in ct_xfitimer_reprogram() [all …]
|
| /linux/sound/soc/atmel/ |
| H A D | atmel-pcm-pdc.c | 80 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() 157 "(dma_bytes=%zu, period_size=%zu)\n", 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() [all...] |
| /linux/sound/soc/au1x/ |
| H A D | dma.c | 37 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() 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 >> in au1000_dma_interrupt() [all...] |
| /linux/drivers/media/pci/tw686x/ |
| H A D | tw686x-audio.c | 71 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/ |
| H A D | usb_stream.c | 29 if (s->idle_outsize + lb + l > s->period_size) in playback_prep_freqn() 41 s->idle_outsize += lb - s->period_size; in playback_prep_freqn() 210 sk->s->period_size = frame_size * period_frames; in usb_stream_new() 308 if (s->idle_outsize + lb + l > s->period_size) in usb_stream_prepare_playback() 325 s->period_size); in usb_stream_prepare_playback() 333 s->idle_outsize += lb - s->period_size; in usb_stream_prepare_playback() 405 for (; p < iu->number_of_packets && l < s->period_size; ++p) { in loop_back() 408 if (l + il > s->period_size) in loop_back() 409 il = s->period_size - l; in loop_back() 420 ol = s->period_size - s->playback1st_size; in loop_back() [all …]
|
| H A D | us144mkii_playback.c | 402 if (playback_rt->period_size > 0) { in feedback_urb_complete() 405 playback_rt->period_size); in feedback_urb_complete() 414 capture_rt->period_size > 0) { in feedback_urb_complete() 417 capture_rt->period_size); in feedback_urb_complete()
|
| /linux/tools/testing/selftests/alsa/conf.d/ |
| H A D | Lenovo_ThinkPad_P1_Gen2.conf | 47 period_size 512 55 period_size 24000 63 period_size 24000
|
| /linux/sound/soc/fsl/ |
| H A D | fsl_dma.c | 90 * @buffer period_size: the size of a single period 105 size_t period_size; member 184 dma_private->dma_buf_next += dma_private->period_size; in fsl_dma_update_pointers() 524 size_t period_size = params_period_bytes(hw_params); in fsl_dma_hw_params() 537 dma_private->period_size = period_size; in fsl_dma_hw_params() 541 (NUM_DMA_LINKS * period_size); in fsl_dma_hw_params() 611 link->count = cpu_to_be32(period_size); in fsl_dma_hw_params() 648 temp_addr += period_size; in fsl_dma_hw_params() 530 size_t period_size = params_period_bytes(hw_params); fsl_dma_hw_params() local
|
| /linux/drivers/staging/vc04_services/bcm2835-audio/ |
| H A D | bcm2835-pcm.c | 58 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() 178 alsa_stream->period_size = 0; in snd_bcm2835_playback_close() 225 alsa_stream->period_size = snd_pcm_lib_period_bytes(substream); in snd_bcm2835_pcm_prepare()
|
| /linux/sound/pci/aw2/ |
| H A D | aw2-saa7146.c | 144 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()
|
| H A D | aw2-saa7146.h | 43 unsigned long period_size, 48 unsigned long period_size,
|
| /linux/sound/soc/dwc/ |
| H A D | dwc-pcm.c | 27 unsigned int period_pos = tx_ptr % runtime->period_size; \ 37 *period_elapsed = period_pos >= runtime->period_size; \ 47 unsigned int period_pos = rx_ptr % runtime->period_size; \ 57 *period_elapsed = period_pos >= runtime->period_size; \
|
| /linux/drivers/dma/xilinx/ |
| H A D | xdma.c | 107 u32 period_size; member 662 size_t size, size_t period_size, in xdma_prep_dma_cyclic() argument 668 unsigned int periods = size / period_size; in xdma_prep_dma_cyclic() 679 if (period_size > XDMA_DESC_BLEN_MAX) { in xdma_prep_dma_cyclic() 694 sw_desc->period_size = period_size; in xdma_prep_dma_cyclic() 711 desc_num += xdma_fill_descs(sw_desc, *src, *dst, period_size, desc_num); in xdma_prep_dma_cyclic() 712 addr += period_size; in xdma_prep_dma_cyclic() 739 u32 desc_num = 0, period_size = 0; in xdma_prep_interleaved_dma() local 766 period_size += xt->sgl[i].size; in xdma_prep_interleaved_dma() 768 sw_desc->period_size = period_size; in xdma_prep_interleaved_dma() [all …]
|
| /linux/sound/soc/uniphier/ |
| H A D | aio-dma.c | 31 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/sound/soc/google/ |
| H A D | chv3-i2s.c | 205 unsigned int buffer_bytes, period_bytes, period_size; in chv3_dma_prepare() local 209 period_size = substream->runtime->period_size; in chv3_dma_prepare() 215 chv3_i2s_wr(i2s, I2S_RX_IRQ, (period_size << 8) | 1); in chv3_dma_prepare()
|
| /linux/drivers/media/pci/cx23885/ |
| H A D | cx23885-alsa.c | 370 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() 482 return runtime->period_size * (count & (runtime->periods-1)); in snd_cx23885_pointer()
|
| /linux/sound/soc/renesas/ |
| H A D | rz-ssi.c | 456 current_period = strm->buffer_pos / runtime->period_size; in rz_ssi_pointer_update() 462 strm->completed_dma_buf_pos += runtime->period_size; in rz_ssi_pointer_update() 483 frames_left = runtime->period_size - in rz_ssi_pio_recv() 484 (strm->buffer_pos % runtime->period_size); in rz_ssi_pio_recv() 486 frames_left = runtime->period_size; in rz_ssi_pio_recv() 544 frames_left = runtime->period_size - (strm->buffer_pos % in rz_ssi_pio_send() 545 runtime->period_size); in rz_ssi_pio_send() 547 frames_left = runtime->period_size; in rz_ssi_pio_send() 728 amount = runtime->period_size; in rz_ssi_dma_transfer() 769 rz_ssi_pointer_update(strm, strm->substream->runtime->period_size); in rz_ssi_dma_complete() [all...] |
| /linux/sound/isa/sb/ |
| H A D | emu8000_pcm.c | 47 unsigned int period_size; member 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() 571 rec->period_size = subs->runtime->period_size; in emu8k_pcm_prepare()
|
| /linux/drivers/iio/adc/ |
| H A D | ti_am335x_adc.c | 37 int period_size; member 221 data = dma->buf + dma->current_period * dma->period_size; in tiadc_dma_rx_complete() 224 for (i = 0; i < dma->period_size; i += indio_dev->scan_bytes) { in tiadc_dma_rx_complete() 249 dma->period_size = rounddown(DMA_BUFFER_SIZE / 2, in tiadc_start_dma() 256 dma->period_size * 2, in tiadc_start_dma() 257 dma->period_size, DMA_DEV_TO_MEM, in tiadc_start_dma()
|
| /linux/drivers/media/pci/saa7134/ |
| H A D | saa7134-alsa.c | 666 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/ |
| H A D | trident_main.c | 721 unsigned int period_size) in snd_trident_spurious_threshold() argument 723 unsigned int res = (rate * period_size) / 48000; in snd_trident_spurious_threshold() 912 voice->spurious_threshold = snd_trident_spurious_threshold(runtime->rate, runtime->period_size); in snd_trident_playback_prepare() 947 evoice->ESO = (runtime->period_size * 2) + 4 - 1; /* in samples */ in snd_trident_playback_prepare() 965 evoice->isync_mark = runtime->period_size; in snd_trident_playback_prepare() 966 evoice->ESO = (runtime->period_size * 2) - 1; in snd_trident_playback_prepare() 1055 voice->spurious_threshold = snd_trident_spurious_threshold(runtime->rate, runtime->period_size); in snd_trident_capture_prepare() 1057 voice->isync_mark = runtime->period_size; in snd_trident_capture_prepare() 1062 voice->ESO = voice->isync_ESO = (runtime->period_size * 2) + 6 - 1; in snd_trident_capture_prepare() 1145 voice->spurious_threshold = snd_trident_spurious_threshold(runtime->rate, runtime->period_size); in snd_trident_si7018_capture_prepare() [all …]
|