Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3074093ybt; Mon, 29 Jun 2020 14:37:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxEvPtqtnFIcMDDNBkoHhOutaYu+nwDH/bPAk4WfxA5zW6Cbh+gagkldldSFIsVQRbtUGl+ X-Received: by 2002:a05:6402:2065:: with SMTP id bd5mr16136023edb.67.1593466650743; Mon, 29 Jun 2020 14:37:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593466650; cv=none; d=google.com; s=arc-20160816; b=EsqsPr2rnujS7brVsGAMhc4wKP1AgUYQa7Nb4TLGWVfYxAOBHPOQqijaZJvusjrpKK HGrdh0gjquh5P5hl2Io9lEf+uCww22JrhPCIxbG2LG7u1mB3iSYsdyFX/+twtM0lId4h X3DV9nX2FvDVZNRwCHm+mqq6Dh8CPiIocOwW+RxhDjTI7ksHw1ERwVdtn6XtJnyefx+D eZCFi9QKH/hmK368M8rns8YOJm/nH+WZmSkopSuDVXI/XOJl7iiJs/nyyfTA5Ya+8Es3 A2T5wFiJRROcK6AflLWj6AcKVIQTD3oPbGCSbc1j05IBIbIKWnsAyi0NGSnic/MNrD5b LdUQ== 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=m4TwNjeqgpylG2BN2Ad8P8iYJqoGS8yT3COIWm/7IFQ=; b=gqzyLFlIShaVLAQtK+3OfyMKL0OuBRr6jquEX74UO+OUY+2OeoPJZZ2DnNwdhpj2Jf PAk34R6dTp68ayhxQtUHbi/lt8REveG2msm+FtV968SVeFKtu3d9OaVd61nOLZsBiH4o I3cxfxg3eSUs+fMROYn7gbBxuffC1TBGpIiDvBBmxaIqICGD961n9svO9JJmTccetAWe h9b9WODQv7sKB+r70TudEtgdlo+wH1cnjnRDkKOhy4e7jgrV3L1w1I5fzbMFr/rXms9n 9F17yWNn0HB7NwiGsUeld3XGEChBgZfFzCsSQjeWNu0Vl9TywHxsCQ+fkVyyQMO3Vir0 oNHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=l201X5wT; 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 e24si498512eje.102.2020.06.29.14.37.07; Mon, 29 Jun 2020 14:37:30 -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=l201X5wT; 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 S2403820AbgF2Vga (ORCPT + 99 others); Mon, 29 Jun 2020 17:36:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:60652 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728437AbgF2Skl (ORCPT ); Mon, 29 Jun 2020 14:40:41 -0400 Received: from localhost.localdomain (unknown [122.182.251.219]) (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 DB91E23D97; Mon, 29 Jun 2020 13:47:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593438477; bh=0OCHxp2KnCTCXtsx1UXOGT2ygj5ktWr6M3PFjMMVoqw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=l201X5wTivo4ptCZQWRZ9vuc4FuXXcWSwmjcIg9j7JYMjIzAZgXv3aYqCpDRGyNZi eVFN152rI1WSYbIgnB0DnSp48HIua/grH+JEPa+fUoI97y+of7DrnhxmIsOI2HjTDV OIfyP81chRrF9XIv+lQ2WFUWp2FPpl3aNX8ORk2o= From: Vinod Koul To: Takashi Iwai , Jaroslav Kysela Cc: Vinod Koul , =?UTF-8?q?Amadeusz=20S=C5=82awi=C5=84ski?= , Srinivas Kandagatla , Pierre-Louis Bossart , Charles Keepax , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [PATCH v5 2/3] ALSA: compress: document the compress gapless audio state machine Date: Mon, 29 Jun 2020 19:17:36 +0530 Message-Id: <20200629134737.105993-3-vkoul@kernel.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200629134737.105993-1-vkoul@kernel.org> References: <20200629134737.105993-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 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 ============= -- 2.26.2