| /OK3568_Linux_fs/kernel/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 = (substream)->runtime->period_size; 139 __entry->period_size,
|
| /OK3568_Linux_fs/kernel/sound/pci/ctxfi/ |
| H A D | cttimer.c | 69 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 …]
|
| /OK3568_Linux_fs/external/rk_pcba_test/tinyalsa/ |
| H A D | tinyplay.c | 64 unsigned int rate, unsigned int bits, unsigned int period_size, 80 unsigned int period_size = 1024; in tiny_play() local 139 period_size = atoi(*argv); in tiny_play() 156 chunk_fmt.bits_per_sample, period_size, period_count); in tiny_play() 188 unsigned int rate, unsigned int bits, unsigned int period_size, in sample_is_playable() argument 203 can_play &= check_param(params, PCM_PARAM_PERIOD_SIZE, period_size, "Period size", "Hz"); in sample_is_playable() 212 unsigned int rate, unsigned int bits, unsigned int period_size, in play_sample() argument 223 config.period_size = period_size; in play_sample() 233 if (!sample_is_playable(card, device, channels, rate, bits, period_size, period_count)) { in play_sample()
|
| H A D | tinycap.c | 63 enum pcm_format format, unsigned int period_size, 81 unsigned int period_size = 1024; in tiny_cap() local 125 period_size = atoi(*argv); in tiny_cap() 169 period_size, period_count); in tiny_cap() 185 enum pcm_format format, unsigned int period_size, in capture_sample() argument 196 config.period_size = period_size; in capture_sample()
|
| H A D | pcm.c | 644 param_set_min(¶ms, SNDRV_PCM_HW_PARAM_PERIOD_SIZE, config->period_size); in pcm_open() 678 config->period_size = param_get_int(¶ms, SNDRV_PCM_HW_PARAM_PERIOD_SIZE); in pcm_open() 680 pcm->buffer_size = config->period_count * config->period_size; in pcm_open() 702 config->period_count * config->period_size / 2; in pcm_open() 710 config->period_count * config->period_size * 10; in pcm_open() 713 config->period_count * config->period_size; in pcm_open() 720 pcm->config.avail_min = sparams.avail_min = pcm->config.period_size; in pcm_open() 726 sparams.xfer_align = config->period_size / 2; /* needed for old kernels */ in pcm_open()
|
| /OK3568_Linux_fs/kernel/sound/pci/ |
| H A D | sis7019.c | 76 u16 period_size; member 211 sis_update_sso(voice, voice->period_size); in sis_update_voice() 218 if (voice->vperiod > voice->period_size) { in sis_update_voice() 219 voice->vperiod -= voice->period_size; in sis_update_voice() 220 if (voice->vperiod < voice->period_size) in sis_update_voice() 223 sis_update_sso(voice, voice->period_size); in sis_update_voice() 273 sis_update_sso(voice, voice->period_size); in sis_update_voice() 441 unsigned int period_size, buffer_size; in sis_alloc_timing_voice() local 449 period_size = params_period_size(hw_params); in sis_alloc_timing_voice() 451 needed = (period_size != buffer_size && in sis_alloc_timing_voice() [all …]
|
| /OK3568_Linux_fs/kernel/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() 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()
|
| /OK3568_Linux_fs/kernel/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()
|
| /OK3568_Linux_fs/kernel/sound/usb/usx2y/ |
| H A D | usb_stream.c | 28 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() 43 lb, s->period_size); in playback_prep_freqn() 209 sk->s->period_size = frame_size * period_frames; in usb_stream_new() 304 if (s->idle_outsize + lb + l > s->period_size) in usb_stream_prepare_playback() 320 s->period_size); in usb_stream_prepare_playback() 328 s->idle_outsize += lb - s->period_size; in usb_stream_prepare_playback() 399 for (; p < iu->number_of_packets && l < s->period_size; ++p) { in loop_back() 402 if (l + il > s->period_size) in loop_back() 403 il = s->period_size - l; in loop_back() [all …]
|
| /OK3568_Linux_fs/kernel/sound/soc/atmel/ |
| H A D | atmel-pcm-pdc.c | 145 size_t period_size; member 171 prtd->period_ptr += prtd->period_size; in atmel_pcm_dma_irq() 178 prtd->period_size / params->pdc_xfer_size); in atmel_pcm_dma_irq() 185 prtd->period_ptr += prtd->period_size; in atmel_pcm_dma_irq() 192 prtd->period_size / params->pdc_xfer_size); in atmel_pcm_dma_irq() 221 prtd->period_size = params_period_bytes(params); in atmel_pcm_hw_params() 228 prtd->period_size); in atmel_pcm_hw_params() 279 prtd->period_size / params->pdc_xfer_size); in atmel_pcm_trigger() 281 prtd->period_ptr += prtd->period_size; in atmel_pcm_trigger() 285 prtd->period_size / params->pdc_xfer_size); in atmel_pcm_trigger()
|
| /OK3568_Linux_fs/external/rkwifibt-app/test/ |
| H A D | bt_test.c | 52 snd_pcm_uframes_t period_size; member 1436 snd_pcm_uframes_t period_size, char **msg) in hfp_set_sw_params() argument 1448 snd_pcm_uframes_t threshold = (buffer_size / period_size) * period_size; in hfp_set_sw_params() 1455 if ((err = snd_pcm_sw_params_set_avail_min(pcm, params, period_size)) != 0) { in hfp_set_sw_params() 1456 printf("Set avail min: %s: %lu\n", snd_strerror(err), period_size); in hfp_set_sw_params() 1477 snd_pcm_uframes_t period_size = alsa_config.period_size; in hfp_playback_device_open() local 1526 err = snd_pcm_hw_params_set_period_size_near(*playback_handle, hw_params, &period_size, 0); in hfp_playback_device_open() 1528 printf("Error setting period size (%ld): %s\n", period_size, snd_strerror(err)); in hfp_playback_device_open() 1531 printf("period_size = %d\n", (int)period_size); in hfp_playback_device_open() 1549 hfp_set_sw_params(*playback_handle, buffer_size, period_size, NULL); in hfp_playback_device_open() [all …]
|
| /OK3568_Linux_fs/app/forlinx/flapp/src/plugins/allwinner/audiorecorder/ |
| H A D | widget.cpp | 50 period_size = 1024; in record_init() 83 config.period_size = period_size; in capture_sample() 87 config.stop_threshold = period_count * period_size; in capture_sample()
|
| /OK3568_Linux_fs/kernel/sound/soc/fsl/ |
| H A D | fsl_dma.c | 105 size_t period_size; member 184 dma_private->dma_buf_next += dma_private->period_size; in fsl_dma_update_pointers() 557 size_t period_size = params_period_bytes(hw_params); in fsl_dma_hw_params() local 570 dma_private->period_size = period_size; in fsl_dma_hw_params() 574 (NUM_DMA_LINKS * period_size); in fsl_dma_hw_params() 644 link->count = cpu_to_be32(period_size); in fsl_dma_hw_params() 681 temp_addr += period_size; in fsl_dma_hw_params()
|
| /OK3568_Linux_fs/kernel/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() 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()
|
| /OK3568_Linux_fs/kernel/drivers/media/pci/cx25821/ |
| H A D | cx25821-alsa.c | 77 unsigned int period_size; member 509 chip->period_size = params_period_bytes(hw_params); in snd_cx25821_hw_params() 511 chip->dma_size = chip->period_size * params_periods(hw_params); in snd_cx25821_hw_params() 520 if (chip->period_size > AUDIO_LINE_SIZE) in snd_cx25821_hw_params() 521 chip->period_size = AUDIO_LINE_SIZE; in snd_cx25821_hw_params() 523 buf->bpl = chip->period_size; in snd_cx25821_hw_params() 536 chip->period_size, chip->num_periods, 1); in snd_cx25821_hw_params() 623 return runtime->period_size * (count & (runtime->periods - 1)); in snd_cx25821_pointer()
|
| /OK3568_Linux_fs/kernel/sound/soc/dwc/ |
| H A D | dwc-pcm.c | 30 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; \
|
| /OK3568_Linux_fs/kernel/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 | 42 unsigned long period_size, 47 unsigned long period_size,
|
| H A D | aw2-alsa.c | 412 unsigned long period_size, buffer_size; in snd_aw2_pcm_prepare_playback() local 416 period_size = snd_pcm_lib_period_bytes(substream); in snd_aw2_pcm_prepare_playback() 421 runtime->dma_addr, period_size, in snd_aw2_pcm_prepare_playback() 441 unsigned long period_size, buffer_size; in snd_aw2_pcm_prepare_capture() local 445 period_size = snd_pcm_lib_period_bytes(substream); in snd_aw2_pcm_prepare_capture() 450 runtime->dma_addr, period_size, in snd_aw2_pcm_prepare_capture()
|
| /OK3568_Linux_fs/kernel/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()
|
| /OK3568_Linux_fs/buildroot/package/madplay/ |
| H A D | 0001-switch-to-new-alsa-api.patch | 47 -snd_pcm_sframes_t period_size; 113 - period_size = snd_pcm_hw_params_get_period_size(params, &dir); 136 - /* allow transfer when at least period_size samples can be processed */ 137 - err = snd_pcm_sw_params_set_avail_min(handle, params, period_size);
|
| /OK3568_Linux_fs/kernel/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() 480 return runtime->period_size * (count & (runtime->periods-1)); in snd_cx23885_pointer()
|
| /OK3568_Linux_fs/kernel/drivers/iio/adc/ |
| H A D | ti_am335x_adc.c | 45 int period_size; member 241 data = dma->buf + dma->current_period * dma->period_size; in tiadc_dma_rx_complete() 244 for (i = 0; i < dma->period_size; i += indio_dev->scan_bytes) { in tiadc_dma_rx_complete() 267 dma->period_size = rounddown(DMA_BUFFER_SIZE / 2, in tiadc_start_dma() 274 dma->period_size * 2, in tiadc_start_dma() 275 dma->period_size, DMA_DEV_TO_MEM, in tiadc_start_dma()
|
| /OK3568_Linux_fs/kernel/sound/pci/trident/ |
| H A D | trident_main.c | 727 unsigned int period_size) in snd_trident_spurious_threshold() argument 729 unsigned int res = (rate * period_size) / 48000; in snd_trident_spurious_threshold() 918 voice->spurious_threshold = snd_trident_spurious_threshold(runtime->rate, runtime->period_size); in snd_trident_playback_prepare() 953 evoice->ESO = (runtime->period_size * 2) + 4 - 1; /* in samples */ in snd_trident_playback_prepare() 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() 1063 voice->spurious_threshold = snd_trident_spurious_threshold(runtime->rate, runtime->period_size); in snd_trident_capture_prepare() 1065 voice->isync_mark = runtime->period_size; in snd_trident_capture_prepare() 1070 voice->ESO = voice->isync_ESO = (runtime->period_size * 2) + 6 - 1; in snd_trident_capture_prepare() 1154 voice->spurious_threshold = snd_trident_spurious_threshold(runtime->rate, runtime->period_size); in snd_trident_si7018_capture_prepare() [all …]
|
| /OK3568_Linux_fs/kernel/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()
|