[PATCH v32 14/20] docs: describe virtio-sound capture options

From: Joonho Lee via B4 Relay

Date: Fri Nov 13 2026 - 02:06:21 EST


From: Joonho Lee <mynameisjune111@xxxxxxxxx>

Document request-owned capture in the ALSA configuration guide. Describe
`capture_packed_status` as default-off, reading a packed trailer after
returned data while the fixed status scatterlist remains the default.
Describe default-off `capture_pause_restart`: pause uses STOP and
RELEASE, then resume uses PREPARE and START; disabled mode uses STOP and
START while retaining the prepared stream.

Note that on MMU systems request buffers are vmalloc-backed and
page-rounded individually. They remain allocated from hw_params through
hw_free, and capture data is copied into the ALSA ring.

Assisted-by: LLM
Signed-off-by: Joonho Lee <mynameisjune111@xxxxxxxxx>
---
Documentation/admin-guide/kernel-parameters.txt | 14 ++++++++++++++
Documentation/sound/alsa-configuration.rst | 25 +++++++++++++++++++++++++
2 files changed, 39 insertions(+)

diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt
index e75344f4e0cd..ca3fd768b439 100644
--- a/Documentation/admin-guide/kernel-parameters.txt
+++ b/Documentation/admin-guide/kernel-parameters.txt
@@ -8344,6 +8344,20 @@ Kernel parameters

Can be used multiple times for multiple devices.

+ virtio_snd.capture_packed_status= [HW,ALSA]
+ Read an explicitly enabled packed status trailer after
+ the returned capture data. The fixed status scatterlist is
+ used by default.
+ Format: <bool>
+ Default: false.
+
+ virtio_snd.capture_pause_restart= [HW,ALSA]
+ Stop and release the stream when pausing capture. On
+ resume, send PREPARE and START. If disabled, pause uses
+ STOP and START while retaining the prepared stream.
+ Format: <bool>
+ Default: false.
+
vga= [BOOT,X86-32] Select a particular video mode
See Documentation/arch/x86/boot.rst and
Documentation/admin-guide/svga.rst.
diff --git a/Documentation/sound/alsa-configuration.rst b/Documentation/sound/alsa-configuration.rst
index 689eccf6a592..0531a3e3129c 100644
--- a/Documentation/sound/alsa-configuration.rst
+++ b/Documentation/sound/alsa-configuration.rst
@@ -2537,6 +2537,31 @@ midi_devs

This module supports multiple cards.

+Module virtio-snd
+-----------------
+
+Virtio-sound capture receives data into a separate request buffer for each
+PCM period. The driver validates the responses and appends frame-aligned audio
+to the ALSA ring in request order. Valid short responses are retained. Empty
+responses are accepted only during bounded startup or for requests already in
+flight at STOP or PAUSE.
+
+capture_packed_status
+ Read an explicitly enabled packed status trailer after returned capture
+ data. The fixed status scatterlist is used by default.
+ (default = false)
+
+capture_pause_restart
+ Stop and release capture on pause. Resume with PREPARE and START. When
+ disabled, pause uses STOP and START while retaining the prepared stream.
+ (default = false)
+
+On MMU systems, the request buffers are vmalloc-backed and page-rounded
+individually. Allocator rounding can make total additional memory exceed the
+ALSA ring size, especially with small periods. The request buffers remain
+allocated from hw_params until hw_free.
+Captured audio is copied from each request buffer into the ALSA ring.
+
Module snd-virtuoso
-------------------


--
Git-157)