Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8B449C77B73 for ; Thu, 18 May 2023 22:31:09 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 6C0353E7; Fri, 19 May 2023 00:30:17 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 6C0353E7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1684449067; bh=2VgBUzVlnEVpOIgXOTxYbz1FuwxJ5i+ZlUpDBnLHX94=; h=From:To:Cc:In-Reply-To:References:Subject:Date:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=D1jTJzYvKwfNtJkHSW0k1CFTKG07cB4HA6p8s71ga/lB5EF+PkiBUx/wcs+zR2O20 QzsdnfHPErntOJls5YKHfVZDi6Z4iI3bS5oj66pFxibHmKN1v86Da60lVYqKzWzZSF ZU2yEKnxSuPcdBYsbIey7h67Xrq6S2EL4LrFoHDE= Received: by alsa1.perex.cz (Postfix, from userid 50401) id A91D1F8055A; Fri, 19 May 2023 00:29:27 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 0D07DF80544; Fri, 19 May 2023 00:29:27 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 5BB4BF80272; Fri, 19 May 2023 00:29:22 +0200 (CEST) Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 77C02F8024E for ; Fri, 19 May 2023 00:29:16 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 77C02F8024E Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=OMKjk3kK Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 01455651F1; Thu, 18 May 2023 22:29:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 405C4C4339C; Thu, 18 May 2023 22:29:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684448953; bh=2VgBUzVlnEVpOIgXOTxYbz1FuwxJ5i+ZlUpDBnLHX94=; h=From:To:Cc:In-Reply-To:References:Subject:Date:From; b=OMKjk3kKSYoA8hoMDfTd0/mGocjletLSYjT9vSrun2PJ4svWG96s6X8kiakse+4Dj 5/vBANTdjVKQZ705gkz/Lb/nverf8xWL3MV+mBa3pxErhHX2FB3cxZTac9VStQ6uNC BiJbx7u28xlEVvnOzRN+Ebl9Clp27hJjOBtpFp/zndho28tBT4QPCM4BkdXEoQEgCZ bFfrQpTJi7RQ4uwYLTX9IWX6GTY5Mz7e+jXoorR91YG3MEwxfruVg5546yVUgKEs0C fvGxpEbd26EVdwROBMXVa6XybDaqDLbpijI+vktNMJyIO0Lq84waXtvEjSLd9VR0PS GnHTx6juvxo+Q== From: Mark Brown To: alsa-devel@alsa-project.org, Pierre-Louis Bossart Cc: tiwai@suse.de, Kuninori Morimoto , Ranjani Sridharan , Bard Liao In-Reply-To: <20230517185731.487124-1-pierre-louis.bossart@linux.intel.com> References: <20230517185731.487124-1-pierre-louis.bossart@linux.intel.com> Subject: Re: [PATCH] ASoC: soc-pcm: test if a BE can be prepared Message-Id: <168444895201.494451.12117820918207580971.b4-ty@kernel.org> Date: Fri, 19 May 2023 07:29:12 +0900 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: b4 0.13-dev-bfdf5 Message-ID-Hash: LDTACEQTTBMVXSBCXSH67EPSLW5KTLXH X-Message-ID-Hash: LDTACEQTTBMVXSBCXSH67EPSLW5KTLXH X-MailFrom: broonie@kernel.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: <> List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On Wed, 17 May 2023 13:57:31 -0500, Pierre-Louis Bossart wrote: > In the BE hw_params configuration, the existing code checks if any of the > existing FEs are prepared, running, paused or suspended - and skips the > configuration in those cases. This allows multiple calls of hw_params > which the ALSA state machine supports. > > This check is not handled for the prepare stage, which can lead to the > same BE being prepared multiple times. This patch adds a check similar to > that of the hw_params, with the main difference being that the suspended > state is allowed: the ALSA state machine allows a transition from > suspended to prepared with hw_params skipped. > > [...] Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/1] ASoC: soc-pcm: test if a BE can be prepared commit: e123036be377ddf628226a7c6d4f9af5efd113d3 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark