* [PATCH RESEND] ALSA: doc: Fix PCM interface section typos
@ 2023-01-30 16:29 Miquel Raynal
2023-01-31 0:50 ` Takashi Sakamoto
2023-01-31 8:36 ` Takashi Iwai
0 siblings, 2 replies; 3+ messages in thread
From: Miquel Raynal @ 2023-01-30 16:29 UTC (permalink / raw)
To: Jaroslav Kysela, Takashi Iwai, Jonathan Corbet
Cc: alsa-devel, linux-doc, linux-kernel, Miquel Raynal
Fix two mistakes in the PCM interface section:
1/ Members of the snd_pcm_hardware structure are channels_{min,max}
and not channel_{min,max} (mind the 's').
2/ Another sentence is incomplete as the reference to one structure
member (period_bytes_max) is missing.
There is no relevant 'Fixes:' tag to apply as both typos predate the
Git era.
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
---
Hello, I wrote and sent this patch in 2019 but I likely only Cc'd Jon
and the doc ML, which might have not been enough, so just in case, here
is a resend.
Link: https://lore.kernel.org/linux-doc/20190829145512.3752-1-miquel.raynal@bootlin.com/
.../sound/kernel-api/writing-an-alsa-driver.rst | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/Documentation/sound/kernel-api/writing-an-alsa-driver.rst b/Documentation/sound/kernel-api/writing-an-alsa-driver.rst
index 07a620c5ca74..5c9523b7d55c 100644
--- a/Documentation/sound/kernel-api/writing-an-alsa-driver.rst
+++ b/Documentation/sound/kernel-api/writing-an-alsa-driver.rst
@@ -1720,16 +1720,16 @@ Typically, you'll have a hardware descriptor as below:
- ``rate_min`` and ``rate_max`` define the minimum and maximum sample
rate. This should correspond somehow to ``rates`` bits.
-- ``channel_min`` and ``channel_max`` define, as you might already
+- ``channels_min`` and ``channels_max`` define, as you might already
expected, the minimum and maximum number of channels.
- ``buffer_bytes_max`` defines the maximum buffer size in
bytes. There is no ``buffer_bytes_min`` field, since it can be
calculated from the minimum period size and the minimum number of
- periods. Meanwhile, ``period_bytes_min`` and define the minimum and
- maximum size of the period in bytes. ``periods_max`` and
- ``periods_min`` define the maximum and minimum number of periods in
- the buffer.
+ periods. Meanwhile, ``period_bytes_min`` and ``period_bytes_max``
+ define the minimum and maximum size of the period in bytes.
+ ``periods_max`` and ``periods_min`` define the maximum and minimum
+ number of periods in the buffer.
The “period” is a term that corresponds to a fragment in the OSS
world. The period defines the size at which a PCM interrupt is
--
2.34.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH RESEND] ALSA: doc: Fix PCM interface section typos
2023-01-30 16:29 [PATCH RESEND] ALSA: doc: Fix PCM interface section typos Miquel Raynal
@ 2023-01-31 0:50 ` Takashi Sakamoto
2023-01-31 8:36 ` Takashi Iwai
1 sibling, 0 replies; 3+ messages in thread
From: Takashi Sakamoto @ 2023-01-31 0:50 UTC (permalink / raw)
To: Miquel Raynal
Cc: Jaroslav Kysela, Takashi Iwai, Jonathan Corbet, alsa-devel,
linux-kernel, linux-doc
Hi,
On Mon, Jan 30, 2023 at 05:29:24PM +0100, Miquel Raynal wrote:
> Fix two mistakes in the PCM interface section:
> 1/ Members of the snd_pcm_hardware structure are channels_{min,max}
> and not channel_{min,max} (mind the 's').
> 2/ Another sentence is incomplete as the reference to one structure
> member (period_bytes_max) is missing.
>
> There is no relevant 'Fixes:' tag to apply as both typos predate the
> Git era.
>
> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
> ---
>
> Hello, I wrote and sent this patch in 2019 but I likely only Cc'd Jon
> and the doc ML, which might have not been enough, so just in case, here
> is a resend.
> Link: https://lore.kernel.org/linux-doc/20190829145512.3752-1-miquel.raynal@bootlin.com/
>
> .../sound/kernel-api/writing-an-alsa-driver.rst | 10 +++++-----
> 1 file changed, 5 insertions(+), 5 deletions(-)
Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Thanks for your long patience.
Regards
Takashi Sakamoto
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH RESEND] ALSA: doc: Fix PCM interface section typos
2023-01-30 16:29 [PATCH RESEND] ALSA: doc: Fix PCM interface section typos Miquel Raynal
2023-01-31 0:50 ` Takashi Sakamoto
@ 2023-01-31 8:36 ` Takashi Iwai
1 sibling, 0 replies; 3+ messages in thread
From: Takashi Iwai @ 2023-01-31 8:36 UTC (permalink / raw)
To: Miquel Raynal
Cc: Jaroslav Kysela, Takashi Iwai, Jonathan Corbet, alsa-devel,
linux-doc, linux-kernel
On Mon, 30 Jan 2023 17:29:24 +0100,
Miquel Raynal wrote:
>
> Fix two mistakes in the PCM interface section:
> 1/ Members of the snd_pcm_hardware structure are channels_{min,max}
> and not channel_{min,max} (mind the 's').
> 2/ Another sentence is incomplete as the reference to one structure
> member (period_bytes_max) is missing.
>
> There is no relevant 'Fixes:' tag to apply as both typos predate the
> Git era.
>
> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
> ---
>
> Hello, I wrote and sent this patch in 2019 but I likely only Cc'd Jon
> and the doc ML, which might have not been enough, so just in case, here
> is a resend.
> Link: https://lore.kernel.org/linux-doc/20190829145512.3752-1-miquel.raynal@bootlin.com/
Thanks, applied now.
Takashi
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-01-31 8:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-30 16:29 [PATCH RESEND] ALSA: doc: Fix PCM interface section typos Miquel Raynal
2023-01-31 0:50 ` Takashi Sakamoto
2023-01-31 8:36 ` Takashi Iwai
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).