Home
last modified time | relevance | path

Searched refs:period_ptr (Results 1 – 5 of 5) sorted by relevance

/sound/soc/atmel/
Datmel-pcm-pdc.c147 dma_addr_t period_ptr; /* physical address of next period */ member
171 prtd->period_ptr += prtd->period_size; in atmel_pcm_dma_irq()
172 if (prtd->period_ptr >= prtd->dma_buffer_end) in atmel_pcm_dma_irq()
173 prtd->period_ptr = prtd->dma_buffer; in atmel_pcm_dma_irq()
176 prtd->period_ptr); in atmel_pcm_dma_irq()
185 prtd->period_ptr += prtd->period_size; in atmel_pcm_dma_irq()
186 if (prtd->period_ptr >= prtd->dma_buffer_end) in atmel_pcm_dma_irq()
187 prtd->period_ptr = prtd->dma_buffer; in atmel_pcm_dma_irq()
190 prtd->period_ptr); in atmel_pcm_dma_irq()
274 prtd->period_ptr = prtd->dma_buffer; in atmel_pcm_trigger()
[all …]
/sound/drivers/pcsp/
Dpcsp_lib.c105 periods_elapsed = chip->playback_ptr - chip->period_ptr; in pcsp_pointer_update()
120 chip->period_ptr += periods_elapsed * period_bytes; in pcsp_pointer_update()
121 chip->period_ptr %= buffer_bytes; in pcsp_pointer_update()
234 chip->period_ptr = 0; in snd_pcsp_playback_prepare()
Dpcsp.h64 size_t period_ptr; member
Dpcsp.c76 pcsp_chip.period_ptr = 0; in snd_pcsp_create()
/sound/core/oss/
Dpcm_oss.c1153 runtime->oss.period_ptr = 0; in snd_pcm_oss_prepare()
1426 tmp = snd_pcm_oss_write2(substream, runtime->oss.buffer + runtime->oss.period_ptr, in snd_pcm_oss_write1()
1427 runtime->oss.buffer_used - runtime->oss.period_ptr, 1); in snd_pcm_oss_write1()
1431 runtime->oss.period_ptr += tmp; in snd_pcm_oss_write1()
1432 runtime->oss.period_ptr %= runtime->oss.period_bytes; in snd_pcm_oss_write1()
1433 if (runtime->oss.period_ptr == 0 || in snd_pcm_oss_write1()
1434 runtime->oss.period_ptr == runtime->oss.buffer_used) in snd_pcm_oss_write1()
1526 runtime->oss.period_ptr = tmp; in snd_pcm_oss_read1()
1532 …if (copy_to_user(buf, runtime->oss.buffer + (runtime->oss.period_ptr - runtime->oss.buffer_used), … in snd_pcm_oss_read1()
1580 runtime->oss.period_ptr = 0; in snd_pcm_oss_reset()
[all …]