/sound/oss/dmasound/ |
D | dmasound_paula.c | 359 int period, i; in AmiInit() local 364 period = amiga_colorclock/dmasound.soft.speed-1; in AmiInit() 366 period = amiga_audio_min_period; in AmiInit() 370 if (period < amiga_audio_min_period) { in AmiInit() 372 period = amiga_audio_min_period; in AmiInit() 373 } else if (period > 65535) { in AmiInit() 374 period = 65535; in AmiInit() 376 dmasound.hard.speed = amiga_colorclock/(period+1); in AmiInit() 379 custom.aud[i].audper = period; in AmiInit() 380 amiga_audio_period = period; in AmiInit()
|
/sound/ppc/ |
D | beep.c | 107 int period, ncycles, nsamples; in snd_pmac_beep_event() local 149 period = srate * 256 / hz; /* fixed point */ in snd_pmac_beep_event() 150 ncycles = BEEP_BUFLEN * 256 / period; in snd_pmac_beep_event() 151 nsamples = (period * ncycles) >> 8; in snd_pmac_beep_event()
|
/sound/soc/sh/rcar/ |
D | dma.c | 76 size_t period; in __rsnd_dmaen_sync() local 79 period = dmaen->dma_period; in __rsnd_dmaen_sync() 80 max = len / period; in __rsnd_dmaen_sync() 82 buf = dmaen->dma_buf + (period * i); in __rsnd_dmaen_sync() 87 dma_sync_single_for_device(dev, buf, period, dir); in __rsnd_dmaen_sync() 89 dma_sync_single_for_cpu(dev, buf, period, dir); in __rsnd_dmaen_sync() 236 size_t period; in rsnd_dmaen_start() local 256 period = snd_pcm_lib_period_bytes(substream); in rsnd_dmaen_start() 267 buf, len, period, in rsnd_dmaen_start() 281 dmaen->dma_period = period; in rsnd_dmaen_start()
|
/sound/soc/fsl/ |
D | imx-pcm-fiq.c | 39 unsigned int period; member 84 iprtd->period = params_period_bytes(params); in snd_imx_pcm_hw_params() 101 regs.ARM_r8 = (iprtd->period * iprtd->periods - 1) << 16; in snd_imx_pcm_prepare() 103 regs.ARM_r9 = (iprtd->period * iprtd->periods - 1) << 16; in snd_imx_pcm_prepare()
|
/sound/soc/samsung/ |
D | idma.c | 50 dma_addr_t period; member 163 prtd->period = params_periods(params); in idma_hw_params() 281 prtd->cb(prtd->token, prtd->period); in iis_irq()
|
/sound/spi/ |
D | at73c213.c | 70 int period; member 265 chip->period = 0; in snd_at73c213_pcm_prepare() 376 chip->period++; in snd_at73c213_interrupt() 377 if (chip->period == runtime->periods) in snd_at73c213_interrupt() 378 chip->period = 0; in snd_at73c213_interrupt() 379 next_period = chip->period + 1; in snd_at73c213_interrupt()
|
/sound/usb/line6/ |
D | pcm.h | 113 unsigned period; member
|
D | capture.c | 138 if (line6pcm->in.bytes >= line6pcm->in.period) { in line6_capture_check_period() 139 line6pcm->in.bytes %= line6pcm->in.period; in line6_capture_check_period()
|
D | playback.c | 362 if (line6pcm->out.bytes >= line6pcm->out.period) { in audio_out_callback() 363 line6pcm->out.bytes %= line6pcm->out.period; in audio_out_callback()
|
D | pcm.c | 371 pstr->period = params_period_bytes(hw_params); in snd_line6_hw_params()
|
/sound/arm/ |
D | aaci.h | 213 unsigned int period; /* byte size of a "period" */ member
|
D | aaci.c | 230 aacirun->bytes += aacirun->period; in aaci_fifo_irq() 290 aacirun->bytes += aacirun->period; in aaci_fifo_irq() 551 aacirun->period = snd_pcm_lib_period_bytes(substream); in aaci_pcm_prepare() 555 aacirun->bytes = aacirun->period; in aaci_pcm_prepare()
|
/sound/drivers/ |
D | dummy.c | 446 unsigned int period, rate; in dummy_hrtimer_prepare() local 451 period = runtime->period_size; in dummy_hrtimer_prepare() 453 sec = period / rate; in dummy_hrtimer_prepare() 454 period %= rate; in dummy_hrtimer_prepare() 455 nsecs = div_u64((u64)period * 1000000000UL + rate - 1, rate); in dummy_hrtimer_prepare()
|
/sound/soc/sunxi/ |
D | sun4i-i2s.c | 100 #define SUN8I_I2S_FMT0_LRCK_PERIOD(period) ((period - 1) << 8) argument
|
/sound/pci/rme9652/ |
D | hdspm.c | 1573 static u64 hdspm_calc_dds_value(struct hdspm *hdspm, u64 period) in hdspm_calc_dds_value() argument 1577 if (period == 0) in hdspm_calc_dds_value() 1597 return div_u64(freq_const, period); in hdspm_calc_dds_value() 2202 unsigned int period, rate; in hdspm_get_pll_freq() local 2204 period = hdspm_read(hdspm, HDSPM_RD_PLL_FREQ); in hdspm_get_pll_freq() 2205 rate = hdspm_calc_dds_value(hdspm, period); in hdspm_get_pll_freq() 4765 unsigned int period; in snd_hdspm_proc_read_tco() local 4829 period = hdspm_read(hdspm, HDSPM_RD_PLL_FREQ); in snd_hdspm_proc_read_tco() 4830 snd_iprintf(buffer, " period: %u\n", period); in snd_hdspm_proc_read_tco() 4834 rate = div_u64(freq_const, period); in snd_hdspm_proc_read_tco()
|
/sound/pci/echoaudio/ |
D | echoaudio.c | 1826 int period, ss, st; in snd_echo_interrupt() local 1840 period = pcm_pointer(substream) / in snd_echo_interrupt() 1842 if (period != chip->last_period[ss]) { in snd_echo_interrupt() 1843 chip->last_period[ss] = period; in snd_echo_interrupt()
|
/sound/pci/riptide/ |
D | riptide.c | 1491 unsigned int i, j, size, pages, f, pt, period; in snd_riptide_prepare() local 1495 period = frames_to_bytes(runtime, runtime->period_size); in snd_riptide_prepare() 1497 while ((size + (f >> 1) - 1) <= (f << 7) && (f << 1) > period) in snd_riptide_prepare() 1504 size, pages, f, period); in snd_riptide_prepare()
|
/sound/pci/ |
D | sis7019.c | 204 static void sis_update_sso(struct voice *voice, u16 period) in sis_update_sso() argument 208 voice->sso += period; in sis_update_sso()
|
/sound/sparc/ |
D | dbri.c | 1081 static int setup_descs(struct snd_dbri *dbri, int streamno, unsigned int period) in setup_descs() argument 1163 if (mylen > period) in setup_descs() 1164 mylen = period; in setup_descs()
|
/sound/pci/au88x0/ |
D | au88x0_core.c | 2373 static void vortex_settimer(vortex_t * vortex, int period) in vortex_settimer() argument 2376 hwwrite(vortex->mmio, VORTEX_IRQ_STAT, period); in vortex_settimer()
|