Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3285848ybt; Mon, 22 Jun 2020 21:12:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxBB8Y4CPNiu2QAeEIHMuDoAMfC8PAoZwp4OvBAJRXxnMc55V2+vGfSMk5VTKl/6hxkBtkk X-Received: by 2002:a05:6402:1803:: with SMTP id g3mr41920edy.377.1592885540966; Mon, 22 Jun 2020 21:12:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592885540; cv=none; d=google.com; s=arc-20160816; b=OoIRgEpNfTBXOHwUgKtJnIYiLXbww4ThYMWk2TNzho5fIcWHN0vgO+pPUvpo1p/TQm vH8uAEhj15nmw6dRmV7VhcpKshlg2dlWzeX7u3OFKLIhog4XiJw2AZNGTZDysyQLfkBl 5eyEjY3FEUGaeJpe6l9YuYtTcjQWDozhp3ApD4M8yAOSRZk90EV7eH7rC97g5g2DPhCu I2FWEbx+kn5sHjEmiglUoerK6LpQ17ig1rjNSYwj8kTUzmGQ7mlFGSUD64NrAqmFKsOs HmQTg4aAvC2RAUaDX2/9nreIqFlZ07v2P5sWhZOIA1eLPU8Yyxgbsr90IB9r7n8dxQGS vGjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=2Z3n0Z6AHY5kQXCszhSUmMBZeeGSbxVzZrr+wzUVDng=; b=nHr070g82ROUkXNHqGVpjBbYEPfTA5LSkqCGtIaaI1ObambpRKGcx9aDvWU9tBAhVt ou6RdMcpXIuGYn3aI5iV6MO83KrsH0TrNRJ1gktaWJW+t3VRI8hnxsCFTuxQH/oVuQ1Y x6VRXdKQRXk+SIxK7EJLj+/BE+goFqTUzV56sSnb1UFif944heHCJzbKbifdd86/y+hz sJgMhgtI+iwOkAEpEfh7pYUnz0Ax0tdjVutxhHrndQCLKPbL3xDyVWnaVqIaKo5VlBs8 aYPguVVdBdHX7kuJjU6bVNlzZI3iR/kdiii/ukgcgvAu4LMEwBFboBSf5C2R2uhtGB41 V8Tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="GT81H/dR"; 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 c3si9966277edw.365.2020.06.22.21.11.58; Mon, 22 Jun 2020 21:12:20 -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="GT81H/dR"; 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 S1732230AbgFWEJR (ORCPT + 99 others); Tue, 23 Jun 2020 00:09:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:46204 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732100AbgFWEJO (ORCPT ); Tue, 23 Jun 2020 00:09:14 -0400 Received: from localhost (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 3FE95208A7; Tue, 23 Jun 2020 04:09:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592885354; bh=ZRJiyt96N9POXJVP7NHy1iE13kRK0Ty6Vm6e9HZ9pdc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GT81H/dR7h27MNGFDfBssIYh31YIzJ0kJgkvPdw3ZuIg8vEN+VBiNFzSUx/clnqV5 76i9o1tJgtjDMR2ioYpVIi2dBvy3ZTg3mirN4jIYKzIavI3R3W8rpyI21vi+QWnlAQ 0B9wtwCgZe+YGtvP+uiQwBuU3jgbe3eGPcaI+oac= Date: Tue, 23 Jun 2020 09:39:10 +0530 From: Vinod Koul To: Charles Keepax Cc: Pierre-Louis Bossart , Takashi Iwai , Jaroslav Kysela , alsa-devel@alsa-project.org, linux-arm-msm@vger.kernel.org, Bjorn Andersson , Srinivas Kandagatla , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/3] ALSA: compress: document the compress audio state machine Message-ID: <20200623040910.GP2324254@vkoul-mobl> References: <20200622065811.221485-1-vkoul@kernel.org> <20200622065811.221485-2-vkoul@kernel.org> <800a2632-b263-500f-707e-c1ce94ce92d4@linux.intel.com> <20200622151334.GW71940@ediswmail.ad.cirrus.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200622151334.GW71940@ediswmail.ad.cirrus.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 22-06-20, 15:13, Charles Keepax wrote: > On Mon, Jun 22, 2020 at 08:28:48AM -0500, Pierre-Louis Bossart wrote: > > On 6/22/20 1:58 AM, Vinod Koul wrote: +----------+ > > a) can you clarify if we can go from running to free directly? is > > this really a legit transition? There's already the option of doing > > a stop and a a drain. > > > > This is allowed in the current code, the kernel sends the stop > internally in this case, so it kinda does go through the setup > state just not from the users view point. I am not sure I have a > good handle on if that makes sense or not. The idea was to stop first so that we can handle dmas which might be setup (like running/paused/prepared). So we should stop first and then free up. But i think it was an overkill... :) > > c) no way to stop a paused stream? > > Currently the code does allow this and it certainly makes sense so > should probably be added. Yes will add -- ~Vinod