Home
last modified time | relevance | path

Searched refs:periods (Results 1 – 25 of 37) sorted by relevance

12

/sound/soc/au1x/
Ddma.c35 unsigned int periods; member
48 stream->periods = 0; in au1000_release_dma_link()
62 unsigned int periods) in au1000_setup_dma_link() argument
73 stream->periods == periods) in au1000_setup_dma_link()
79 stream->periods = periods; in au1000_setup_dma_link()
85 for (i = 0; i < periods; i++) { in au1000_setup_dma_link()
88 if (i < periods - 1) { in au1000_setup_dma_link()
Ddbdma2.c54 unsigned long periods; /* number of SG segments in total */ member
88 if (cd->q_period >= cd->periods) { in au1x_pcm_queue_tx()
102 if (cd->q_period >= cd->periods) { in au1x_pcm_queue_rx()
113 if (++cd->curr_period >= cd->periods) { in au1x_pcm_dmatx_cb()
126 if (++cd->curr_period >= cd->periods) { in au1x_pcm_dmarx_cb()
226 pcd->periods = params_periods(params); in au1xpsc_pcm_hw_params()
/sound/pci/cs5535audio/
Dcs5535audio_pcm.c121 unsigned int periods, in cs5535audio_build_dma_packets() argument
128 if (periods > CS5535AUDIO_MAX_DESCRIPTORS) in cs5535audio_build_dma_packets()
137 dma->period_bytes = dma->periods = 0; in cs5535audio_build_dma_packets()
140 if (dma->periods == periods && dma->period_bytes == period_bytes) in cs5535audio_build_dma_packets()
147 for (i = 0; i < periods; i++) { in cs5535audio_build_dma_packets()
157 lastdesc = &((struct cs5535audio_dma_desc *) dma->desc_buf.area)[periods]; in cs5535audio_build_dma_packets()
162 sizeof(struct cs5535audio_dma_desc) * periods; in cs5535audio_build_dma_packets()
166 dma->periods = periods; in cs5535audio_build_dma_packets()
Dcs5535audio.h80 unsigned int period_bytes, periods; member
/sound/pci/
Datiixp_modem.c225 unsigned int period_bytes, periods; member
327 unsigned int periods, in atiixp_build_dma_packets() argument
334 if (periods > ATI_MAX_DESCRIPTORS) in atiixp_build_dma_packets()
341 dma->period_bytes = dma->periods = 0; /* clear */ in atiixp_build_dma_packets()
344 if (dma->periods == periods && dma->period_bytes == period_bytes) in atiixp_build_dma_packets()
357 for (i = 0; i < periods; i++) { in atiixp_build_dma_packets()
364 if (i == periods - 1) in atiixp_build_dma_packets()
375 dma->periods = periods; in atiixp_build_dma_packets()
Datiixp.c249 unsigned int period_bytes, periods; member
358 unsigned int periods, in atiixp_build_dma_packets() argument
365 if (periods > ATI_MAX_DESCRIPTORS) in atiixp_build_dma_packets()
374 dma->period_bytes = dma->periods = 0; /* clear */ in atiixp_build_dma_packets()
377 if (dma->periods == periods && dma->period_bytes == period_bytes) in atiixp_build_dma_packets()
390 for (i = 0; i < periods; i++) { in atiixp_build_dma_packets()
397 if (i == periods - 1) in atiixp_build_dma_packets()
408 dma->periods = periods; in atiixp_build_dma_packets()
Dbt87x.c228 unsigned int periods, unsigned int period_bytes) in snd_bt87x_create_risc() argument
242 for (i = 0; i < periods; ++i) { in snd_bt87x_create_risc()
255 u32 block = i * 16 / periods; in snd_bt87x_create_risc()
274 chip->lines = periods; in snd_bt87x_create_risc()
Dvia82xx_modem.c280 unsigned int periods, unsigned int fragsize) in build_via_table() argument
303 for (i = 0; i < periods; i++) { in build_via_table()
325 if (i == periods - 1) in build_via_table()
344 dev->bufsize = periods * fragsize; in build_via_table()
/sound/soc/fsl/
Dimx-pcm-fiq.c40 int periods; member
83 iprtd->periods = params_periods(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()
Dmpc5200_dma.c70 s->period_next = (s->period_next + 1) % s->runtime->periods; in psc_dma_bcom_enqueue_next_buffer()
84 s->period_current = (s->period_current+1) % s->runtime->periods; in psc_dma_bcom_irq()
126 (int)runtime->period_size, runtime->periods); in psc_dma_trigger()
145 for (i = 0; i < runtime->periods; i++) in psc_dma_trigger()
/sound/soc/blackfin/
Dbf5xx-ac97-pcm.c160 sport_config_tx_dma(sport, sport->tx_dma_buf, runtime->periods, in bf5xx_pcm_prepare()
164 sport_config_rx_dma(sport, sport->rx_dma_buf, runtime->periods, in bf5xx_pcm_prepare()
170 sport_config_tx_dma(sport, runtime->dma_area, runtime->periods, in bf5xx_pcm_prepare()
174 sport_config_rx_dma(sport, runtime->dma_area, runtime->periods, in bf5xx_pcm_prepare()
Dbf5xx-i2s-pcm.c102 runtime->periods, period_bytes); in bf5xx_pcm_prepare()
106 runtime->periods, period_bytes); in bf5xx_pcm_prepare()
/sound/hda/
Dhdac_stream.c368 int i, ofs, periods, period_bytes; in snd_hdac_stream_setup_periods() local
376 periods = azx_dev->bufsize / period_bytes; in snd_hdac_stream_setup_periods()
407 for (i = 0; i < periods; i++) { in snd_hdac_stream_setup_periods()
408 if (i == periods - 1 && pos_adj) in snd_hdac_stream_setup_periods()
/sound/atmel/
Dac97c.c508 if (chip->playback_period == runtime->periods) in atmel_ac97c_interrupt()
511 if (next_period == runtime->periods) in atmel_ac97c_interrupt()
526 if (chip->capture_period == runtime->periods) in atmel_ac97c_interrupt()
529 if (next_period == runtime->periods) in atmel_ac97c_interrupt()
/sound/pci/lola/
Dlola_pcm.c359 int i, ofs, periods, period_bytes; in lola_setup_periods() local
362 periods = str->bufsize / period_bytes; in lola_setup_periods()
368 for (i = 0; i < periods; i++) { in lola_setup_periods()
/sound/pci/emu10k1/
Dp16v.c347 runtime->periods, frames_to_bytes(runtime, 1)); in snd_p16v_pcm_prepare_playback()
373 for(i = 0; i < runtime->periods; i++) { in snd_p16v_pcm_prepare_playback()
379 snd_emu10k1_ptr20_write(emu, PLAYBACK_LIST_SIZE, channel, (runtime->periods - 1) << 19); in snd_p16v_pcm_prepare_playback()
Demu10k1x.c463 for(i = 0; i < runtime->periods; i++) { in snd_emu10k1x_pcm_prepare()
469 snd_emu10k1x_ptr_write(emu, PLAYBACK_LIST_SIZE, voice, (runtime->periods - 1) << 19); in snd_emu10k1x_pcm_prepare()
499 if(runtime->periods == 2) in snd_emu10k1x_pcm_trigger()
/sound/core/oss/
Dpcm_oss.c760 if (substream->oss.setup.periods > 1) in snd_pcm_oss_period_size()
761 oss_periods = substream->oss.setup.periods; in snd_pcm_oss_period_size()
782 runtime->oss.periods = oss_periods; in snd_pcm_oss_period_size()
953 runtime->oss.periods, NULL); in snd_pcm_oss_change_params_locked()
1031 runtime->oss.periods = params_periods(sparams); in snd_pcm_oss_change_params_locked()
1046 oss_buffer_size = oss_period_size * runtime->oss.periods; in snd_pcm_oss_change_params_locked()
2251 info.fragstotal = runtime->periods; in snd_pcm_oss_get_space()
2254 info.bytes = runtime->oss.period_bytes * runtime->oss.periods; in snd_pcm_oss_get_space()
2255 info.fragments = runtime->oss.periods; in snd_pcm_oss_get_space()
2935 setup->periods, in snd_pcm_oss_proc_read()
[all …]
/sound/pci/nm256/
Dnm256.c201 int periods; /* # of periods */ member
504 s->cur_period %= s->periods; in snd_nm256_pcm_mark()
647 s->periods = substream->runtime->periods; in snd_nm256_pcm_prepare()
/sound/pci/lx6464es/
Dlx6464es.c434 const u32 periods = substream->runtime->periods; in lx_trigger_start() local
443 for (i = 0; i != periods; ++i) { in lx_trigger_start()
/sound/pci/ca0106/
Dca0106_main.c780 runtime->period_size, runtime->periods, in snd_ca0106_pcm_prepare_playback()
838 for(i=0; i < runtime->periods; i++) { in snd_ca0106_pcm_prepare_playback()
844 snd_ca0106_ptr_write(emu, PLAYBACK_LIST_SIZE, channel, (runtime->periods - 1) << 19); in snd_ca0106_pcm_prepare_playback()
887 runtime->period_size, runtime->periods, in snd_ca0106_pcm_prepare_capture()
/sound/drivers/pcsp/
Dpcsp_lib.c252 substream->runtime->periods, in snd_pcsp_playback_prepare()
/sound/x86/
Dintel_hdmi_audio.c894 intelhaddata->pcmbuf_filled %= substream->runtime->periods; in had_prog_bd()
912 num_periods = runtime->periods; in had_init_ringbuf()
938 int num_periods = substream->runtime->periods; in had_advance_ringbuf()
1239 dev_dbg(intelhaddata->dev, "periods=%d\n", runtime->periods); in had_pcm_prepare()
/sound/soc/sh/rcar/
Dssi.c441 pos %= (runtime->periods * ssi->byte_per_period); in rsnd_ssi_pointer_offset()
462 if (ssi->period_pos >= runtime->periods) { in rsnd_ssi_pointer_update()
/sound/spi/
Dat73c213.c377 if (chip->period == runtime->periods) in snd_at73c213_interrupt()
380 if (next_period == runtime->periods) in snd_at73c213_interrupt()

12