Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp702681ybt; Wed, 1 Jul 2020 08:07:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxsNiSn5UH0tyGljSmruQVc0We9S8eik3O8wzJ84j7C40fdXhh+n7my9Y/x7sWD/4lmpcfQ X-Received: by 2002:a17:906:2988:: with SMTP id x8mr15134688eje.141.1593616072632; Wed, 01 Jul 2020 08:07:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593616072; cv=none; d=google.com; s=arc-20160816; b=CPdlY+2y5OyhXGnKYUHEV7Zn9yegPAVY6tsFvB7oberIk3JWt0XL73I7VIwy56xFYC iF/5/zYznfdz/aNqkNPUalU8iiOeDPLHq0fqIFx1/0SuEpIRpGpm8mvS2rh81b00AKFL nRKHltXrKRGpbdXQU0UQ9FkG7/LkX9+NEOUE3pNLv+4hTv+EZ+AGABk+lqtq8K+JkWiK UOfXebS8r9mu0F9eFXLOdOH+n8QmucmBGJ5F8z13lHM7R1ZropY1GqEWTvY54Q8ZAhal sgxM2Hyp2x4VkGTdGJzcKlbFFlUzxa6v2elZ9emqNHTNDgSfH+pMKJxvFa1pa8O2gW5X LgNQ== 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=zDsfGQnn4M8AF89x+k8sEBKtnujkUVktY+42iqU3BXw=; b=rg8aYnwORlZQfmhkxsLt26hGmjbXUk1ri59Swp5mjxvEpu4TTNeYIlTpxVZcgKaWBX GLtSTacowhSl9sQMpNvjwGJvS18s0eKNaQ722V2B+XdqrrqvvBJgumSqx+9SpmZhJGpt wG1yfy7QXZZ3dATnKxwOv0aIePRCG0igEYisf4lhAEJI0YXLYiQ/PFw2NIMHSr50XID8 n4K1ttmFnWFd+R+ngGotVttZITqdumGNDIfpVcb4Fef6p2ZVXvZssRLfAp9k1WPwlCkP jW924mSXTiw8jnErRVpW59XGROOIbaJh+mVi1cwkBGKKSzLhs7HnV9uwt2fQmjaFq8tE m6Zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0d5o1da3; 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 t2si3780941eje.689.2020.07.01.08.07.29; Wed, 01 Jul 2020 08:07:52 -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=0d5o1da3; 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 S1731652AbgGAPEQ (ORCPT + 99 others); Wed, 1 Jul 2020 11:04:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:47104 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731039AbgGAPEQ (ORCPT ); Wed, 1 Jul 2020 11:04:16 -0400 Received: from localhost (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 5C42420702; Wed, 1 Jul 2020 15:04:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593615856; bh=hjhEj1kmt32ON01AiaQ46U1TlOLLBrgSiID3pKEF4Ww=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=0d5o1da3fLwEiMclM/eWi3jgM7r4JKqDohkZXx+8IBbCn5CoDZhw/VYem/vlOxWzR Q5z6bLbTTb1h4nKrjEff2GI5zs/zuzsqDe1Ak1P27ebiCBhnasykBTdv+hhWIiJZUa 6Om3t8BS2MQQoyi8YUufZF6UAIzhhrRBh8QRqZLA= Date: Wed, 1 Jul 2020 20:34:12 +0530 From: Vinod Koul To: Charles Keepax Cc: Takashi Iwai , Jaroslav Kysela , Amadeusz =?utf-8?B?U8WCYXdpxYRza2k=?= , Srinivas Kandagatla , Pierre-Louis Bossart , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 3/3] ALSA: compress: fix partial_drain completion state Message-ID: <20200701150412.GC2599@vkoul-mobl> References: <20200629134737.105993-1-vkoul@kernel.org> <20200629134737.105993-4-vkoul@kernel.org> <20200701142032.GG71940@ediswmail.ad.cirrus.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200701142032.GG71940@ediswmail.ad.cirrus.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01-07-20, 14:20, Charles Keepax wrote: > On Mon, Jun 29, 2020 at 07:17:37PM +0530, Vinod Koul wrote: > > On partial_drain completion we should be in SNDRV_PCM_STATE_RUNNING > > state, so set that for partially draining streams in > > snd_compr_drain_notify() and use a flag for partially draining streams > > > > While at it, add locks for stream state change in > > snd_compr_drain_notify() as well. > > > > Fixes: f44f2a5417b2 ("ALSA: compress: fix drain calls blocking other compress functions (v6)") > > Reviewed-by: Srinivas Kandagatla > > Tested-by: Srinivas Kandagatla > > Signed-off-by: Vinod Koul > > --- > > Worth noting I haven't actually tested the gapless, but keeps all > the compressed capture stuff happy. Thanks for testing and review Charles. Btw Srini is adding support to fcplay so that we can do gapless testing without using HALs/players. Now that we have an public board (RB3) where compress works out of box, we should build more things on top :) -- ~Vinod