[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <878qi0b97l.wl-tiwai@suse.de>
Date: Sat, 27 Sep 2025 10:17:34 +0200
From: Takashi Iwai <tiwai@...e.de>
To: Kriish Sharma <kriish.sharma2006@...il.com>
Cc: Vinod Koul <vkoul@...nel.org>,
Jaroslav Kysela <perex@...ex.cz>,
Takashi Iwai <tiwai@...e.com>,
linux-sound@...r.kernel.org,
linux-kernel@...r.kernel.org,
Alexey Klimov <alexey.klimov@...aro.org>
Subject: Re: [PATCH] docs: sound: describe 'chan_map' member in snd_dec_opus
On Fri, 26 Sep 2025 18:26:58 +0200,
Kriish Sharma wrote:
>
> 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.
>
> Signed-off-by: Kriish Sharma <kriish.sharma2006@...il.com>
Adding Alexey to Cc, as it was added by his patch.
If any, please resubmit with a proper subject line (e.g. "ALSA:
compress: ....") as well as the Fixes tag pointing to the affecting
commit.
thanks,
Takashi
> ---
> include/uapi/sound/compress_params.h | 18 ++++++++----------
> 1 file changed, 8 insertions(+), 10 deletions(-)
>
> diff --git a/include/uapi/sound/compress_params.h b/include/uapi/sound/compress_params.h
> index faf4fa911f7f..e90e2f40732a 100644
> --- a/include/uapi/sound/compress_params.h
> +++ b/include/uapi/sound/compress_params.h
> @@ -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:
> + * - @stream_count: Number of streams encoded in each Ogg packet.
> + * - @coupled_count: Number of streams whose decoders are used
> + * for two channels.
> + * - @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.
> */
> --
> 2.34.1
>
Powered by blists - more mailing lists