* [PATCH] docs: sound: describe 'chan_map' member in snd_dec_opus
@ 2025-09-26 16:26 Kriish Sharma
2025-09-27 8:17 ` Takashi Iwai
2025-09-27 11:50 ` Bagas Sanjaya
0 siblings, 2 replies; 6+ messages in thread
From: Kriish Sharma @ 2025-09-26 16:26 UTC (permalink / raw)
To: Vinod Koul, Jaroslav Kysela, Takashi Iwai
Cc: linux-sound, linux-kernel, Kriish Sharma
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@gmail.com>
---
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
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH] docs: sound: describe 'chan_map' member in snd_dec_opus
2025-09-26 16:26 [PATCH] docs: sound: describe 'chan_map' member in snd_dec_opus Kriish Sharma
@ 2025-09-27 8:17 ` Takashi Iwai
2025-09-27 11:59 ` Bagas Sanjaya
2025-09-27 11:50 ` Bagas Sanjaya
1 sibling, 1 reply; 6+ messages in thread
From: Takashi Iwai @ 2025-09-27 8:17 UTC (permalink / raw)
To: Kriish Sharma
Cc: Vinod Koul, Jaroslav Kysela, Takashi Iwai, linux-sound,
linux-kernel, Alexey Klimov
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@gmail.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
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] docs: sound: describe 'chan_map' member in snd_dec_opus
2025-09-26 16:26 [PATCH] docs: sound: describe 'chan_map' member in snd_dec_opus Kriish Sharma
2025-09-27 8:17 ` Takashi Iwai
@ 2025-09-27 11:50 ` Bagas Sanjaya
1 sibling, 0 replies; 6+ messages in thread
From: Bagas Sanjaya @ 2025-09-27 11:50 UTC (permalink / raw)
To: Kriish Sharma, Vinod Koul, Jaroslav Kysela, Takashi Iwai
Cc: linux-sound, linux-kernel
On Fri, Sep 26, 2025 at 04:26:58PM +0000, Kriish Sharma wrote:
> 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.
> */
kernel-doc also supports documenting nested structs in this case:
---- >8 ----
diff --git a/include/uapi/sound/compress_params.h b/include/uapi/sound/compress_params.h
index e90e2f40732a0d..6398a253add5fb 100644
--- a/include/uapi/sound/compress_params.h
+++ b/include/uapi/sound/compress_params.h
@@ -337,13 +337,13 @@ struct snd_dec_ape {
* are expected; values 2..255 are not recommended for playback.
*
* @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.
+ * to decoded channels.
+ * @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.
*/
Thanks.
--
An old man doll... just what I always wanted! - Clara
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH] docs: sound: describe 'chan_map' member in snd_dec_opus
2025-09-27 8:17 ` Takashi Iwai
@ 2025-09-27 11:59 ` Bagas Sanjaya
[not found] ` <CAL4kbRMp912C+xqO4RYnGBO_VSqXJDSkNMgktd04zcUMOn_4-w@mail.gmail.com>
0 siblings, 1 reply; 6+ messages in thread
From: Bagas Sanjaya @ 2025-09-27 11:59 UTC (permalink / raw)
To: Takashi Iwai, Kriish Sharma
Cc: Vinod Koul, Jaroslav Kysela, Takashi Iwai, linux-sound,
linux-kernel, Alexey Klimov
[-- Attachment #1: Type: text/plain, Size: 1041 bytes --]
On Sat, Sep 27, 2025 at 10:17:34AM +0200, Takashi Iwai wrote:
> 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@gmail.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.
In this case, the Fixes: tag should be:
Fixes: 5d36370f3431 ("ALSA: compress: add raw opus codec define and opus decoder structs")
Thanks.
--
An old man doll... just what I always wanted! - Clara
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] docs: sound: describe 'chan_map' member in snd_dec_opus
[not found] ` <CAL4kbRMp912C+xqO4RYnGBO_VSqXJDSkNMgktd04zcUMOn_4-w@mail.gmail.com>
@ 2025-09-27 13:03 ` Kriish Sharma
2025-09-27 13:48 ` Bagas Sanjaya
0 siblings, 1 reply; 6+ messages in thread
From: Kriish Sharma @ 2025-09-27 13:03 UTC (permalink / raw)
To: Bagas Sanjaya
Cc: Takashi Iwai, Vinod Koul, Jaroslav Kysela, Takashi Iwai,
linux-sound, linux-kernel, Alexey Klimov
Apologies my previous message to the list was sent in HTML format
> Thanks for the feedback. Do you prefer me to send a v2 with the Fixes tag and nested struct documentation?
On Sat, Sep 27, 2025 at 6:28 PM Kriish Sharma
<kriish.sharma2006@gmail.com> wrote:
>
> Thanks for the feedback. Do you prefer me to send a v2 with the Fixes tag and nested struct documentation?
>
> On Sat, Sep 27, 2025 at 5:29 PM Bagas Sanjaya <bagasdotme@gmail.com> wrote:
>>
>> On Sat, Sep 27, 2025 at 10:17:34AM +0200, Takashi Iwai wrote:
>> > 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@gmail.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.
>>
>> In this case, the Fixes: tag should be:
>>
>> Fixes: 5d36370f3431 ("ALSA: compress: add raw opus codec define and opus decoder structs")
>>
>> Thanks.
>>
>> --
>> An old man doll... just what I always wanted! - Clara
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] docs: sound: describe 'chan_map' member in snd_dec_opus
2025-09-27 13:03 ` Kriish Sharma
@ 2025-09-27 13:48 ` Bagas Sanjaya
0 siblings, 0 replies; 6+ messages in thread
From: Bagas Sanjaya @ 2025-09-27 13:48 UTC (permalink / raw)
To: Kriish Sharma
Cc: Takashi Iwai, Vinod Koul, Jaroslav Kysela, Takashi Iwai,
linux-sound, linux-kernel, Alexey Klimov
[-- Attachment #1: Type: text/plain, Size: 320 bytes --]
On Sat, Sep 27, 2025 at 06:33:35PM +0530, Kriish Sharma wrote:
> Apologies my previous message to the list was sent in HTML format
>
> > Thanks for the feedback. Do you prefer me to send a v2 with the Fixes tag and nested struct documentation?
Sure!
--
An old man doll... just what I always wanted! - Clara
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2025-09-27 13:48 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-26 16:26 [PATCH] docs: sound: describe 'chan_map' member in snd_dec_opus Kriish Sharma
2025-09-27 8:17 ` Takashi Iwai
2025-09-27 11:59 ` Bagas Sanjaya
[not found] ` <CAL4kbRMp912C+xqO4RYnGBO_VSqXJDSkNMgktd04zcUMOn_4-w@mail.gmail.com>
2025-09-27 13:03 ` Kriish Sharma
2025-09-27 13:48 ` Bagas Sanjaya
2025-09-27 11:50 ` Bagas Sanjaya
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox