From patchwork Mon Jun 22 06:58:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 191302 Delivered-To: patch@linaro.org Received: by 2002:a92:1f07:0:0:0:0:0 with SMTP id i7csp783897ile; Sun, 21 Jun 2020 23:58:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwLmPkK67Ms705Q2piT360KhCEhP4ObcMNykAqjUbW8XQXVPbl/EIenx5AdlThlrKnzDSYn X-Received: by 2002:a05:6402:308b:: with SMTP id de11mr15633268edb.181.1592809117311; Sun, 21 Jun 2020 23:58:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592809117; cv=none; d=google.com; s=arc-20160816; b=Ug188IP1OzNLMoHaMASwaoyuJJM/0Q55Pr5eswwz3kfBecbnSP2Q/LtnJM0wNiWP8W MSNNd7qWYdiq+hrxa8HaD0FYPNYGQowmflzz3yZU4tX0Jty/AXVMTVK3PWbl+VCcBANi Fp4NszNm8Fp7upxmmVuiMd2wbNB4+jFCSCGem1GMFoT5b/LtO7gJRayf8Ep8/KmJcE3D 8M+OumbcLd7P0h+QTE/LlPaEdsb92+zXTibvc7kMKDLLVpmJTCdGDEAemPwPhquyqu/X JaTpXKaHapcNU3gXcK/AKtyiEi8jVF8eF+N90U6/byr2VCWLoLVkvDbktlpJnaU4L2KY zN5g== 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=FZ8jOJvv89xEFRHUd9gn5Q8ZF7wewt3A0Kyy1GJRPI4=; b=hDYCZKAAPxg+p7iTsSEema475JtpG4Y2HyzSloKqrlJpbhnEQDPqSEka3TPvHsW4Wx fZu4MOdAtV+Rzy4OziGg+1Y3hOrCl++zNsPOXhH5OHSKa1J4Alep+UZ3+nTDqtvpEw9M cafDncBl871MuEHIcq604mXCtVhkbo+0Av5RnDcrSlWvfZBBE5GInuSIvXZfrAkEBKh5 JfayB8rKRbffGrCwfg1OYaMzd/KXf+Jf+7bIqoPL1IFDbiOLhydbXC9F/Dseve+MVuYP TAIRqxO8AdhiZtDpT8nvi//9tx3uIZvkEfptubrdqysUWN2CKcE55izy0eB+ZCRxsq+M WChg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=XUubVqh7; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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 ss12si8480947ejb.188.2020.06.21.23.58.37; Sun, 21 Jun 2020 23:58:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-arm-msm-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=XUubVqh7; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S1731303AbgFVG6g (ORCPT + 16 others); Mon, 22 Jun 2020 02:58:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:43806 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725933AbgFVG6g (ORCPT ); Mon, 22 Jun 2020 02:58:36 -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 9D6E42543C; Mon, 22 Jun 2020 06:58:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592809115; bh=GqFAi7Q4sHYSuj6BAxMwU4DVplPmfDCh76OdL45s+EM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XUubVqh7SwrB1MbftvIpwdhMm7y6KHzJxeFvVNTH/tD6Xxo5XFxARiUaBkZM8W1kz r50RblSeNtI1MSjlbdZWVJ4r6EGHDEE4S8YxivgVlaOwL0dE1m6u9AM9MRE19IlpgE 7T81WWPH0+y6mERjA2wlJwJ3tM4TTSV9pa3hQ3rI= From: Vinod Koul To: Takashi Iwai , Jaroslav Kysela Cc: linux-arm-msm@vger.kernel.org, Bjorn Andersson , Vinod Koul , Srinivas Kandagatla , Pierre-Louis Bossart , Charles Keepax , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/3] ALSA: compress: document the compress gapless audio state machine Date: Mon, 22 Jun 2020 12:28:10 +0530 Message-Id: <20200622065811.221485-3-vkoul@kernel.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200622065811.221485-1-vkoul@kernel.org> References: <20200622065811.221485-1-vkoul@kernel.org> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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(+) -- 2.26.2 diff --git a/Documentation/sound/designs/compress-offload.rst b/Documentation/sound/designs/compress-offload.rst index 6f86db82298b..0bebfd33b933 100644 --- a/Documentation/sound/designs/compress-offload.rst +++ b/Documentation/sound/designs/compress-offload.rst @@ -251,6 +251,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 =============