Home
last modified time | relevance | path

Searched refs:period (Results 1 – 25 of 26) 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.c1136 int period) in aiodma_rb_set_buffer() argument
1142 if (end < start || period < 0) in aiodma_rb_set_buffer()
1157 ret = aiodma_rb_set_threshold(sub, size, 2 * period); in aiodma_rb_set_buffer()
1163 aiodma_rb_set_wp(sub, end - period); in aiodma_rb_set_buffer()
1169 aiodma_rb_set_rp(sub, end - period); in aiodma_rb_set_buffer()
1177 sub->threshold = 2 * period; in aiodma_rb_set_buffer()
1189 int period) in aiodma_rb_sync() argument
1195 sub->threshold = 2 * period; in aiodma_rb_sync()
1196 aiodma_rb_set_threshold(sub, size, 2 * period); in aiodma_rb_sync()
1198 sub->wr_offs = sub->rd_offs - period; in aiodma_rb_sync()
[all …]
Daio.h348 int period);
350 int period);
/sound/ppc/
Dbeep.c94 int period, ncycles, nsamples; in snd_pmac_beep_event() local
136 period = srate * 256 / hz; /* fixed point */ in snd_pmac_beep_event()
137 ncycles = BEEP_BUFLEN * 256 / period; in snd_pmac_beep_event()
138 nsamples = (period * ncycles) >> 8; in snd_pmac_beep_event()
/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/fsl/
Dimx-pcm-fiq.c34 unsigned int period; member
79 iprtd->period = params_period_bytes(params); in snd_imx_pcm_hw_params()
96 regs.ARM_r8 = (iprtd->period * iprtd->periods - 1) << 16; in snd_imx_pcm_prepare()
98 regs.ARM_r9 = (iprtd->period * iprtd->periods - 1) << 16; in snd_imx_pcm_prepare()
/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.c203 size_t period = params_period_bytes(params); in sprd_pcm_hw_params() local
229 sg_num = totsize / period; in sprd_pcm_hw_params()
263 u32 sg_len = period / channels; in sprd_pcm_hw_params()
/sound/soc/samsung/
Didma.c44 dma_addr_t period; member
157 prtd->period = params_periods(params); in idma_hw_params()
275 prtd->cb(prtd->token, prtd->period); in iis_irq()
/sound/spi/
Dat73c213.c67 int period; member
262 chip->period = 0; in snd_at73c213_pcm_prepare()
373 chip->period++; in snd_at73c213_interrupt()
374 if (chip->period == runtime->periods) in snd_at73c213_interrupt()
375 chip->period = 0; in snd_at73c213_interrupt()
376 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.c369 pstr->period = params_period_bytes(hw_params); in snd_line6_hw_params()
/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()
548 aacirun->period = snd_pcm_lib_period_bytes(substream); in aaci_pcm_prepare()
552 aacirun->bytes = aacirun->period; in aaci_pcm_prepare()
/sound/drivers/
Ddummy.c430 unsigned int period, rate; in dummy_hrtimer_prepare() local
435 period = runtime->period_size; in dummy_hrtimer_prepare()
437 sec = period / rate; in dummy_hrtimer_prepare()
438 period %= rate; in dummy_hrtimer_prepare()
439 nsecs = div_u64((u64)period * 1000000000UL + rate - 1, rate); in dummy_hrtimer_prepare()
/sound/pci/rme9652/
Dhdspm.c1562 static u64 hdspm_calc_dds_value(struct hdspm *hdspm, u64 period) in hdspm_calc_dds_value() argument
1566 if (period == 0) in hdspm_calc_dds_value()
1586 return div_u64(freq_const, period); in hdspm_calc_dds_value()
2191 unsigned int period, rate; in hdspm_get_pll_freq() local
2193 period = hdspm_read(hdspm, HDSPM_RD_PLL_FREQ); in hdspm_get_pll_freq()
2194 rate = hdspm_calc_dds_value(hdspm, period); in hdspm_get_pll_freq()
4754 unsigned int period; in snd_hdspm_proc_read_tco() local
4818 period = hdspm_read(hdspm, HDSPM_RD_PLL_FREQ); in snd_hdspm_proc_read_tco()
4819 snd_iprintf(buffer, " period: %u\n", period); in snd_hdspm_proc_read_tco()
4823 rate = div_u64(freq_const, period); in snd_hdspm_proc_read_tco()
/sound/pci/echoaudio/
Dechoaudio.c1813 int period, ss, st; in snd_echo_interrupt() local
1827 period = pcm_pointer(substream) / in snd_echo_interrupt()
1829 if (period != chip->last_period[ss]) { in snd_echo_interrupt()
1830 chip->last_period[ss] = period; in snd_echo_interrupt()
/sound/soc/sunxi/
Dsun4i-i2s.c103 #define SUN8I_I2S_FMT0_LRCK_PERIOD(period) ((period - 1) << 8) argument
/sound/pci/riptide/
Driptide.c1476 unsigned int i, j, size, pages, f, pt, period; in snd_riptide_prepare() local
1480 period = frames_to_bytes(runtime, runtime->period_size); in snd_riptide_prepare()
1482 while ((size + (f >> 1) - 1) <= (f << 7) && (f << 1) > period) in snd_riptide_prepare()
1489 size, pages, f, period); in snd_riptide_prepare()
/sound/pci/
Dsis7019.c192 static void sis_update_sso(struct voice *voice, u16 period) in sis_update_sso() argument
196 voice->sso += period; in sis_update_sso()
/sound/sparc/
Ddbri.c1086 static int setup_descs(struct snd_dbri *dbri, int streamno, unsigned int period) in setup_descs() argument
1168 if (mylen > period) in setup_descs()
1169 mylen = period; in setup_descs()
/sound/pci/au88x0/
Dau88x0_core.c2367 static void vortex_settimer(vortex_t * vortex, int period) in vortex_settimer() argument
2370 hwwrite(vortex->mmio, VORTEX_IRQ_STAT, period); in vortex_settimer()

12