Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp895243ybt; Tue, 7 Jul 2020 02:58:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJziRLLn+tYDyqgu6ukVk8VvIo2nxEA7adjkZ3wxpPqDavZw9Qd/i077ZM1gB2rKKRF4RMsS X-Received: by 2002:a05:6402:22c1:: with SMTP id dm1mr48448543edb.187.1594115894648; Tue, 07 Jul 2020 02:58:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594115894; cv=none; d=google.com; s=arc-20160816; b=SPcpkKxWACLUdzWJp7Ha0n/ezDagsRwYvB0ok++38Q4RpRTq4Wks/wD7D7asida3Mh m9rhbUNgqaCz2wmu5HmOxKplgrOofuVF/ohF0CgLneT2FD13u+Fve1+710LMtpZmIroJ S2MWf7Aw+VDOEPnKFZGBNpE5jdeHcUVMr2J9KuvGX8Rf5GSvH4erTN2R/3YkvwRN5HR7 c2SyuLqeN8I0lgb/41P0KSifbxxsx8obBgr2iU5NT9j4S/F81NDHEQ0UgtelHPBIE+Zy u7P45CBUv3X6NJvpE/croobSiKu8Y5HFQfG3BF/15vwKrEw/LiqgH7+zuA0k9Xwy+ctZ p3Yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:subject:cc:to:from:message-id:date; bh=e+clf5932+NIQL/m+EeMpIxcD84UijKZ6TzGiPwF4TE=; b=XX4L6Mnu2+y4ctoxgkIg6g8esdsGCg6MDAs4L3MGrmgm9N3eSZU6XNOhQs4RWsRpMH ILRGiXaiAhWNFj+R1ViPqZEauMXtUjkfxAhCQvlTd+zmZgE1jvZnZhad655I5HLp9Dsh dXBkC4QX3XT4UIumDDNHaXO6qWeaazeS7w8aGjVtoSotT/qW63oqFn83yYuQBl66zMLJ lol4mykpv7V345YEaSBszjJpYTXXzi9vmscRaM33GespFrc35rbXZ0qpvMm+cQY/wA0O qHLxwl8i4AtC5PO9fhgdWfDbeKVZVSYBTW/RSJ78lUlej+mHFt5Yd7xTuqBcKHfe83Qf JgDw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ci26si13703921ejc.715.2020.07.07.02.57.50; Tue, 07 Jul 2020 02:58:14 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727995AbgGGJzT (ORCPT + 99 others); Tue, 7 Jul 2020 05:55:19 -0400 Received: from mx2.suse.de ([195.135.220.15]:55964 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725941AbgGGJzT (ORCPT ); Tue, 7 Jul 2020 05:55:19 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 5FB4FAC2D; Tue, 7 Jul 2020 09:55:18 +0000 (UTC) Date: Tue, 07 Jul 2020 11:55:17 +0200 Message-ID: From: Takashi Iwai To: Vinod Koul Cc: Takashi Iwai , Jaroslav Kysela , Amadeusz =?UTF-8?B?U8WCYXdpxYRza2k=?= , Srinivas Kandagatla , Pierre-Louis Bossart , Charles Keepax , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 3/3] ALSA: compress: fix partial_drain completion state In-Reply-To: <20200629134737.105993-4-vkoul@kernel.org> References: <20200629134737.105993-1-vkoul@kernel.org> <20200629134737.105993-4-vkoul@kernel.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 29 Jun 2020 15:47:37 +0200, 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 Applied this one to for-linus branch (while other two are for 5.9), as this is a fix. thanks, Takashi