diff mbox series

[5/9] pcm: Annotate the _delay functions based on findings from the previous bug

Message ID 20200622131515.23385-5-mark@xwax.org (mailing list archive)
State New, archived
Headers show
Series [1/9] control: Fix typos in the namehint example | expand

Commit Message

Mark Hills June 22, 2020, 1:15 p.m. UTC
Signed-off-by: Mark Hills <mark@xwax.org>
---
 src/pcm/pcm_local.h | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

Takashi Iwai June 23, 2020, 10:58 a.m. UTC | #1
On Mon, 22 Jun 2020 15:15:11 +0200,
Mark Hills wrote:
> 
> Signed-off-by: Mark Hills <mark@xwax.org>

Thanks, applied.


Takashi
diff mbox series

Patch

diff --git a/src/pcm/pcm_local.h b/src/pcm/pcm_local.h
index 1fa8e61d..cf018fc0 100644
--- a/src/pcm/pcm_local.h
+++ b/src/pcm/pcm_local.h
@@ -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);