/sound/pci/ctxfi/ |
D | cttimer.c | 72 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/core/ |
D | pcm_trace.h | 20 __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,
|
D | pcm_timer.c | 44 fsize = runtime->period_size; in snd_pcm_timer_resolution_change() 58 runtime->rate, runtime->period_size); in snd_pcm_timer_resolution_change()
|
/sound/pci/ |
D | sis7019.c | 88 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/ |
D | dma.c | 34 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/ |
D | atmel-pcm-pdc.c | 155 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()
|
/sound/usb/usx2y/ |
D | usb_stream.c | 41 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 …]
|
/sound/soc/blackfin/ |
D | bf5xx-ac97-pcm.c | 65 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/pci/aw2/ |
D | aw2-saa7146.h | 55 unsigned long period_size, 60 unsigned long period_size,
|
D | aw2-saa7146.c | 157 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()
|
D | aw2-alsa.c | 447 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()
|
/sound/soc/fsl/ |
D | fsl_dma.c | 108 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()
|
/sound/pci/lx6464es/ |
D | lx6464es.c | 113 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/ |
D | emu8000_pcm.c | 58 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()
|
/sound/soc/codecs/ |
D | tlv320dac33.c | 1063 unsigned int period_size = substream->runtime->period_size; in dac33_calculate_times() local 1078 if (period_size <= dac33->alarm_threshold) in dac33_calculate_times() 1083 dac33->nsample = period_size * in dac33_calculate_times() 1084 ((dac33->alarm_threshold / period_size) + in dac33_calculate_times() 1085 (dac33->alarm_threshold % period_size ? in dac33_calculate_times() 1087 else if (period_size > nsample_limit) in dac33_calculate_times() 1090 dac33->nsample = period_size; in dac33_calculate_times() 1098 dac33->uthr = UTHR_FROM_PERIOD_SIZE(period_size, rate, in dac33_calculate_times()
|
/sound/pci/trident/ |
D | trident_main.c | 741 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 …]
|
/sound/soc/dwc/ |
D | designware_pcm.c | 30 unsigned int period_pos = tx_ptr % runtime->period_size; \ 40 *period_elapsed = period_pos >= runtime->period_size; \
|
/sound/ppc/ |
D | pmac.c | 220 rec->period_size = snd_pcm_lib_period_bytes(subs); in snd_pmac_pcm_prepare() 221 rec->nperiods = rec->dma_size / rec->period_size; in snd_pmac_pcm_prepare() 254 cp->req_count = cpu_to_le16(rec->period_size); in snd_pmac_pcm_prepare() 257 offset += rec->period_size; in snd_pmac_pcm_prepare() 334 count = rec->period_size - count; in snd_pmac_pcm_pointer() 337 count += rec->cur_period * rec->period_size; in snd_pmac_pcm_pointer() 430 cp->req_count = cpu_to_le16(rec->period_size); in snd_pmac_pcm_dead_xfer() 492 cp->req_count = cpu_to_le16(rec->period_size); in snd_pmac_pcm_update()
|
/sound/pci/cs46xx/ |
D | cs46xx_lib.h | 206 int period_size); 207 int cs46xx_dsp_pcm_ostream_set_period (struct snd_cs46xx * chip, int period_size);
|
D | dsp_spos_scb_lib.c | 1411 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/xtensa/ |
D | xtfpga-i2s.c | 289 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()
|
/sound/spi/ |
D | at73c213.c | 263 block_size = frames_to_bytes(runtime, runtime->period_size); in snd_at73c213_pcm_prepare() 270 runtime->period_size * runtime->channels); in snd_at73c213_pcm_prepare() 274 runtime->period_size * runtime->channels); in snd_at73c213_pcm_prepare() 372 block_size = frames_to_bytes(runtime, runtime->period_size); in snd_at73c213_interrupt() 388 runtime->period_size * runtime->channels); in snd_at73c213_interrupt()
|
/sound/usb/6fire/ |
D | pcm.c | 323 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()
|
/sound/soc/intel/atom/ |
D | sst-mfld-platform-pcm.c | 135 snd_pcm_uframes_t period_size; in sst_fill_alloc_params() local 141 period_size = substream->runtime->period_size; in sst_fill_alloc_params() 142 periodbytes = samples_to_bytes(substream->runtime, period_size); in sst_fill_alloc_params()
|
/sound/pci/ice1712/ |
D | ice1712.c | 590 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 …]
|