4,468
社区成员
发帖
与我相关
我的任务
分享
pointer callback
static snd_pcm_uframes_t snd_xxx_pointer(struct snd_pcm_substream *substream)
This callback is called when the PCM middle layer inquires the current
hardware position on the buffer. The position must be returned in frames,
ranging from 0 to buffer_size - 1.
This is called usually from the buffer-update routine in the pcm middle
layer, which is invoked when snd_pcm_period_elapsed() is called in the
interrupt routine. Then the pcm middle layer updates the position and
calculates the available space, and wakes up the sleeping poll threads,
etc.
This callback is also atomic.