Searched refs:period_ptr (Results 1 - 6 of 6) sorted by relevance

/linux-4.1.27/sound/soc/atmel/
H A Datmel-pcm-pdc.c157 dma_addr_t period_ptr; /* physical address of next period */ member in struct:atmel_runtime_data
181 prtd->period_ptr += prtd->period_size; atmel_pcm_dma_irq()
182 if (prtd->period_ptr >= prtd->dma_buffer_end) atmel_pcm_dma_irq()
183 prtd->period_ptr = prtd->dma_buffer; atmel_pcm_dma_irq()
186 prtd->period_ptr); atmel_pcm_dma_irq()
195 prtd->period_ptr += prtd->period_size; atmel_pcm_dma_irq()
196 if (prtd->period_ptr >= prtd->dma_buffer_end) atmel_pcm_dma_irq()
197 prtd->period_ptr = prtd->dma_buffer; atmel_pcm_dma_irq()
200 prtd->period_ptr); atmel_pcm_dma_irq()
281 prtd->period_ptr = prtd->dma_buffer; atmel_pcm_trigger()
284 prtd->period_ptr); atmel_pcm_trigger()
288 prtd->period_ptr += prtd->period_size; atmel_pcm_trigger()
290 prtd->period_ptr); atmel_pcm_trigger()
295 "period_ptr=%lx, xpr=%u, " atmel_pcm_trigger()
297 (unsigned long)prtd->period_ptr, atmel_pcm_trigger()
/linux-4.1.27/sound/drivers/pcsp/
H A Dpcsp.h63 size_t period_ptr; member in struct:snd_pcsp
H A Dpcsp_lib.c104 periods_elapsed = chip->playback_ptr - chip->period_ptr; pcsp_pointer_update()
119 chip->period_ptr += periods_elapsed * period_bytes; pcsp_pointer_update()
120 chip->period_ptr %= buffer_bytes; pcsp_pointer_update()
240 chip->period_ptr = 0; snd_pcsp_playback_prepare()
H A Dpcsp.c77 pcsp_chip.period_ptr = 0; snd_pcsp_create()
/linux-4.1.27/include/sound/
H A Dpcm_oss.h52 size_t period_ptr; /* actual write pointer to period */ member in struct:snd_pcm_oss_runtime
/linux-4.1.27/sound/core/oss/
H A Dpcm_oss.c1124 runtime->oss.period_ptr = 0; snd_pcm_oss_prepare()
1391 tmp = snd_pcm_oss_write2(substream, runtime->oss.buffer + runtime->oss.period_ptr, snd_pcm_oss_write1()
1392 runtime->oss.buffer_used - runtime->oss.period_ptr, 1); snd_pcm_oss_write1()
1396 runtime->oss.period_ptr += tmp; snd_pcm_oss_write1()
1397 runtime->oss.period_ptr %= runtime->oss.period_bytes; snd_pcm_oss_write1()
1398 if (runtime->oss.period_ptr == 0 || snd_pcm_oss_write1()
1399 runtime->oss.period_ptr == runtime->oss.buffer_used) snd_pcm_oss_write1()
1481 runtime->oss.period_ptr = tmp; snd_pcm_oss_read1()
1487 if (copy_to_user(buf, runtime->oss.buffer + (runtime->oss.period_ptr - runtime->oss.buffer_used), tmp)) { snd_pcm_oss_read1()
1529 runtime->oss.period_ptr = 0; snd_pcm_oss_reset()
1631 } else if (runtime->oss.period_ptr > 0) { snd_pcm_oss_sync()
1633 pcm_dbg(substream->pcm, "sync: period_ptr\n"); snd_pcm_oss_sync()
1635 size = runtime->oss.period_bytes - runtime->oss.period_ptr; snd_pcm_oss_sync()

Completed in 209 milliseconds