]> git.alsa-project.org Git - alsa-lib.git/commitdiff
doxygen: topology: silence 'not documented' warnings
authorborine <32966433+borine@users.noreply.github.com>
Sun, 30 Jul 2023 11:05:13 +0000 (12:05 +0100)
committerJaroslav Kysela <perex@perex.cz>
Fri, 1 Sep 2023 14:12:06 +0000 (16:12 +0200)
From: borine@github
Link: https://github.com/alsa-project/alsa-lib/pull/340
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
include/topology.h
src/topology/ctl.c
src/topology/data.c
src/topology/elem.c
src/topology/pcm.c

index d452f29b5407d9e4dbbf7e546d6a3f2ebad19a9e..2b83bbc81bae06d2602a2ee0c3e3233cebcd83bd 100644 (file)
@@ -840,7 +840,7 @@ struct snd_tplg_tlv_dbscale_template {
        int mute;                       /*!< is min dB value mute ? */
 };
 
-/** \struct snd_tplg_channel_template
+/** \struct snd_tplg_channel_elem
  * \brief Template type for single channel mapping.
  */
 struct snd_tplg_channel_elem {
@@ -1021,26 +1021,26 @@ struct snd_tplg_pcm_template {
  * hardware config, i.e. hardware audio formats.
  */
 struct snd_tplg_hw_config_template {
-       int id;                         /* unique ID - - used to match */
-       unsigned int fmt;               /* SND_SOC_DAI_FORMAT_ format value */
-       unsigned char clock_gated;      /* SND_SOC_TPLG_DAI_CLK_GATE_ value */
-       unsigned char  invert_bclk;     /* 1 for inverted BCLK, 0 for normal */
-       unsigned char  invert_fsync;    /* 1 for inverted frame clock, 0 for normal */
-       unsigned char  bclk_provider;   /* SND_SOC_TPLG_BCLK_ value */
-       unsigned char  fsync_provider;  /* SND_SOC_TPLG_FSYNC_ value */
-       unsigned char  mclk_direction;  /* SND_SOC_TPLG_MCLK_ value */
-       unsigned short reserved;        /* for 32bit alignment */
-       unsigned int mclk_rate;         /* MCLK or SYSCLK freqency in Hz */
-       unsigned int bclk_rate;         /* BCLK freqency in Hz */
-       unsigned int fsync_rate;        /* frame clock in Hz */
-       unsigned int tdm_slots;         /* number of TDM slots in use */
-       unsigned int tdm_slot_width;    /* width in bits for each slot */
-       unsigned int tx_slots;          /* bit mask for active Tx slots */
-       unsigned int rx_slots;          /* bit mask for active Rx slots */
-       unsigned int tx_channels;       /* number of Tx channels */
-       unsigned int *tx_chanmap;       /* array of slot number */
-       unsigned int rx_channels;       /* number of Rx channels */
-       unsigned int *rx_chanmap;       /* array of slot number */
+       int id;                         /*!< unique ID - - used to match */
+       unsigned int fmt;               /*!< SND_SOC_DAI_FORMAT_ format value */
+       unsigned char clock_gated;      /*!< SND_SOC_TPLG_DAI_CLK_GATE_ value */
+       unsigned char  invert_bclk;     /*!< 1 for inverted BCLK, 0 for normal */
+       unsigned char  invert_fsync;    /*!< 1 for inverted frame clock, 0 for normal */
+       unsigned char  bclk_provider;   /*!< SND_SOC_TPLG_BCLK_ value */
+       unsigned char  fsync_provider;  /*!< SND_SOC_TPLG_FSYNC_ value */
+       unsigned char  mclk_direction;  /*!< SND_SOC_TPLG_MCLK_ value */
+       unsigned short reserved;        /*!< for 32bit alignment */
+       unsigned int mclk_rate;         /*!< MCLK or SYSCLK freqency in Hz */
+       unsigned int bclk_rate;         /*!< BCLK freqency in Hz */
+       unsigned int fsync_rate;        /*!< frame clock in Hz */
+       unsigned int tdm_slots;         /*!< number of TDM slots in use */
+       unsigned int tdm_slot_width;    /*!< width in bits for each slot */
+       unsigned int tx_slots;          /*!< bit mask for active Tx slots */
+       unsigned int rx_slots;          /*!< bit mask for active Rx slots */
+       unsigned int tx_channels;       /*!< number of Tx channels */
+       unsigned int *tx_chanmap;       /*!< array of slot number */
+       unsigned int rx_channels;       /*!< number of Rx channels */
+       unsigned int *rx_chanmap;       /*!< array of slot number */
 };
 
 /** \struct snd_tplg_dai_template
@@ -1071,15 +1071,15 @@ struct snd_tplg_link_template {
        struct snd_tplg_stream_template *stream;       /*!< supported configs */
 
        struct snd_tplg_hw_config_template *hw_config; /*!< supported HW configs */
-       int num_hw_configs;             /* number of hw configs */
-       int default_hw_config_id;       /* default hw config ID for init */
+       int num_hw_configs;             /*!< number of hw configs */
+       int default_hw_config_id;       /*!< default hw config ID for init */
 
-       unsigned int flag_mask;         /* bitmask of flags to configure */
-       unsigned int flags;             /* SND_SOC_TPLG_LNK_FLGBIT_* flag value */
+       unsigned int flag_mask;         /*!< bitmask of flags to configure */
+       unsigned int flags;             /*!< SND_SOC_TPLG_LNK_FLGBIT_* flag value */
        struct snd_soc_tplg_private *priv; /*!< private data */
 };
 
-/** \struct snd_tplg_obj_template
+/** \struct snd_tplg_obj_template_t
  * \brief Generic Template Object
  */
 typedef struct snd_tplg_obj_template {
@@ -1152,7 +1152,13 @@ int snd_tplg_set_version(snd_tplg_t *tplg, unsigned int version);
  * \brief Save the topology to the text configuration string.
  * \param tplg Topology instance.
  * \param dst A pointer to string with result (malloc).
+ * \param flags save mode
  * \return Zero on success, otherwise a negative error code
+ *
+ * Valid flags are
+ *    - SND_TPLG_SAVE_SORT
+ *    - SND_TPLG_SAVE_GROUPS
+ *    - SND_TPLG_SAVE_NOCHECK
  */
 int snd_tplg_save(snd_tplg_t *tplg, char **dst, int flags);
 
@@ -1161,6 +1167,7 @@ int snd_tplg_save(snd_tplg_t *tplg, char **dst, int flags);
  * \param tplg Topology instance.
  * \param bin Binary topology input buffer.
  * \param size Binary topology input buffer size.
+ * \param dflags - not used, must be set to 0.
  * \return Zero on success, otherwise a negative error code
  */
 int snd_tplg_decode(snd_tplg_t *tplg, void *bin, size_t size, int dflags);
index 04f39d770833a8ece4fdb27beef048d5aeb19e95..6762295741cd24b7213f5ab5e4d532c61c6eba3a 100644 (file)
 
 #include "tplg_local.h"
 
+#ifndef DOC_HIDDEN
 #define ENUM_VAL_SIZE  (SNDRV_CTL_ELEM_ID_NAME_MAXLEN >> 2)
 
 struct ctl_access_elem {
        const char *name;
        unsigned int value;
 };
+#endif /* DOC_HIDDEN */
 
 /* CTL access strings and codes */
 /* place the multi-bit values on top - like read_write - for save */
index 2f077d369f35abbc92418e4609b94891219fa473..e1611aeaae1cff0f72c503462b68250e0603c0fa 100644 (file)
@@ -712,11 +712,13 @@ static int build_tuples(snd_tplg_t *tplg, struct tplg_elem *elem)
        return 0;
 }
 
+#ifndef DOC_HIDDEN
 struct tuple_type {
        unsigned int type;
        const char *name;
        unsigned int size;
 };
+#endif /* DOC_HIDDEN */
 
 static struct tuple_type tuple_types[] = {
        {
index a7a7241d7db187e68bd407585157f690013d6877..2e31da5dd03d4a86b57870959d1ea3f85c2b5056 100644 (file)
@@ -481,10 +481,12 @@ struct tplg_elem* tplg_elem_new_common(snd_tplg_t *tplg,
        return elem;
 }
 
+#ifndef DOC_HIDDEN
 struct tplg_alloc {
        struct list_head list;
        void *data[0];
 };
+#endif /* DOC_HIDDEN */
 
 void *tplg_calloc(struct list_head *heap, size_t size)
 {
index 539f258d0fedee32d95f4c6f58172b3b2fd37dd0..acec27f974a343241f80fe263e1601d432b42ff4 100644 (file)
@@ -1364,10 +1364,12 @@ int tplg_save_cc(snd_tplg_t *tplg ATTRIBUTE_UNUSED,
        return err;
 }
 
+#ifndef DOC_HIDDEN
 struct audio_hw_format {
        unsigned int type;
        const char *name;
 };
+#endif /* DOC_HIDDEN */
 
 static struct audio_hw_format audio_hw_formats[] = {
        {