From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 E0446CA600B for ; Thu, 8 Oct 2026 10:39:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=vD4t4hqOajda+K4iCLnRNhiBZ9LH5OZBfYA1ySNE5WI=; b=ytxtFa00y71+3h fvGYhjQzShgLQ6Br0jD/Mx47K096ac59GE0laEJbAmdn2BSQSiad1nWqIhvFcU9J4ixU3FSwcNuFP 7Tr8ajxq48+9/J0/laNBwwhvs5pLtoeuY9mACQ+kHHs5mQB9xreJpshdfMjG2pUV4F8LCuBzotFVF dcoPBTwvdQqUW4ibnWqDWnUKwTFbzpmpXgwbdzAtKtrAv+m/0VwOP/VdlOUvQXTXOqj5vJrD627Ks d8qtQV09ve06xrDtMXD3dVA5/2GvtngKVVBY9ux9xqMkdWwebSWs5navyHqaETAB3Cc53i29BSvB3 fFt8y9iP/zbFPY1qg2gQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1xElWo-000000049Fo-0Bv0; Thu, 08 Oct 2026 10:39:10 +0000 Received: from mail-dy1-x1333.google.com ([2607:f8b0:4864:20::1333]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1xElWk-000000049EM-0dg3 for linux-rockchip@lists.infradead.org; Thu, 08 Oct 2026 10:39:08 +0000 Received: by mail-dy1-x1333.google.com with SMTP id 5a478bee46e88-33bf40b0c8bso1963412eec.0 for ; Thu, 08 Oct 2026 03:39:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1791455945; x=1792060745; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=2hpUwEsGMPkIBbYBiNYjLbx5Pg/A2Eh/bQSXX+ThuQY=; b=QyGNrKQVSN/Hiz/lZtwaXuFAfy6H75RCUSqfcL26FUW6Yrvw3KEtzVzKpJaRIJX7Oj SfJ7etzCpS85POacHMKu/ExJVV25kZBFokoLwS3e8WQ/UX16X7mD9Ez5YFy4qaMBi7aQ 2lb8co2hrEv8tziY+b3Hn92Ow2t3E5/vCrh9SF0n0YAVa1HKLjDvkSLOyY5321+qjt49 Hzc+O/VhgT6yC5+8+G+ofomKyyqOPNnPFkHiwA5WRqT78NGqoc1b/35TIgfKuXNPOOtc TVjc4NR9bsxdU9Kcx5vPwKmMqNUbMoE6ucXsZ/imtoId4yCdDzUdexwctMfOlZHMeYU4 r1Dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791455945; x=1792060745; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=2hpUwEsGMPkIBbYBiNYjLbx5Pg/A2Eh/bQSXX+ThuQY=; b=yE2gIbk79zFHjOVSMU7ExMK2/u63uEyxsVLp5aeYMEHYwSJ6XebEfN2xQGjJZquidN Ntil2RlHOnZ02Vf8AMsRJseJJfX8ZGN05Thg1FvFOXKXUb58KtSh9UHBO4hKMXKNEFr1 b2u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X-Received: by 2002:a05:693c:8819:10b0:352:2e15:49a9 with SMTP id 5a478bee46e88-3522e154b4amr965099eec.33.1791455944704; Thu, 08 Oct 2026 03:39:04 -0700 (PDT) Received: from phuc-desktop.. ([183.91.15.56]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3517810b895sm7496369eec.17.2026.10.08.03.38.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2026 03:39:03 -0700 (PDT) From: phucduc.bui@gmail.com To: Vijendar Mukunda , Venkata Prasad Potturu , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , povik+lin@cutebit.org, Claudiu Beznea , Andrei Simion , Nicolas Ferre , Alexandre Belloni , David Rhodes , Richard Fitzgerald , Shengjiu Wang , Xiubo Li , Fabio Estevam , Nicolin Chen , Frank Li , Sascha Hauer , Pengutronix Kernel Team , Cezary Rojewski , Peter Ujfalusi , Bard Liao , Kai Vehmanen , Pierre-Louis Bossart , Kuninori Morimoto , Geert Uytterhoeven , Magnus Damm , Biju Das , Lad Prabhakar , Heiko Stuebner Subject: [PATCH 00/24] ASoC: Fix constraint return value handling Date: Thu, 8 Oct 2026 17:38:07 +0700 Message-ID: <20261008103831.542533-1-phucduc.bui@gmail.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261008_033906_192409_ECDF16AB X-CRM114-Status: UNSURE ( 8.21 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: imx@lists.linux.dev, wangdicheng , Kees Cook , Sang-Heon Jeon , Pengpeng Hou , Bo Shen , Neo Chang , linux-rockchip@lists.infradead.org, bui duc phuc , Chris Bainbridge , Charles Keepax , linux-sound@vger.kernel.org, Ravulapati Vishnu vardhan rao , u.kleine-koenig@baylibre.com, Zain Aboobacker , Bjorn Helgaas , Md Shofiqul Islam , linux-arm-kernel@lists.infradead.org, Krzysztof Kozlowski , Ajit Kumar Pandey , patches@opensource.cirrus.com, Linus Walleij , linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Vinod Koul , asahi@lists.linux.dev, Hemanth Selam , linuxppc-dev@lists.ozlabs.org, Syed Saba Kareem Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org From: bui duc phuc Hi all, snd_pcm_hw_constraint_minmax() and snd_pcm_hw_constraint_integer() may return positive values on success. However, ASoC only marks the DAI, link, or component as started or opened when the corresponding callback returns 0. This series fixes affected ASoC drivers to return 0 on success and properly handle rollback paths. Found by manual code inspection. Compile-tested only. Best regards, Phuc bui duc phuc (24): ASoC: amd: acp: Fix .close() being skipped on rollback ASoC: amd: ps: Fix acp63_pdm_dma_close() being skipped on rollback ASoC: amd: ps: Fix acp63_sdw_dma_close() being skipped on rollback ASoC: amd: raven: Fix acp3x_dma_close() being skipped on rollback ASoC: amd: renoir: Fix acp_pdm_dma_close() being skipped on rollback ASoC: amd: vangogh: Fix acp5x_dma_close() being skipped on rollback ASoC: amd: yc: Fix acp6x_pdm_dma_close() being skipped on rollback ASoC: apple: mca: Ensure the DAI is marked as started on success ASoC: atmel: atmel-pcm-pdc: Fix atmel_pcm_close() being skipped on rollback ASoC: codecs: cs42l42: Ensure the DAI is marked as started on success ASoC: codecs: nau8325: Ensure the DAI is marked as started on success ASoC: codecs: nau8540: Ensure the DAI is marked as started on success ASoC: codecs: nau8821: Ensure the DAI is marked as started on success ASoC: codecs: nau8824: Ensure the DAI is marked as started on success ASoC: codecs: nau8825: Ensure the DAI is marked as started on success ASoC: codecs: wm8580: Ensure the DAI is marked as started on success ASoC: codecs: wm8782: Ensure the DAI is marked as started on success ASoC: imx-pcm-rpmsg: Fix imx_rpmsg_pcm_close() being skipped on rollback ASoC: intel: atom: Fix .shutdown() being skipped on rollback ASoC: renesas: fsi: Ensure the component is marked as opened on success ASoC: renesas: msiof: Fix msiof_close() being skipped on rollback ASoC: renesas: rz-ssi: Ensure the component is marked as opened on success ASoC: rockchip: rk3399_gru_sound: Mark the link as started on success ASoC: rockchip: rockchip_max98090: Mark the link as started on success sound/soc/amd/acp/acp-platform.c | 2 +- sound/soc/amd/ps/ps-pdm-dma.c | 2 +- sound/soc/amd/ps/ps-sdw-dma.c | 2 +- sound/soc/amd/raven/acp3x-pcm-dma.c | 2 +- sound/soc/amd/renoir/acp3x-pdm-dma.c | 2 +- sound/soc/amd/vangogh/acp5x-pcm-dma.c | 2 +- sound/soc/amd/yc/acp6x-pdm-dma.c | 2 +- sound/soc/apple/mca.c | 11 ++++++++--- sound/soc/atmel/atmel-pcm-pdc.c | 2 ++ sound/soc/codecs/cs42l42.c | 11 ++++++++--- sound/soc/codecs/nau8325.c | 11 ++++++++--- sound/soc/codecs/nau8540.c | 11 ++++++++--- sound/soc/codecs/nau8821.c | 11 ++++++++--- sound/soc/codecs/nau8824.c | 11 ++++++++--- sound/soc/codecs/nau8825.c | 11 ++++++++--- sound/soc/codecs/wm8580.c | 10 ++++++++-- sound/soc/codecs/wm8782.c | 7 ++++++- sound/soc/fsl/imx-pcm-rpmsg.c | 2 +- sound/soc/intel/atom/sst-mfld-platform-pcm.c | 2 +- sound/soc/renesas/fsi.c | 6 ++++-- sound/soc/renesas/rcar/msiof.c | 6 ++++-- sound/soc/renesas/rz-ssi.c | 18 +++++++++++++++--- sound/soc/rockchip/rk3399_gru_sound.c | 9 +++++++-- sound/soc/rockchip/rockchip_max98090.c | 10 ++++++++-- 24 files changed, 119 insertions(+), 44 deletions(-) -- 2.43.0 _______________________________________________ Linux-rockchip mailing list Linux-rockchip@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-rockchip