mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-31 22:25:35 -04:00
pcm: Annotate the _delay functions based on findings from the previous bug
Signed-off-by: Mark Hills <mark@xwax.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
1a169c21af
commit
243105769b
1 changed files with 6 additions and 0 deletions
|
|
@ -582,11 +582,17 @@ static inline snd_pcm_uframes_t snd_pcm_mmap_hw_offset(snd_pcm_t *pcm)
|
|||
return *pcm->hw.ptr % pcm->buffer_size;
|
||||
}
|
||||
|
||||
/*
|
||||
* \retval number of frames pending from application to hardware
|
||||
*/
|
||||
static inline snd_pcm_uframes_t snd_pcm_mmap_playback_delay(snd_pcm_t *pcm)
|
||||
{
|
||||
return snd_pcm_mmap_playback_hw_avail(pcm);
|
||||
}
|
||||
|
||||
/*
|
||||
* \retval number of frames pending from hardware to application
|
||||
*/
|
||||
static inline snd_pcm_uframes_t snd_pcm_mmap_capture_delay(snd_pcm_t *pcm)
|
||||
{
|
||||
return snd_pcm_mmap_capture_avail(pcm);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue