/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 | 1136 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 …]
|
D | aio.h | 348 int period); 350 int period);
|
/sound/ppc/ |
D | beep.c | 94 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/ |
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/fsl/ |
D | imx-pcm-fiq.c | 34 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/ |
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 | 203 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/ |
D | idma.c | 44 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/ |
D | at73c213.c | 67 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/ |
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 | 369 pstr->period = params_period_bytes(hw_params); in snd_line6_hw_params()
|
/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() 548 aacirun->period = snd_pcm_lib_period_bytes(substream); in aaci_pcm_prepare() 552 aacirun->bytes = aacirun->period; in aaci_pcm_prepare()
|
/sound/drivers/ |
D | dummy.c | 430 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/ |
D | hdspm.c | 1562 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/ |
D | echoaudio.c | 1813 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/ |
D | sun4i-i2s.c | 103 #define SUN8I_I2S_FMT0_LRCK_PERIOD(period) ((period - 1) << 8) argument
|
/sound/pci/riptide/ |
D | riptide.c | 1476 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/ |
D | sis7019.c | 192 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/ |
D | dbri.c | 1086 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/ |
D | au88x0_core.c | 2367 static void vortex_settimer(vortex_t * vortex, int period) in vortex_settimer() argument 2370 hwwrite(vortex->mmio, VORTEX_IRQ_STAT, period); in vortex_settimer()
|