]> git.alsa-project.org Git - alsa-lib.git/commitdiff
doxygen: pcm: silence 'not documented' warnings
authorborine <32966433+borine@users.noreply.github.com>
Sat, 29 Jul 2023 15:01:33 +0000 (16:01 +0100)
committerJaroslav Kysela <perex@perex.cz>
Fri, 1 Sep 2023 14:11:30 +0000 (16:11 +0200)
From: borine@github
Link: https://github.com/alsa-project/alsa-lib/pull/340
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
include/pcm.h
src/pcm/pcm.c
src/pcm/pcm_meter.c
src/pcm/pcm_route.c

index a29ea98093adcad546f8a281469b532e7770d092..e7853313106907fe7ba79d78d3e9d257b8669bf3 100644 (file)
@@ -343,6 +343,7 @@ typedef enum _snd_pcm_tstamp {
        SND_PCM_TSTAMP_LAST = SND_PCM_TSTAMP_ENABLE
 } snd_pcm_tstamp_t;
 
+/** PCM timestamp type */
 typedef enum _snd_pcm_tstamp_type {
        SND_PCM_TSTAMP_TYPE_GETTIMEOFDAY = 0,   /**< gettimeofday equivalent */
        SND_PCM_TSTAMP_TYPE_MONOTONIC,  /**< posix_clock_monotonic equivalent */
@@ -350,6 +351,7 @@ typedef enum _snd_pcm_tstamp_type {
        SND_PCM_TSTAMP_TYPE_LAST = SND_PCM_TSTAMP_TYPE_MONOTONIC_RAW,
 } snd_pcm_tstamp_type_t;
 
+/** PCM audio timestamp type */
 typedef enum _snd_pcm_audio_tstamp_type {
        /**
         * first definition for backwards compatibility only,
@@ -364,24 +366,22 @@ typedef enum _snd_pcm_audio_tstamp_type {
        SND_PCM_AUDIO_TSTAMP_TYPE_LAST = SND_PCM_AUDIO_TSTAMP_TYPE_LINK_SYNCHRONIZED
 } snd_pcm_audio_tstamp_type_t;
 
+/** PCM audio timestamp config */
 typedef struct _snd_pcm_audio_tstamp_config {
        /* 5 of max 16 bits used */
-       unsigned int type_requested:4;
-       unsigned int report_delay:1; /* add total delay to A/D or D/A */
+       unsigned int type_requested:4; /**< requested audio tstamp type */
+       unsigned int report_delay:1; /**< add total delay to A/D or D/A */
 } snd_pcm_audio_tstamp_config_t;
 
+/** PCM audio timestamp report */
 typedef struct _snd_pcm_audio_tstamp_report {
        /* 6 of max 16 bits used for bit-fields */
 
-       /* for backwards compatibility */
-       unsigned int valid:1;
+       unsigned int valid:1; /**< for backwards compatibility */
+       unsigned int actual_type:4; /**< actual type if hardware could not support requested timestamp */
 
-       /* actual type if hardware could not support requested timestamp */
-       unsigned int actual_type:4;
-
-       /* accuracy represented in ns units */
-       unsigned int accuracy_report:1; /* 0 if accuracy unknown, 1 if accuracy field is valid */
-       unsigned int accuracy; /* up to 4.29s, will be packed in separate field  */
+       unsigned int accuracy_report:1; /**< 0 if accuracy unknown, 1 if accuracy field is valid */
+       unsigned int accuracy; /**< up to 4.29s in ns units, will be packed in separate field  */
 } snd_pcm_audio_tstamp_report_t;
 
 /** Unsigned frames quantity */
index 16cfe493aaa17da5d1b1f46e4ce9b61778ab7f0a..2077d6fac3896c7eab739ad9618df86b46bce8a1 100644 (file)
@@ -3444,7 +3444,7 @@ int snd_pcm_areas_copy(const snd_pcm_channel_area_t *dst_areas, snd_pcm_uframes_
  * \param dst_size size in frames of the destination buffer
  * \param src_channels source areas specification (one for each channel)
  * \param src_offset offset in frames inside source area
- * \param dst_size size in frames of the source buffer
+ * \param src_size size in frames of the source buffer
  * \param channels channels count
  * \param frames frames to copy
  * \param format PCM sample format
@@ -7022,7 +7022,7 @@ void snd_pcm_status_get_driver_htstamp(const snd_pcm_status_t *obj, snd_htimesta
 /**
  * \brief Get audio_tstamp_report from a PCM status container
  * \param obj pointer to #snd_pcm_status_t
- * \param audio_tstamp_report Pointer to returned report (valid fields are accuracy and type)
+ * \param audio_tstamp_report Pointer to returned report
  */
 void snd_pcm_status_get_audio_htstamp_report(const snd_pcm_status_t *obj,
                                             snd_pcm_audio_tstamp_report_t *audio_tstamp_report)
@@ -7036,7 +7036,7 @@ void snd_pcm_status_get_audio_htstamp_report(const snd_pcm_status_t *obj,
 /**
  * \brief set audio_tstamp_config from a PCM status container
  * \param obj pointer to #snd_pcm_status_t
- * \param audio_tstamp_config Pointer to config (valid fields are type and report_analog_delay)
+ * \param audio_tstamp_config Pointer to config (valid fields are type_requested and report_delay)
  */
 void snd_pcm_status_set_audio_htstamp_config(snd_pcm_status_t *obj,
                                             snd_pcm_audio_tstamp_config_t *audio_tstamp_config)
index 18d921ccb518053475c6708fbfe0ec62b11bc30e..68c369de97e62fca6abdd803fe08137c0bf2fb14 100644 (file)
 #include <pthread.h>
 #include <dlfcn.h>
 
+#ifndef DOC_HIDDEN
 #define atomic_read(ptr)    __atomic_load_n(ptr, __ATOMIC_SEQ_CST )
 #define atomic_add(ptr, n)  __atomic_add_fetch(ptr, n, __ATOMIC_SEQ_CST)
 #define atomic_dec(ptr)     __atomic_sub_fetch(ptr, 1, __ATOMIC_SEQ_CST)
+#endif
 
 #ifndef PIC
 /* entry for static linking */
index 94292fc76e4c1055aeb365f6fabcc960c8f72c03..38057cb231e8f5b97c435f6fc55bc00972bfff55 100644 (file)
@@ -765,7 +765,9 @@ static int strtochannel(const char *id, snd_pcm_chmap_t *chmap,
        }
 }
 
+#ifndef DOC_HIDDEN
 #define MAX_CHMAP_CHANNELS 256
+#endif
 
 static int determine_chmap(snd_config_t *tt, snd_pcm_chmap_t **tt_chmap)
 {