Home
last modified time | relevance | path

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

/linux-4.4.14/sound/core/
Dpcm_trace.h20 __field( snd_pcm_uframes_t, period_size )
32 __entry->period_size = (substream)->runtime->period_size;
45 (unsigned long)__entry->period_size,
57 __field( snd_pcm_uframes_t, period_size )
67 __entry->period_size = (substream)->runtime->period_size;
78 (unsigned long)__entry->period_size,
Dpcm_timer.c44 fsize = runtime->period_size; in snd_pcm_timer_resolution_change()
58 runtime->rate, runtime->period_size); in snd_pcm_timer_resolution_change()
Dpcm_lib.c327 runtime->period_size); in snd_pcm_update_hw_ptr0()
338 delta = runtime->hw_ptr_interrupt + runtime->period_size; in snd_pcm_update_hw_ptr0()
393 if (delta >= runtime->buffer_size + runtime->period_size) { in snd_pcm_update_hw_ptr0()
418 (((runtime->period_size * HZ) / runtime->rate) in snd_pcm_update_hw_ptr0()
426 new_hw_ptr += runtime->period_size; in snd_pcm_update_hw_ptr0()
437 (long)runtime->period_size, jdelta, in snd_pcm_update_hw_ptr0()
446 if (delta > runtime->period_size + runtime->period_size / 2) { in snd_pcm_update_hw_ptr0()
469 delta -= (snd_pcm_uframes_t)delta % runtime->period_size; in snd_pcm_update_hw_ptr0()
1920 long t = runtime->period_size * 2 / runtime->rate; in wait_for_avail()
Dpcm_native.c486 usecs = (750000 / runtime->rate) * runtime->period_size; in period_to_usecs()
487 usecs += ((750000 % runtime->rate) * runtime->period_size) / in period_to_usecs()
559 runtime->period_size = params_period_size(params); in snd_pcm_hw_params()
584 runtime->control->avail_min = runtime->period_size; in snd_pcm_hw_params()
1478 runtime->status->hw_ptr % runtime->period_size; in snd_pcm_do_reset()
1725 long t = runtime->period_size * 2 / runtime->rate; in snd_pcm_drain()
Dpcm.c403 snd_iprintf(buffer, "period_size: %lu\n", runtime->period_size); in snd_pcm_substream_proc_hw_params_read()
/linux-4.4.14/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()
108 jiffies + (runtime->period_size * HZ + in ct_systimer_start()
204 unsigned int period_size, rate; in ct_xfitimer_reprogram() local
206 period_size = ti->substream->runtime->period_size; in ct_xfitimer_reprogram()
209 if (pos / period_size != ti->position / period_size) { in ct_xfitimer_reprogram()
214 pos %= period_size; in ct_xfitimer_reprogram()
215 pos = period_size - pos; in ct_xfitimer_reprogram()
[all …]
/linux-4.4.14/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 …]
Dmaestro3.c726 int period_size; member
1166 s->period_size = frames_to_bytes(runtime, runtime->period_size); in snd_m3_pcm_setup1()
1526 if (s->count >= (signed)s->period_size) { in snd_m3_update_ptr()
1528 if (s->count < 2 * (signed)s->period_size) in snd_m3_update_ptr()
1529 s->count -= (signed)s->period_size; in snd_m3_update_ptr()
1531 s->count %= s->period_size; in snd_m3_update_ptr()
Dcmipci.c786 unsigned int period_size; in snd_cmipci_pcm_prepare() local
806 period_size = runtime->period_size << rec->shift; in snd_cmipci_pcm_prepare()
810 period_size = (period_size * runtime->channels) / 2; in snd_cmipci_pcm_prepare()
821 snd_cmipci_write_w(cm, reg + 2, period_size - 1); in snd_cmipci_pcm_prepare()
Dcs4281.c757 if (runtime->buffer_size != runtime->period_size) in snd_cs4281_mode()
/linux-4.4.14/sound/soc/au1x/
Ddma.c34 unsigned int period_size; member
47 stream->period_size = 0; in au1000_release_dma_link()
72 if (stream->period_size == period_bytes && in au1000_setup_dma_link()
78 stream->period_size = period_bytes; in au1000_setup_dma_link()
117 set_dma_count0(stream->dma, stream->period_size >> 1); in au1000_dma_start()
119 set_dma_count1(stream->dma, stream->period_size >> 1); in au1000_dma_start()
123 set_dma_count1(stream->dma, stream->period_size >> 1); in au1000_dma_start()
125 set_dma_count0(stream->dma, stream->period_size >> 1); in au1000_dma_start()
141 set_dma_count0(stream->dma, stream->period_size >> 1); in au1000_dma_interrupt()
148 set_dma_count1(stream->dma, stream->period_size >> 1); in au1000_dma_interrupt()
/linux-4.4.14/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-4.4.14/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()
208 sk->s->period_size = frame_size * period_frames; in usb_stream_new()
300 if (s->idle_outsize + lb + l > s->period_size) in usb_stream_prepare_playback()
316 s->period_size); in usb_stream_prepare_playback()
324 s->idle_outsize += lb - s->period_size; in usb_stream_prepare_playback()
393 for (; p < iu->number_of_packets && l < s->period_size; ++p) { in loop_back()
396 if (l + il > s->period_size) in loop_back()
397 il = s->period_size - l; in loop_back()
[all …]
Dusbusx2yaudio.c111 if (subs->transfer_done >= runtime->period_size) { in usX2Y_urb_capt_retire()
112 subs->transfer_done -= runtime->period_size; in usX2Y_urb_capt_retire()
191 if (subs->transfer_done >= runtime->period_size) { in usX2Y_urb_play_retire()
192 subs->transfer_done -= runtime->period_size; in usX2Y_urb_play_retire()
Dusx2yhwdeppcm.c87 if (subs->transfer_done >= runtime->period_size) { in usX2Y_usbpcm_urb_capt_retire()
88 subs->transfer_done -= runtime->period_size; in usX2Y_usbpcm_urb_capt_retire()
/linux-4.4.14/sound/soc/blackfin/
Dbf5xx-ac97-pcm.c65 sport->tx_pos += runtime->period_size; in bf5xx_mmap_copy()
73 sport->rx_pos += runtime->period_size; in bf5xx_mmap_copy()
86 bf5xx_mmap_copy(pcm, runtime->period_size); in bf5xx_dma_irq()
90 bf5xx_mmap_copy(pcm, runtime->period_size); in bf5xx_dma_irq()
161 runtime->period_size * sizeof(struct ac97_frame)); in bf5xx_pcm_prepare()
165 runtime->period_size * sizeof(struct ac97_frame)); in bf5xx_pcm_prepare()
171 runtime->period_size * sizeof(struct ac97_frame)); in bf5xx_pcm_prepare()
175 runtime->period_size * sizeof(struct ac97_frame)); in bf5xx_pcm_prepare()
192 bf5xx_mmap_copy(substream, runtime->period_size); in bf5xx_pcm_trigger()
Dbf5xx-i2s-pcm.c90 int period_bytes = frames_to_bytes(runtime, runtime->period_size); in bf5xx_pcm_prepare()
/linux-4.4.14/sound/mips/
Dau1x00.c88 unsigned int period_size; member
139 stream->period_size = 0; in au1000_release_dma_link()
164 if (stream->period_size == period_bytes && in au1000_setup_dma_link()
170 stream->period_size = period_bytes; in au1000_setup_dma_link()
211 set_dma_count0(stream->dma, stream->period_size >> 1); in au1000_dma_start()
213 set_dma_count1(stream->dma, stream->period_size >> 1); in au1000_dma_start()
217 set_dma_count1(stream->dma, stream->period_size >> 1); in au1000_dma_start()
219 set_dma_count0(stream->dma, stream->period_size >> 1); in au1000_dma_start()
237 set_dma_count0(stream->dma, stream->period_size >> 1); in au1000_dma_interrupt()
244 set_dma_count1(stream->dma, stream->period_size >> 1); in au1000_dma_interrupt()
Dsgio2audio.c381 ret = chip->channel[ch].size >= runtime->period_size; in snd_sgio2audio_dma_pull_frag()
382 chip->channel[ch].size %= runtime->period_size; in snd_sgio2audio_dma_pull_frag()
429 ret = chip->channel[ch].size >= runtime->period_size; in snd_sgio2audio_dma_push_frag()
430 chip->channel[ch].size %= runtime->period_size; in snd_sgio2audio_dma_push_frag()
/linux-4.4.14/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-4.4.14/sound/soc/fsl/
Dfsl_dma.c108 size_t period_size; member
187 dma_private->dma_buf_next += dma_private->period_size; in fsl_dma_update_pointers()
559 size_t period_size = params_period_bytes(hw_params); in fsl_dma_hw_params() local
572 dma_private->period_size = period_size; in fsl_dma_hw_params()
576 (NUM_DMA_LINKS * period_size); in fsl_dma_hw_params()
646 link->count = cpu_to_be32(period_size); in fsl_dma_hw_params()
683 temp_addr += period_size; in fsl_dma_hw_params()
Dmpc5200_dma.c126 (int)runtime->period_size, runtime->periods); in psc_dma_trigger()
128 runtime->period_size); in psc_dma_trigger()
/linux-4.4.14/drivers/media/pci/cx25821/
Dcx25821-alsa.c90 unsigned int period_size; member
521 chip->period_size = params_period_bytes(hw_params); in snd_cx25821_hw_params()
523 chip->dma_size = chip->period_size * params_periods(hw_params); in snd_cx25821_hw_params()
532 if (chip->period_size > AUDIO_LINE_SIZE) in snd_cx25821_hw_params()
533 chip->period_size = AUDIO_LINE_SIZE; in snd_cx25821_hw_params()
535 buf->bpl = chip->period_size; in snd_cx25821_hw_params()
548 chip->period_size, chip->num_periods, 1); in snd_cx25821_hw_params()
635 return runtime->period_size * (count & (runtime->periods - 1)); in snd_cx25821_pointer()
/linux-4.4.14/drivers/media/pci/cx23885/
Dcx23885-alsa.c383 chip->period_size = params_period_bytes(hw_params); in snd_cx23885_hw_params()
385 chip->dma_size = chip->period_size * params_periods(hw_params); in snd_cx23885_hw_params()
394 buf->bpl = chip->period_size; in snd_cx23885_hw_params()
407 chip->period_size, chip->num_periods, 1); in snd_cx23885_hw_params()
493 return runtime->period_size * (count & (runtime->periods-1)); in snd_cx23885_pointer()
Dcx23885.h344 unsigned int period_size; member
/linux-4.4.14/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()
Dlx_core.c1045 const u32 period_size = substream->runtime->period_size; in lx_interrupt_request_new_buffer() local
1046 const u32 period_bytes = period_size * bytes_per_frame; in lx_interrupt_request_new_buffer()
/linux-4.4.14/drivers/media/pci/saa7134/
Dsaa7134-alsa.c679 unsigned int period_size, periods; in snd_card_saa7134_hw_params() local
682 period_size = params_period_bytes(hw_params); in snd_card_saa7134_hw_params()
685 if (period_size < 0x100 || period_size > 0x10000) in snd_card_saa7134_hw_params()
689 if (period_size * periods > 1024 * 1024) in snd_card_saa7134_hw_params()
695 dev->dmasound.blksize == period_size) in snd_card_saa7134_hw_params()
706 dev->dmasound.blksize = period_size; in snd_card_saa7134_hw_params()
707 dev->dmasound.bufsize = period_size * periods; in snd_card_saa7134_hw_params()
/linux-4.4.14/sound/isa/sb/
Demu8000_pcm.c58 unsigned int period_size; member
213 if (rec->period_pos >= (int)rec->period_size) { in emu8k_pcm_timer_func()
214 rec->period_pos %= rec->period_size; in emu8k_pcm_timer_func()
620 rec->period_size = subs->runtime->period_size; in emu8k_pcm_prepare()
/linux-4.4.14/include/uapi/sound/
Dusb_stream.h45 int period_size; member
/linux-4.4.14/sound/soc/codecs/
Dtlv320dac33.c1065 unsigned int period_size = substream->runtime->period_size; in dac33_calculate_times() local
1080 if (period_size <= dac33->alarm_threshold) in dac33_calculate_times()
1085 dac33->nsample = period_size * in dac33_calculate_times()
1086 ((dac33->alarm_threshold / period_size) + in dac33_calculate_times()
1087 (dac33->alarm_threshold % period_size ? in dac33_calculate_times()
1089 else if (period_size > nsample_limit) in dac33_calculate_times()
1092 dac33->nsample = period_size; in dac33_calculate_times()
1100 dac33->uthr = UTHR_FROM_PERIOD_SIZE(period_size, rate, in dac33_calculate_times()
/linux-4.4.14/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 …]
/linux-4.4.14/include/sound/
Dpcm_oss.h35 unsigned int period_size; member
Dpcm.h360 snd_pcm_uframes_t period_size; /* period size */ member
726 return frames_to_bytes(runtime, runtime->period_size); in snd_pcm_lib_period_bytes()
/linux-4.4.14/drivers/media/pci/cx88/
Dcx88-alsa.c87 unsigned int period_size; member
478 chip->period_size = params_period_bytes(hw_params); in snd_cx88_hw_params()
480 chip->dma_size = chip->period_size * params_periods(hw_params); in snd_cx88_hw_params()
490 buf->bpl = chip->period_size; in snd_cx88_hw_params()
502 chip->period_size, chip->num_periods, 1); in snd_cx88_hw_params()
586 return runtime->period_size * (count & (runtime->periods-1)); in snd_cx88_pointer()
/linux-4.4.14/sound/ppc/
Dpmac.c221 rec->period_size = snd_pcm_lib_period_bytes(subs); in snd_pmac_pcm_prepare()
222 rec->nperiods = rec->dma_size / rec->period_size; in snd_pmac_pcm_prepare()
255 cp->req_count = cpu_to_le16(rec->period_size); in snd_pmac_pcm_prepare()
258 offset += rec->period_size; in snd_pmac_pcm_prepare()
335 count = rec->period_size - count; in snd_pmac_pcm_pointer()
338 count += rec->cur_period * rec->period_size; in snd_pmac_pcm_pointer()
431 cp->req_count = cpu_to_le16(rec->period_size); in snd_pmac_pcm_dead_xfer()
493 cp->req_count = cpu_to_le16(rec->period_size); in snd_pmac_pcm_update()
Dpmac.h69 int period_size; /* in bytes */ member
/linux-4.4.14/sound/pci/cs46xx/
Dcs46xx_lib.h206 int period_size);
207 int cs46xx_dsp_pcm_ostream_set_period (struct snd_cs46xx * chip, int period_size);
Ddsp_spos_scb_lib.c1411 int period_size) in cs46xx_dsp_pcm_channel_set_period() argument
1416 switch (period_size) { in cs46xx_dsp_pcm_channel_set_period()
1440 "period size (%d) not supported by HW\n", period_size); in cs46xx_dsp_pcm_channel_set_period()
1450 int period_size) in cs46xx_dsp_pcm_ostream_set_period() argument
1455 switch (period_size) { in cs46xx_dsp_pcm_ostream_set_period()
1479 "period size (%d) not supported by HW\n", period_size); in cs46xx_dsp_pcm_ostream_set_period()
Dcs46xx_lib.c1101 int period_size = params_period_bytes(hw_params); in snd_cs46xx_playback_hw_params() local
1123 if (cs46xx_dsp_pcm_channel_set_period (chip,cpcm->pcm_channel,period_size)) { in snd_cs46xx_playback_hw_params()
1130 period_size, params_periods(hw_params), in snd_cs46xx_playback_hw_params()
1264 cpcm->pcm_rec.hw_buffer_size = runtime->period_size * CS46XX_FRAGS << cpcm->shift; in snd_cs46xx_playback_prepare()
1343 chip->capt.pcm_rec.hw_buffer_size = runtime->period_size * CS46XX_FRAGS << 2; in snd_cs46xx_capture_prepare()
/linux-4.4.14/drivers/media/pci/cx18/
Dcx18-alsa-pcm.c137 runtime->period_size) { in cx18_alsa_announce_pcm_data()
139 runtime->period_size; in cx18_alsa_announce_pcm_data()
/linux-4.4.14/drivers/media/pci/ivtv/
Divtv-alsa-pcm.c138 runtime->period_size) { in ivtv_alsa_announce_pcm_data()
140 runtime->period_size; in ivtv_alsa_announce_pcm_data()
/linux-4.4.14/drivers/media/usb/go7007/
Dsnd-go7007.c96 if (gosnd->avail < runtime->period_size) { in parse_audio_stream_data()
100 gosnd->avail -= runtime->period_size; in parse_audio_stream_data()
/linux-4.4.14/drivers/media/usb/cx231xx/
Dcx231xx-audio.c165 runtime->period_size) { in cx231xx_audio_isocirq()
167 runtime->period_size; in cx231xx_audio_isocirq()
251 runtime->period_size) { in cx231xx_audio_bulkirq()
253 runtime->period_size; in cx231xx_audio_bulkirq()
/linux-4.4.14/drivers/media/usb/usbtv/
Dusbtv-audio.c162 if (period_pos >= runtime->period_size) { in usbtv_audio_urb_received()
163 period_pos -= runtime->period_size; in usbtv_audio_urb_received()
/linux-4.4.14/sound/soc/xtensa/
Dxtfpga-i2s.c289 unsigned period_size = params_period_size(params); in xtfpga_i2s_hw_params() local
320 i2s->tx_fifo_low / 2 >= period_size * 2 && in xtfpga_i2s_hw_params()
333 __func__, srate, channels, sample_size, period_size); in xtfpga_i2s_hw_params()
/linux-4.4.14/sound/usb/6fire/
Dpcm.c323 if (sub->period_off >= sub->instance->runtime->period_size) { in usb6fire_pcm_in_urb_handler()
324 sub->period_off %= sub->instance->runtime->period_size; in usb6fire_pcm_in_urb_handler()
348 if (sub->period_off >= sub->instance->runtime->period_size) { in usb6fire_pcm_in_urb_handler()
349 sub->period_off %= sub->instance->runtime->period_size; in usb6fire_pcm_in_urb_handler()
/linux-4.4.14/sound/soc/intel/atom/
Dsst-mfld-platform-pcm.c134 snd_pcm_uframes_t period_size; in sst_fill_alloc_params() local
140 period_size = substream->runtime->period_size; in sst_fill_alloc_params()
141 periodbytes = samples_to_bytes(substream->runtime, period_size); in sst_fill_alloc_params()
/linux-4.4.14/sound/spi/
Dat73c213.c260 block_size = frames_to_bytes(runtime, runtime->period_size); in snd_at73c213_pcm_prepare()
267 runtime->period_size * runtime->channels); in snd_at73c213_pcm_prepare()
271 runtime->period_size * runtime->channels); in snd_at73c213_pcm_prepare()
369 block_size = frames_to_bytes(runtime, runtime->period_size); in snd_at73c213_interrupt()
385 runtime->period_size * runtime->channels); in snd_at73c213_interrupt()
/linux-4.4.14/drivers/media/usb/tm6000/
Dtm6000-alsa.c266 if (chip->period_pos >= runtime->period_size) { in tm6000_fillbuf()
267 chip->period_pos -= runtime->period_size; in tm6000_fillbuf()
/linux-4.4.14/sound/pci/ice1712/
Dice1712.c590 u32 period_size, buf_size, rate, tmp; in snd_ice1712_playback_prepare() local
592 period_size = (snd_pcm_lib_period_bytes(substream) >> 2) - 1; in snd_ice1712_playback_prepare()
611 snd_ice1712_write(ice, ICE1712_IREG_PBK_COUNT_LO, period_size & 0xff); in snd_ice1712_playback_prepare()
612 snd_ice1712_write(ice, ICE1712_IREG_PBK_COUNT_HI, period_size >> 8); in snd_ice1712_playback_prepare()
623 u32 period_size, rate, tmp, chn; in snd_ice1712_playback_ds_prepare() local
625 period_size = snd_pcm_lib_period_bytes(substream) - 1; in snd_ice1712_playback_ds_prepare()
639 snd_ice1712_ds_write(ice, chn, ICE1712_DSC_COUNT0, period_size); in snd_ice1712_playback_ds_prepare()
640 …ite(ice, chn, ICE1712_DSC_ADDR1, runtime->dma_addr + (runtime->periods > 1 ? period_size + 1 : 0)); in snd_ice1712_playback_ds_prepare()
641 snd_ice1712_ds_write(ice, chn, ICE1712_DSC_COUNT1, period_size); in snd_ice1712_playback_ds_prepare()
657 u32 period_size, buf_size; in snd_ice1712_capture_prepare() local
[all …]
Dice1724.c831 (int)ptr, (int)substream->runtime->period_size); in snd_vt1724_playback_pro_pointer()
/linux-4.4.14/sound/core/oss/
Dpcm_oss.c728 if (substream->oss.setup.period_size > 16) in snd_pcm_oss_period_size()
729 oss_period_size = substream->oss.setup.period_size; in snd_pcm_oss_period_size()
1009 1 : runtime->period_size; in snd_pcm_oss_change_params()
1016 frames = runtime->period_size + 16; in snd_pcm_oss_change_params()
1166 frames = (*delay - runtime->buffer_size) + runtime->period_size - 1; in snd_pcm_oss_capture_position_fixup()
1167 frames /= runtime->period_size; in snd_pcm_oss_capture_position_fixup()
1168 frames *= runtime->period_size; in snd_pcm_oss_capture_position_fixup()
1649 size = runtime->control->appl_ptr % runtime->period_size; in snd_pcm_oss_sync()
1651 size = runtime->period_size - size; in snd_pcm_oss_sync()
2129 info.blocks = n / runtime->period_size; in snd_pcm_oss_get_ptr()
[all …]
/linux-4.4.14/sound/atmel/
Dac97c.c131 period_len = frames_to_bytes(runtime, runtime->period_size); in atmel_ac97c_prepare_dma()
321 int block_size = frames_to_bytes(runtime, runtime->period_size); in atmel_ac97c_playback_prepare()
412 int block_size = frames_to_bytes(runtime, runtime->period_size); in atmel_ac97c_capture_prepare()
673 runtime->period_size); in atmel_ac97c_interrupt()
695 runtime->period_size); in atmel_ac97c_interrupt()
Dabdac.c136 period_len = frames_to_bytes(runtime, runtime->period_size); in atmel_abdac_prepare_dma()
/linux-4.4.14/drivers/media/pci/cobalt/
Dcobalt-alsa-pcm.c185 runtime->period_size) { in cobalt_alsa_announce_pcm_data()
187 runtime->period_size; in cobalt_alsa_announce_pcm_data()
/linux-4.4.14/sound/pci/emu10k1/
Dp16v.c344 u32 period_size_bytes = frames_to_bytes(runtime, runtime->period_size); in snd_p16v_pcm_prepare_playback()
354 runtime->buffer_size, runtime->period_size, in snd_p16v_pcm_prepare_playback()
565 ptr2+= (ptr4 >> 3) * runtime->period_size; in snd_p16v_pcm_pointer_playback()
Demu10k1x.c460 u32 period_size_bytes = frames_to_bytes(runtime, runtime->period_size); in snd_emu10k1x_pcm_prepare()
476 …1x_ptr_write(emu, PLAYBACK_PERIOD_SIZE, voice, frames_to_bytes(runtime, runtime->period_size)<<16); in snd_emu10k1x_pcm_prepare()
541 ptr2 += (ptr4 >> 3) * runtime->period_size; in snd_emu10k1x_pcm_pointer()
Dmemory.c317 idx = runtime->period_size >= runtime->buffer_size ? in snd_emu10k1_alloc_pages()
Demupcm.c748 period_pos %= runtime->period_size; in snd_emu10k1_playback_mangle_extra()
1679 snd_emu10k1_ptr_write(emu, emu->gpr_base + pcm->gpr_count, 0, runtime->period_size); in snd_emu10k1_fx8010_playback_prepare()
1680 snd_emu10k1_ptr_write(emu, emu->gpr_base + pcm->gpr_tmpcount, 0, runtime->period_size); in snd_emu10k1_fx8010_playback_prepare()
/linux-4.4.14/sound/usb/hiface/
Dpcm.c301 if (sub->period_off >= alsa_rt->period_size) { in hiface_pcm_playback()
302 sub->period_off %= alsa_rt->period_size; in hiface_pcm_playback()
/linux-4.4.14/sound/pci/ca0106/
Dca0106_main.c762 u32 period_size_bytes = frames_to_bytes(runtime, runtime->period_size); in snd_ca0106_pcm_prepare_playback()
782 runtime->period_size, runtime->periods, in snd_ca0106_pcm_prepare_playback()
849 …(emu, PLAYBACK_PERIOD_SIZE, channel, frames_to_bytes(runtime, runtime->period_size)<<16); // buffe… in snd_ca0106_pcm_prepare_playback()
889 runtime->period_size, runtime->periods, in snd_ca0106_pcm_prepare_capture()
1070 ptr = (ptr >> 3) * runtime->period_size; in snd_ca0106_pcm_pointer_playback()
/linux-4.4.14/drivers/usb/gadget/function/
Df_uac2.c78 size_t period_size; member
227 pending = prm->hw_ptr % prm->period_size; in agdev_iso_complete()
229 if (pending >= prm->period_size) in agdev_iso_complete()
338 prm->period_size = params_period_bytes(hw_params); in uac2_pcm_hw_params()
356 prm->period_size = 0; in uac2_pcm_hw_free()
/linux-4.4.14/sound/hda/
Dhdac_stream.c196 if (runtime && runtime->period_size > 64) in snd_hdac_stream_setup()
204 azx_dev->period_wallclk = (((runtime->period_size * 24000) / in snd_hdac_stream_setup()
/linux-4.4.14/drivers/staging/most/aim-sound/
Dsound.c212 if (channel->period_pos >= runtime->period_size) { in copy_data()
213 channel->period_pos -= runtime->period_size; in copy_data()
/linux-4.4.14/sound/pcmcia/pdaudiocf/
Dpdaudiocf_pcm.c185 chip->pcm_period = runtime->period_size; in pdacf_pcm_prepare()
/linux-4.4.14/sound/pci/ymfpci/
Dymfpci_main.c322 if (ypcm->period_pos >= ypcm->period_size) { in snd_ymfpci_pcm_interrupt()
329 ypcm->period_pos %= ypcm->period_size; in snd_ymfpci_pcm_interrupt()
374 if (ypcm->period_pos >= ypcm->period_size) { in snd_ymfpci_pcm_capture_interrupt()
375 ypcm->period_pos %= ypcm->period_size; in snd_ymfpci_pcm_capture_interrupt()
684 ypcm->period_size = runtime->period_size; in snd_ymfpci_playback_prepare()
724 ypcm->period_size = runtime->period_size; in snd_ymfpci_capture_prepare()
Dymfpci.h278 u32 period_size; /* cached from runtime->period_size */ member
/linux-4.4.14/sound/firewire/
Damdtp-stream.c350 if (s->pcm_period_pointer >= pcm->runtime->period_size) { in update_pcm_pointers()
351 s->pcm_period_pointer -= pcm->runtime->period_size; in update_pcm_pointers()
Disight.c102 if (isight->period_counter >= runtime->period_size) { in isight_update_pointers()
103 isight->period_counter -= runtime->period_size; in isight_update_pointers()
/linux-4.4.14/sound/drivers/vx/
Dvx_pcm.c720 if (pipe->transferred >= (int)runtime->period_size) { in vx_pcm_playback_update()
721 pipe->transferred %= runtime->period_size; in vx_pcm_playback_update()
858 pipe->period_bytes = frames_to_bytes(runtime, runtime->period_size); in vx_pcm_prepare()
/linux-4.4.14/sound/pci/nm256/
Dnm256.c200 int period_size; /* period size in bytes */ member
505 snd_nm256_writel(chip, reg, s->buf + s->cur_period * s->period_size); in snd_nm256_pcm_mark()
646 s->period_size = frames_to_bytes(runtime, substream->runtime->period_size); in snd_nm256_pcm_prepare()
/linux-4.4.14/sound/usb/misc/
Dua101.c245 if (stream->period_pos >= runtime->period_size) { in copy_playback_data()
246 stream->period_pos -= runtime->period_size; in copy_playback_data()
350 if (stream->period_pos >= runtime->period_size) { in copy_capture_data()
351 stream->period_pos -= runtime->period_size; in copy_capture_data()
/linux-4.4.14/sound/pci/rme9652/
Drme9652.c372 snd_pcm_uframes_t period_size = rme9652->period_bytes / 4; in rme9652_hw_pointer() local
377 return (status & RME9652_buffer_id) ? period_size : 0; in rme9652_hw_pointer()
394 if (offset < period_size) { in rme9652_hw_pointer()
404 offset += period_size * 2; in rme9652_hw_pointer()
406 if (offset > period_size + rme9652->max_jitter) { in rme9652_hw_pointer()
412 return period_size; in rme9652_hw_pointer()
/linux-4.4.14/sound/sparc/
Dcs4231.c429 unsigned int period_size = snd_pcm_lib_period_bytes(substream); in snd_cs4231_advance_dma() local
430 unsigned int offset = period_size * (*periods_sent); in snd_cs4231_advance_dma()
432 if (WARN_ON(period_size >= (1 << 24))) in snd_cs4231_advance_dma()
436 runtime->dma_addr + offset, period_size)) in snd_cs4231_advance_dma()
917 if (WARN_ON(runtime->period_size > 0xffff + 1)) { in snd_cs4231_playback_prepare()
/linux-4.4.14/sound/pci/riptide/
Driptide.c1133 runtime->period_size); in riptide_handleirq()
1138 runtime->period_size); in riptide_handleirq()
1368 if (data->size && runtime->period_size) { in snd_riptide_pointer()
1374 rptr.retlongs[1]) % runtime->period_size); in snd_riptide_pointer()
1385 data->size, runtime->period_size); in snd_riptide_pointer()
1495 period = frames_to_bytes(runtime, runtime->period_size); in snd_riptide_prepare()
/linux-4.4.14/sound/sh/
Dsh_dac_audio.c318 ssize_t b_ps = frames_to_bytes(runtime, runtime->period_size); in sh_dac_audio_timer()
/linux-4.4.14/sound/usb/
Dpcm.c1306 if (subs->transfer_done >= runtime->period_size) { in retire_capture_urb()
1307 subs->transfer_done -= runtime->period_size; in retire_capture_urb()
1468 if (subs->transfer_done >= runtime->period_size) { in prepare_playback_urb()
1469 subs->transfer_done -= runtime->period_size; in prepare_playback_urb()
/linux-4.4.14/drivers/media/usb/em28xx/
Dem28xx-audio.c152 runtime->period_size) { in em28xx_audio_isocirq()
154 runtime->period_size; in em28xx_audio_isocirq()
/linux-4.4.14/sound/pci/pcxhr/
Dpcxhr_core.c1180 runtime->period_size)) { in pcxhr_update_timer_pos()
1203 runtime->period_size; in pcxhr_update_timer_pos()
Dpcxhr.c922 subs->runtime->period_size, subs->runtime->periods, in pcxhr_prepare()
1144 return (snd_pcm_uframes_t)((timer_buf_periods * runtime->period_size) + in pcxhr_stream_pointer()
/linux-4.4.14/sound/drivers/
Ddummy.c302 dpcm->frac_period_size = runtime->period_size * HZ; in dummy_systimer_prepare()
450 period = runtime->period_size; in dummy_hrtimer_prepare()
Daloop.c364 dpcm->pcm_period_size = frames_to_bytes(runtime, runtime->period_size); in loopback_prepare()
/linux-4.4.14/sound/pci/mixart/
Dmixart_core.c491 u64 new_elapse_pos = stream->abs_period_elapsed + runtime->period_size; in snd_mixart_threaded_irq()
Dmixart.c920 return (snd_pcm_uframes_t)((stream->buf_periods * runtime->period_size) + stream->buf_period_frag); in snd_mixart_stream_pointer()
/linux-4.4.14/drivers/gpu/drm/bridge/
Ddw_hdmi-ahb-audio.c489 substream->runtime->delay = substream->runtime->period_size; in dw_hdmi_trigger()
/linux-4.4.14/sound/soc/davinci/
Ddavinci-mcasp.c1026 int period_size = params_period_size(params); in davinci_mcasp_hw_params() local
1052 period_size * channels, channels); in davinci_mcasp_hw_params()
/linux-4.4.14/sound/pci/ali5451/
Dali5451.c1250 pvoice->count = runtime->period_size; in snd_ali_playback_prepare()
1361 pvoice->count = runtime->period_size; in snd_ali_prepare()
/linux-4.4.14/sound/aoa/soundbus/i2sbus/
Dpcm.c672 nframes = i * runtime->period_size; in handle_interrupt()
/linux-4.4.14/sound/soc/mediatek/
Dmtk-afe-pcm.c693 unsigned int counter = runtime->period_size; in mtk_afe_dais_trigger()
/linux-4.4.14/sound/soc/sh/rcar/
Dcore.c437 io->byte_per_period = runtime->period_size * in rsnd_dai_stream_init()
/linux-4.4.14/sound/soc/sh/
Dfsi.c535 io->period_samples = fsi_frame2sample(fsi, runtime->period_size); in fsi_stream_init()
/linux-4.4.14/sound/pci/echoaudio/
Dechoaudio.c1841 substream->runtime->period_size; in snd_echo_interrupt()