]> git.alsa-project.org Git - alsa-lib.git/commitdiff
pcm: Annotate the _delay functions based on findings from the previous bug
authorMark Hills <mark@xwax.org>
Mon, 22 Jun 2020 13:15:11 +0000 (14:15 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 23 Jun 2020 10:58:25 +0000 (12:58 +0200)
Signed-off-by: Mark Hills <mark@xwax.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/pcm/pcm_local.h

index 1fa8e61d2d368f30d339ed35a24305dbfbdb814c..cf018fc00bd769a6a33fef1347703af6692b51e8 100644 (file)
@@ -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);