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 DBBB4C982FA for ; Tue, 22 Sep 2026 09:53:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=nARjhrFD1a4uFrGP/wTAfcQAeQqUTGrmqUP9jR7qHek=; b=n8L1QA2RGAiiuQIvvPhz+yWMYM l9IBDrD/luuYvBmNUZkQqI0oBMgmEt/ceMj4bXhGQXjzv9ZX37fo7wK7qWfTsxCioidR1HBUKjq1y nrLst3QO5DJ61bWZH+DEmfbp7O+PdWAlDPFs+tAo0t6hrVN7p7rKXdFAeZOQQPU430kviyhfyqGYU c8yeSvoALyLaZ90cQTYb6qaEQ0G/r8gZUjKhr9M0DVZ/oq4HYhFn9juJTY6Kf5QHLfup6uYRklhAo NM9FkObUvmMAeLJVMdc9NemvZrKIQYRcvrCtTQtS2cKgzAi4LG9f9H7TG6It/m4qVlCamAghWxIGW Kz2yr0XQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1x8xBS-00000004ylc-36qQ; Tue, 22 Sep 2026 09:53:06 +0000 Received: from tor.source.kernel.org ([172.105.4.254]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1x8xBR-00000004yko-1KLK; Tue, 22 Sep 2026 09:53:05 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id BD1C360DEE; Tue, 22 Sep 2026 09:53:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 338E11F000FF; Tue, 22 Sep 2026 09:53:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1790070784; bh=nARjhrFD1a4uFrGP/wTAfcQAeQqUTGrmqUP9jR7qHek=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=nEitEp8XesXa66ohsqaPXQhbL3xF2VPi5jxpeHfvNKIelbcU57N2LlISpDXR4evDD vWNbSH91JwOgPgmdtya5yFo+mSJVrjLJj3A465KYYbP/dN41QMpwIvWzr/Z4EaQVLB FI8W5AaB7aug9wFKd8IDgPQ92g22Dd8mLQPvHEQO83K4yoViaHkQjKh5wBmUZZcTlw OsKFoOoHj9WgXWXEk/y+PFkIsojPUo8YD3iG/fp4lJ7AwCXb5e9Y6Cs/GfQ4KhWley dl84p0fnYpc9aSNLr5eovi55Wa8ABpuLhiZK7BdLN8Ig9pzkyA13/USzmDMzuA4Djp 6PITUPc2KwKiA== Received: by finisterre.sirena.org.uk (Postfix, from userid 1000) id E17FB1AC56BF; Tue, 22 Sep 2026 10:53:00 +0100 (BST) Date: Tue, 22 Sep 2026 11:53:00 +0200 From: Mark Brown To: James Calligeros Cc: Martin =?utf-8?Q?Povi=C5=A1er?= , Liam Girdwood , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sven Peter , Janne Grunau , Neal Gompa , David Rhodes , Richard Fitzgerald , Jaroslav Kysela , Takashi Iwai , Ulf Hansson , Amit Kucheria , "Rafael J. Wysocki" , Lars-Peter Clausen , Vinod Koul , Matthias Brugger , AngeloGioacchino Del Regno , Shenghao Ding , Kevin Lu , Baojun Xu , Sen Wang , James Schulman , asahi@lists.linux.dev, linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, patches@opensource.cirrus.com, Takashi Iwai , linux-mediatek@lists.infradead.org Subject: Re: [PATCH 11/28] ASoC: ops: Introduce 'snd_soc_deactivate_kctl' Message-ID: References: <20260920-macaudio-v1-0-741cc20a74e5@gmail.com> <20260920-macaudio-v1-11-741cc20a74e5@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="mNc7H9Mf9fLW1Byg" Content-Disposition: inline In-Reply-To: <20260920-macaudio-v1-11-741cc20a74e5@gmail.com> X-Cookie: Too clever is dumb. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org --mNc7H9Mf9fLW1Byg Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Sep 20, 2026 at 02:53:50PM +1000, James Calligeros wrote: > From: Martin Povi=C5=A1er >=20 > The new function can be used to deactivate controls -- either a single > one or in bulk by pattern. It is something a machine driver may call in > fixup_controls. > + * Return number of matching controls on success, else error. > + * No controls need to match. > + */ > +int snd_soc_deactivate_kctl(struct snd_soc_card *card, > + const char *name, int active) > + if (!hits) > + return -EINVAL; The comment says no controls need to match, but we return an error in that case. --mNc7H9Mf9fLW1Byg Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmqyT/wACgkQJNaLcl1U h9Bvewf+Iop+x5OZDye45hxw6ccSgPW7Odu2Npcda77dIryeRPAjpXLVz6dcrc8K 4TJrQC+WG0m5H635RmrywLTgJyupe4kIfVxZ/86xfmqvkRBrDFRpSeb/scudUuRp zoa9hMGNFAw3qTIa+ppM7BLfb9zrs/ykSC3r+c+fwXEFrh/fnRBbbLtmRbN5rnkD OLbvOykV5l8HTXUrB1duSzCZS9dWNoHd9Dyg8b3fFhE1cIXNYbcUUaJ8Yv4Jplx9 Jfz8kxonRvN8YUbcAL60O7PNAGtFdzOCr02Qv9/d5jrDQi9Ae4UXm63i4/umUXRg 3gUTHLNhDGEH2e8PtdKXh5uH43Ww/Q== =khxA -----END PGP SIGNATURE----- --mNc7H9Mf9fLW1Byg--