Home
last modified time | relevance | path

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

123

/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 …]
/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 …]
/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()
/sound/soc/atmel/
Datmel-pcm-pdc.c76 size_t period_size; member
102 prtd->period_ptr += prtd->period_size; in atmel_pcm_dma_irq()
109 prtd->period_size / params->pdc_xfer_size); in atmel_pcm_dma_irq()
116 prtd->period_ptr += prtd->period_size; in atmel_pcm_dma_irq()
123 prtd->period_size / params->pdc_xfer_size); in atmel_pcm_dma_irq()
151 prtd->period_size = params_period_bytes(params); in atmel_pcm_hw_params()
158 prtd->period_size); in atmel_pcm_hw_params()
207 prtd->period_size / params->pdc_xfer_size); in atmel_pcm_trigger()
209 prtd->period_ptr += prtd->period_size; in atmel_pcm_trigger()
213 prtd->period_size / params->pdc_xfer_size); in atmel_pcm_trigger()
/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()
209 sk->s->period_size = frame_size * period_frames; in usb_stream_new()
302 if (s->idle_outsize + lb + l > s->period_size) in usb_stream_prepare_playback()
318 s->period_size); in usb_stream_prepare_playback()
326 s->idle_outsize += lb - s->period_size; in usb_stream_prepare_playback()
395 for (; p < iu->number_of_packets && l < s->period_size; ++p) { in loop_back()
398 if (l + il > s->period_size) in loop_back()
399 il = s->period_size - l; in loop_back()
[all …]
Dusb_stream.h42 int period_size; member
/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()
/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()
/sound/soc/fsl/
Dfsl_dma.c108 size_t period_size; member
194 dma_private->dma_buf_next += dma_private->period_size; in fsl_dma_update_pointers()
566 size_t period_size = params_period_bytes(hw_params); in fsl_dma_hw_params() local
579 dma_private->period_size = period_size; in fsl_dma_hw_params()
583 (NUM_DMA_LINKS * period_size); in fsl_dma_hw_params()
653 link->count = cpu_to_be32(period_size); in fsl_dma_hw_params()
690 temp_addr += period_size; in fsl_dma_hw_params()
/sound/pci/aw2/
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-saa7146.h55 unsigned long period_size,
60 unsigned long period_size,
Daw2-alsa.c449 unsigned long period_size, buffer_size; in snd_aw2_pcm_prepare_playback() local
453 period_size = snd_pcm_lib_period_bytes(substream); in snd_aw2_pcm_prepare_playback()
458 runtime->dma_addr, period_size, in snd_aw2_pcm_prepare_playback()
478 unsigned long period_size, buffer_size; in snd_aw2_pcm_prepare_capture() local
482 period_size = snd_pcm_lib_period_bytes(substream); in snd_aw2_pcm_prepare_capture()
487 runtime->dma_addr, period_size, in snd_aw2_pcm_prepare_capture()
/sound/core/
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.c198 snd_pcm_uframes_t period_size; member
230 entry->period_size = runtime->period_size; in xrun_log()
252 if (entry->period_size == 0) in xrun_log_show()
259 (unsigned long)entry->period_size, in xrun_log_show()
350 runtime->period_size); in snd_pcm_update_hw_ptr0()
362 delta = runtime->hw_ptr_interrupt + runtime->period_size; in snd_pcm_update_hw_ptr0()
400 (unsigned int)runtime->period_size, in snd_pcm_update_hw_ptr0()
433 if (delta >= runtime->buffer_size + runtime->period_size) { in snd_pcm_update_hw_ptr0()
461 (((runtime->period_size * HZ) / runtime->rate) in snd_pcm_update_hw_ptr0()
469 new_hw_ptr += runtime->period_size; in snd_pcm_update_hw_ptr0()
[all …]
/sound/soc/davinci/
Ddavinci-pcm.c147 unsigned int period_size; in davinci_pcm_enqueue_dma() local
158 period_size = snd_pcm_lib_period_bytes(substream); in davinci_pcm_enqueue_dma()
159 dma_offset = prtd->period * period_size; in davinci_pcm_enqueue_dma()
165 period_size); in davinci_pcm_enqueue_dma()
168 count = period_size / data_type; in davinci_pcm_enqueue_dma()
628 unsigned int period_size = snd_pcm_lib_period_bytes(substream); in davinci_pcm_pointer() local
643 asp_count *= period_size; in davinci_pcm_pointer()
/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()
/sound/isa/sb/
Demu8000_pcm.c58 unsigned int period_size; member
214 if (rec->period_pos >= (int)rec->period_size) { in emu8k_pcm_timer_func()
215 rec->period_pos %= rec->period_size; in emu8k_pcm_timer_func()
624 rec->period_size = subs->runtime->period_size; in emu8k_pcm_prepare()
/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()
/sound/pci/trident/
Dtrident_main.c742 unsigned int period_size) in snd_trident_spurious_threshold() argument
744 unsigned int res = (rate * period_size) / 48000; in snd_trident_spurious_threshold()
960 voice->spurious_threshold = snd_trident_spurious_threshold(runtime->rate, runtime->period_size); in snd_trident_playback_prepare()
995 evoice->ESO = (runtime->period_size * 2) + 4 - 1; /* in samples */ in snd_trident_playback_prepare()
1013 evoice->isync_mark = runtime->period_size; in snd_trident_playback_prepare()
1014 evoice->ESO = (runtime->period_size * 2) - 1; in snd_trident_playback_prepare()
1105 voice->spurious_threshold = snd_trident_spurious_threshold(runtime->rate, runtime->period_size); in snd_trident_capture_prepare()
1107 voice->isync_mark = runtime->period_size; in snd_trident_capture_prepare()
1112 voice->ESO = voice->isync_ESO = (runtime->period_size * 2) + 6 - 1; in snd_trident_capture_prepare()
1202 voice->spurious_threshold = snd_trident_spurious_threshold(runtime->rate, runtime->period_size); in snd_trident_si7018_capture_prepare()
[all …]
/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 st_le16(&cp->req_count, 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 st_le16(&cp->req_count, rec->period_size); in snd_pmac_pcm_dead_xfer()
493 st_le16(&cp->req_count, rec->period_size); in snd_pmac_pcm_update()
/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()
/sound/soc/intel/
Dsst-mfld-platform-pcm.c159 snd_pcm_uframes_t period_size; in sst_fill_alloc_params() local
165 period_size = substream->runtime->period_size; in sst_fill_alloc_params()
166 periodbytes = samples_to_bytes(substream->runtime, period_size); in sst_fill_alloc_params()
/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()
/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()

123