/sound/oss/dmasound/ |
D | dmasound_paula.c | 360 int period, i; in AmiInit() local 365 period = amiga_colorclock/dmasound.soft.speed-1; in AmiInit() 367 period = amiga_audio_min_period; in AmiInit() 371 if (period < amiga_audio_min_period) { in AmiInit() 373 period = amiga_audio_min_period; in AmiInit() 374 } else if (period > 65535) { in AmiInit() 375 period = 65535; in AmiInit() 377 dmasound.hard.speed = amiga_colorclock/(period+1); in AmiInit() 380 custom.aud[i].audper = period; in AmiInit() 381 amiga_audio_period = period; in AmiInit()
|
/sound/soc/uniphier/ |
D | aio-core.c | 1135 int period) in aiodma_rb_set_buffer() argument 1141 if (end < start || period < 0) in aiodma_rb_set_buffer() 1156 ret = aiodma_rb_set_threshold(sub, size, 2 * period); in aiodma_rb_set_buffer() 1162 aiodma_rb_set_wp(sub, end - period); in aiodma_rb_set_buffer() 1168 aiodma_rb_set_rp(sub, end - period); in aiodma_rb_set_buffer() 1176 sub->threshold = 2 * period; in aiodma_rb_set_buffer() 1188 int period) in aiodma_rb_sync() argument 1194 sub->threshold = 2 * period; in aiodma_rb_sync() 1195 aiodma_rb_set_threshold(sub, size, 2 * period); in aiodma_rb_sync() 1197 sub->wr_offs = sub->rd_offs - period; in aiodma_rb_sync() [all …]
|
D | aio.h | 346 int period); 348 int period);
|
/sound/ppc/ |
D | beep.c | 94 int period, ncycles, nsamples; in snd_pmac_beep_event() local 139 period = srate * 256 / hz; /* fixed point */ in snd_pmac_beep_event() 140 ncycles = BEEP_BUFLEN * 256 / period; in snd_pmac_beep_event() 141 nsamples = (period * ncycles) >> 8; in snd_pmac_beep_event()
|
/sound/soc/fsl/ |
D | imx-pcm-fiq.c | 34 unsigned int period; member 80 iprtd->period = params_period_bytes(params); in snd_imx_pcm_hw_params() 97 regs.ARM_r8 = (iprtd->period * iprtd->periods - 1) << 16; in snd_imx_pcm_prepare() 99 regs.ARM_r9 = (iprtd->period * iprtd->periods - 1) << 16; in snd_imx_pcm_prepare()
|
/sound/xen/ |
D | xen_snd_front_alsa.c | 267 struct snd_interval *period = in alsa_hw_rule() local 294 req.period.min = period->min; in alsa_hw_rule() 295 req.period.max = period->max; in alsa_hw_rule() 343 interval.min = resp.period.min; in alsa_hw_rule() 344 interval.max = resp.period.max; in alsa_hw_rule() 345 ret = snd_interval_refine(period, &interval); in alsa_hw_rule()
|
/sound/soc/meson/ |
D | axg-fifo.c | 116 unsigned int burst_num, period, threshold, irq_en; in axg_fifo_pcm_hw_params() local 119 period = params_period_bytes(params); in axg_fifo_pcm_hw_params() 127 burst_num = period / AXG_FIFO_BURST; in axg_fifo_pcm_hw_params() 135 threshold = min(period / 2, fifo->depth / 2); in axg_fifo_pcm_hw_params()
|
D | axg-frddr.c | 55 unsigned int period, depth, val; in axg_frddr_dai_hw_params() local 57 period = params_period_bytes(params); in axg_frddr_dai_hw_params() 60 depth = min(period, fifo->depth); in axg_frddr_dai_hw_params()
|
/sound/soc/sprd/ |
D | sprd-pcm-compress.c | 146 int period, period_cnt, sg_num = 2; in sprd_platform_compr_dma_config() local 172 period = (SPRD_COMPR_MCDT_FIFO_SIZE - SPRD_COMPR_MCDT_EMPTY_WMK) * 4; in sprd_platform_compr_dma_config() 173 period_cnt = params->buffer.fragment_size / period; in sprd_platform_compr_dma_config() 184 period = params->buffer.fragment_size; in sprd_platform_compr_dma_config() 199 dma->trans_len = period * period_cnt; in sprd_platform_compr_dma_config() 201 config.src_maxburst = period; in sprd_platform_compr_dma_config()
|
D | sprd-pcm-dma.h | 31 u32 period; member
|
D | sprd-pcm-dma.c | 196 size_t period = params_period_bytes(params); in sprd_pcm_hw_params() local 218 sg_num = totsize / period; in sprd_pcm_hw_params() 252 u32 sg_len = period / channels; in sprd_pcm_hw_params()
|
/sound/soc/samsung/ |
D | idma.c | 44 dma_addr_t period; member 158 prtd->period = params_periods(params); in idma_hw_params() 281 prtd->cb(prtd->token, prtd->period); in iis_irq()
|
/sound/spi/ |
D | at73c213.c | 67 int period; member 258 chip->period = 0; in snd_at73c213_pcm_prepare() 367 chip->period++; in snd_at73c213_interrupt() 368 if (chip->period == runtime->periods) in snd_at73c213_interrupt() 369 chip->period = 0; in snd_at73c213_interrupt() 370 next_period = chip->period + 1; in snd_at73c213_interrupt()
|
/sound/usb/line6/ |
D | pcm.h | 109 unsigned period; member
|
D | capture.c | 134 if (line6pcm->in.bytes >= line6pcm->in.period) { in line6_capture_check_period() 135 line6pcm->in.bytes %= line6pcm->in.period; in line6_capture_check_period()
|
D | playback.c | 358 if (line6pcm->out.bytes >= line6pcm->out.period) { in audio_out_callback() 359 line6pcm->out.bytes %= line6pcm->out.period; in audio_out_callback()
|
D | pcm.c | 362 pstr->period = params_period_bytes(hw_params); in snd_line6_hw_params()
|
/sound/drivers/ |
D | dummy.c | 429 unsigned int period, rate; in dummy_hrtimer_prepare() local 434 period = runtime->period_size; in dummy_hrtimer_prepare() 436 sec = period / rate; in dummy_hrtimer_prepare() 437 period %= rate; in dummy_hrtimer_prepare() 438 nsecs = div_u64((u64)period * 1000000000UL + rate - 1, rate); in dummy_hrtimer_prepare()
|
/sound/arm/ |
D | aaci.h | 210 unsigned int period; /* byte size of a "period" */ member
|
D | aaci.c | 227 aacirun->bytes += aacirun->period; in aaci_fifo_irq() 287 aacirun->bytes += aacirun->period; in aaci_fifo_irq() 538 aacirun->period = snd_pcm_lib_period_bytes(substream); in aaci_pcm_prepare() 542 aacirun->bytes = aacirun->period; in aaci_pcm_prepare()
|
/sound/pci/rme9652/ |
D | hdspm.c | 1565 static u64 hdspm_calc_dds_value(struct hdspm *hdspm, u64 period) in hdspm_calc_dds_value() argument 1569 if (period == 0) in hdspm_calc_dds_value() 1589 return div_u64(freq_const, period); in hdspm_calc_dds_value() 2194 unsigned int period, rate; in hdspm_get_pll_freq() local 2196 period = hdspm_read(hdspm, HDSPM_RD_PLL_FREQ); in hdspm_get_pll_freq() 2197 rate = hdspm_calc_dds_value(hdspm, period); in hdspm_get_pll_freq() 4749 unsigned int period; in snd_hdspm_proc_read_tco() local 4813 period = hdspm_read(hdspm, HDSPM_RD_PLL_FREQ); in snd_hdspm_proc_read_tco() 4814 snd_iprintf(buffer, " period: %u\n", period); in snd_hdspm_proc_read_tco() 4818 rate = div_u64(freq_const, period); in snd_hdspm_proc_read_tco()
|
/sound/pci/riptide/ |
D | riptide.c | 1482 unsigned int i, j, size, pages, f, pt, period; in snd_riptide_prepare() local 1486 period = frames_to_bytes(runtime, runtime->period_size); in snd_riptide_prepare() 1488 while ((size + (f >> 1) - 1) <= (f << 7) && (f << 1) > period) in snd_riptide_prepare() 1495 size, pages, f, period); in snd_riptide_prepare()
|
/sound/soc/sunxi/ |
D | sun4i-i2s.c | 106 #define SUN8I_I2S_FMT0_LRCK_PERIOD(period) ((period - 1) << 8) argument
|
/sound/pci/ |
D | sis7019.c | 191 static void sis_update_sso(struct voice *voice, u16 period) in sis_update_sso() argument 195 voice->sso += period; in sis_update_sso()
|
/sound/sparc/ |
D | dbri.c | 1085 static int setup_descs(struct snd_dbri *dbri, int streamno, unsigned int period) in setup_descs() argument 1167 if (mylen > period) in setup_descs() 1168 mylen = period; in setup_descs()
|