Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1668968ybt; Thu, 25 Jun 2020 11:13:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzmFVNheXMPQvSz11wr9xNh9QY0urbEeuG2sr2xwP3W9WQMtwexasN4VMMoat6uMH3lnKmO X-Received: by 2002:a17:906:191a:: with SMTP id a26mr21317967eje.315.1593108831324; Thu, 25 Jun 2020 11:13:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593108831; cv=none; d=google.com; s=arc-20160816; b=qKPPM+xPLc6MwPYpKWqenC7ADb4EQkWXtlHHhi1eg0BwzEngAF6C5AEYgZ/mP+t6CJ 7ccVBwhoZF9PzrkNVn8FqIGHnZMKSCBMuATdjYoP8u5+OLfNix+WyuNdBNq4DpzldYNP iHQCZQd4bHwEk8/449+RVK+xTcY1bECDtTPEIZZGJjl/ViyuFdAAMeb4QU7FWkmXMRzN /rbVzTkB9n8hPsPf3yvi0qPAgHfEQ+2uIVLRFie/8c6EuXnylsMd2HaZrvWzY+k3NOFa Nr8VXXug5J5RBjurUFD4ncEwfTzpKo3kpvU5YufOSqpO/oNoce8n/KxLS5jX/DCQdg9b dMQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=wiQ4olsf/eNqO5MIUqYsjxchGKjXTIqdgUcfnsE5i8o=; b=bb9ZR82fZMVLpgJlHWrnZ32katK+vELiW3IM7PHQhES5Me4J0sDyKtVQhABwCfoj8b kRbcz8N0TWlaT/cWtqu+RkRvzwcnQCS8Czj5v9pClb+ss/hewxvqhFgy0GZ/mUeF3gYm hZkE3QdBUefleaTm25NY7oB+gVftQStXjZd3oMX25DZnU4FK0vqhOqlP/XzhvMdrA3gt DUVPUu84XDIl4WqRXKSw/hyPaENPaJxArothYAfIms0fsz0vfKfBHvRMdXdEcOpWW1ya iXGkLrw6biEldOTgzIzYvsdywI2BBIZrBNyC7MLzy65p0hA4lTcodxISoHIvkEgbOcjN 1A4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="oZm/TjUb"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v12si2964562eds.85.2020.06.25.11.13.27; Thu, 25 Jun 2020 11:13:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="oZm/TjUb"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406054AbgFYPrP (ORCPT + 99 others); Thu, 25 Jun 2020 11:47:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:44458 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405858AbgFYPrL (ORCPT ); Thu, 25 Jun 2020 11:47:11 -0400 Received: from localhost.localdomain (unknown [171.61.66.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 14C1720706; Thu, 25 Jun 2020 15:47:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593100031; bh=hx7r4O1r7ywjtPb9iFcLRAnuQzWlpCbea5qfWNcioug=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oZm/TjUbqbsyhFwi+vO160VREwyB/Ptj+AzI/dHKIQyBzKF8PDtkXXUgI6FdSpUTP 3hO4cs/IFrU5uZsTp/vKf/BiqWFMw7XmmC89ONWDzic9aPDHvhh2hKoFgKuSzSSeoQ 3m/VOfmebBHThJe1IdGZmNBbdV+jdU+w9WW6FESk= From: Vinod Koul To: Takashi Iwai , Jaroslav Kysela Cc: Vinod Koul , Srinivas Kandagatla , Pierre-Louis Bossart , Charles Keepax , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 2/3] ALSA: compress: document the compress gapless audio state machine Date: Thu, 25 Jun 2020 21:16:50 +0530 Message-Id: <20200625154651.99758-3-vkoul@kernel.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200625154651.99758-1-vkoul@kernel.org> References: <20200625154651.99758-1-vkoul@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- .../sound/designs/compress-offload.rst | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/Documentation/sound/designs/compress-offload.rst b/Documentation/sound/designs/compress-offload.rst index b6e9025ae105..82950dbbc4a9 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 ============= -- 2.26.2