]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
ALSA: compress: document 'chan_map' member in snd_dec_opus
authorKriish Sharma <kriish.sharma2006@gmail.com>
Sat, 27 Sep 2025 14:27:08 +0000 (14:27 +0000)
committerTakashi Iwai <tiwai@suse.de>
Sun, 28 Sep 2025 06:29:03 +0000 (08:29 +0200)
When building kernel docs, the following warning appeared:

  WARNING: ./include/uapi/sound/compress_params.h:364
  struct member 'chan_map' not described in 'snd_dec_opus'

The inline struct 'snd_dec_opus_ch_map' inside 'snd_dec_opus' was not
properly documented. This patch documents the 'chan_map' member and its
fields (stream_count, coupled_count, channel_map), resolving the warning.

Fixes: 5d36370f3431 ("ALSA: compress: add raw opus codec define and opus decoder structs")
Suggested-by: Bagas Sanjaya <bagasdotme@gmail.com>
Signed-off-by: Kriish Sharma <kriish.sharma2006@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/uapi/sound/compress_params.h

index faf4fa911f7fc2830c3ae42b93650fe40d8a776b..d7db6b4e116663fc52a778f0887ff457d9e6d0b2 100644 (file)
@@ -336,16 +336,14 @@ struct snd_dec_ape {
  * @mapping_family: Order and meaning of output channels. Only values 0 and 1
  * are expected; values 2..255 are not recommended for playback.
  *
- * Optional channel mapping table. Describes mapping of opus streams to decoded
- * channels.
- * @struct snd_dec_opus_ch_map
- *     @stream_count: Number of streams encoded in each Ogg packet.
- *     @coupled_count: Number of streams whose decoders are used for two
- *             channels.
- *     @channel_map: describes which decoded channel to be used for each one.
- *             See RFC doc for details.
- *             This supports only mapping families 0 and 1, therefore max
- *             number of channels is 8.
+ * @chan_map: Optional channel mapping table. Describes mapping of opus streams
+ *            to decoded channels. Fields:
+ * @chan_map.stream_count: Number of streams encoded in each Ogg packet.
+ * @chan_map.coupled_count: Number of streams whose decoders are used
+ *                          for two channels.
+ * @chan_map.channel_map: Which decoded channel to be used for each one.
+ *                        Supports only mapping families 0 and 1,
+ *                        max number of channels is 8.
  *
  * These options were extracted from RFC7845 Section 5.
  */