Home
last modified time | relevance | path

Searched refs:period (Results 1 – 25 of 27) sorted by relevance

12

/sound/oss/dmasound/
Ddmasound_paula.c360 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/
Daio-core.c1135 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 …]
Daio.h346 int period);
348 int period);
/sound/ppc/
Dbeep.c94 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/
Dimx-pcm-fiq.c34 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/
Dxen_snd_front_alsa.c267 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/
Daxg-fifo.c116 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()
Daxg-frddr.c55 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/
Dsprd-pcm-compress.c146 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()
Dsprd-pcm-dma.h31 u32 period; member
Dsprd-pcm-dma.c196 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/
Didma.c44 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/
Dat73c213.c67 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/
Dpcm.h109 unsigned period; member
Dcapture.c134 if (line6pcm->in.bytes >= line6pcm->in.period) { in line6_capture_check_period()
135 line6pcm->in.bytes %= line6pcm->in.period; in line6_capture_check_period()
Dplayback.c358 if (line6pcm->out.bytes >= line6pcm->out.period) { in audio_out_callback()
359 line6pcm->out.bytes %= line6pcm->out.period; in audio_out_callback()
Dpcm.c362 pstr->period = params_period_bytes(hw_params); in snd_line6_hw_params()
/sound/drivers/
Ddummy.c429 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/
Daaci.h210 unsigned int period; /* byte size of a "period" */ member
Daaci.c227 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/
Dhdspm.c1565 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/
Driptide.c1482 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/
Dsun4i-i2s.c106 #define SUN8I_I2S_FMT0_LRCK_PERIOD(period) ((period - 1) << 8) argument
/sound/pci/
Dsis7019.c191 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/
Ddbri.c1085 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()

12