diff mbox series

[v5,2/3] ALSA: compress: document the compress gapless audio state machine

Message ID 20200629134737.105993-3-vkoul@kernel.org (mailing list archive)
State New, archived
Headers show
Series ALSA: compress: Document stream states and fix gapless SM | expand

Commit Message

Vinod Koul June 29, 2020, 1:47 p.m. UTC
Also documented the galpess transitions. Please note that these are not
really stream states, but show how the stream steps in gapless mode

Signed-off-by: Vinod Koul <vkoul@kernel.org>
---
 .../sound/designs/compress-offload.rst        | 32 +++++++++++++++++++
 1 file changed, 32 insertions(+)

Comments

Takashi Iwai July 7, 2020, 9:54 a.m. UTC | #1
On Mon, 29 Jun 2020 15:47:36 +0200,
Vinod Koul wrote:
> 
> Also documented the galpess transitions. Please note that these are not
> really stream states, but show how the stream steps in gapless mode
> 
> Signed-off-by: Vinod Koul <vkoul@kernel.org>

Applied to for-next branch.  Thanks.


Takashi
diff mbox series

Patch

diff --git a/Documentation/sound/designs/compress-offload.rst b/Documentation/sound/designs/compress-offload.rst
index ad89af9b31c9..935f325dbc77 100644
--- a/Documentation/sound/designs/compress-offload.rst
+++ b/Documentation/sound/designs/compress-offload.rst
@@ -250,6 +250,38 @@  Sequence flow for gapless would be:
 
 (note: order for partial_drain and write for next track can be reversed as well)
 
+Gapless Playback SM
+===================
+
+For Gapless, we move from running state to partial drain and back, along
+with setting of meta_data and signalling for next track ::
+
+
+                                        +----------+
+                compr_drain_notify()    |          |
+              +------------------------>|  RUNNING |
+              |                         |          |
+              |                         +----------+
+              |                              |
+              |                              |
+              |                              | compr_next_track()
+              |                              |
+              |                              V
+              |                         +----------+
+              |                         |          |
+              |                         |NEXT_TRACK|
+              |                         |          |
+              |                         +----------+
+              |                              |
+              |                              |
+              |                              | compr_partial_drain()
+              |                              |
+              |                              V
+              |                         +----------+
+              |                         |          |
+              +------------------------ | PARTIAL_ |
+                                        |  DRAIN   |
+                                        +----------+
 
 Not supported
 =============