Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.5 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 70E0EC433E0 for ; Thu, 18 Mar 2021 12:10:09 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 3195D64E89 for ; Thu, 18 Mar 2021 12:10:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3195D64E89 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id D434D1680; Thu, 18 Mar 2021 13:09:15 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz D434D1680 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1616069405; bh=GM5Z3zsvDtAf7O8rQyIlPmINIJXGXfHhTCZjd/V/RQk=; h=Date:From:To:Subject:References:In-Reply-To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=DrbBvnZFuul5SwzB90DnMbfghlEX1tx1rmupfIoCNsl0i6ZrLtK6qdSL5y+5t1Lru sLhY0M+K5HNqhUMS3Ghwi+eleVjHU7Ir0SYZx6UdL0RXPDpZpa+OoZhhFU8fvwtygY q0AvAUu1k1VK+/KDQSfpt3w1xFxpaLgjQqrHdAbM= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 491B0F80163; Thu, 18 Mar 2021 13:09:15 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 015B0F80165; Thu, 18 Mar 2021 13:09:07 +0100 (CET) Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 5EFF2F800E0 for ; Thu, 18 Mar 2021 13:09:03 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 5EFF2F800E0 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="P5FSaw8u" Received: by mail.kernel.org (Postfix) with ESMTPSA id 6E35C64E89; Thu, 18 Mar 2021 12:09:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1616069341; bh=GM5Z3zsvDtAf7O8rQyIlPmINIJXGXfHhTCZjd/V/RQk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=P5FSaw8uE9yuhxD69QUkhBn+tvAYbeHZQ296DaaIPNj7ZkPLJQHQy/Z46njbrkwAQ e5SnASc+SUjt821YDoFrDpQYNt2CQXu6OYzyQTM0DHYgMq/QoJ5w69X9c9vtHemX6x 0V8IHX17saOZZGafqbpCYkdJn3U7pD861yNHOjqqyHHA5b7Vl1YmdX+/fNkePcY5oJ I4Ff8KxJIRncyqAELnAg0icJmRwAuYc6LQDxUdQhrttvw6pI7w2HXpgYNwmDHlylFL yzSldEicfnrvUleGHOscVZ/VAU8eniekIFKCHVB/cPfWThGYUq2Zcr5BURcuk4PZ0D J/sS7bn8jrzrw== Date: Thu, 18 Mar 2021 12:08:57 +0000 From: Mark Brown To: Jack Yu Subject: Re: [PATCH] ASoC: rt715: add main capture switch and main capture volume Message-ID: <20210318120856.GA5469@sirena.org.uk> References: <20210317140841.GC5559@sirena.org.uk> <5f4be33320754b11ad055aa66fc3a217@realtek.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="IS0zKkzwUGydFO0o" Content-Disposition: inline In-Reply-To: <5f4be33320754b11ad055aa66fc3a217@realtek.com> X-Cookie: You are false data. User-Agent: Mutt/1.10.1 (2018-07-13) Cc: Oder Chiou , "alsa-devel@alsa-project.org" , "lars@metafoo.de" , "lgirdwood@gmail.com" , Derek =?utf-8?B?W+aWueW+t+e+qV0=?= , Shuming =?utf-8?B?W+iMg+abuOmKmF0=?= , "Flove\(HsinFu\)" X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" --IS0zKkzwUGydFO0o Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Mar 18, 2021 at 03:35:31AM +0000, Jack Yu wrote: > > > - *l_val = (val_h << 8); > > > + *l_val = val_h << 8; > > > ret = regmap_read(rt715->regmap, addr_h, l_val); > > > if (ret < 0) > > > pr_err("Failed to get L channel gain.\n"); > > This looks like an unrelated formatting change. > Because regmap has its own callback for read/write, so the formatting change is required for callback. This change is literally just removing some brackets that don't do anything, the regmap API has no impact here. > > > if (mc->invert) { > > > /* for mute status */ > > > - read_ll = !((read_ll & 0x80) >> RT715_MUTE_SFT); > > > - read_rl = !((read_rl & 0x80) >> RT715_MUTE_SFT); > > > + read_ll = !(read_ll & 0x80); > > > + read_rl = !(read_rl & 0x80); > > > } else { > > > /* for gain */ > > > read_ll = read_ll & 0x7f; > > This too. > This change is just to simplify the code. The result will still be the same. Sure, but that should be a separate patch with a separate changelog which explicitly says that this is being done. --IS0zKkzwUGydFO0o Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmBTQtgACgkQJNaLcl1U h9ARiQf+NoXTvfXSJssZMKEijOQyfYRrPi4Cz64JbcD5DUa/LMvuJYLJ8yTfgAJW TdnIZ7KJEQSO34Lw3gmxqYG2+R8Rx8D+qCVtQte7DCwR7H5OYPUvcwmFU2DiX7Bh nt+sw/M9xFv1kXZn8/WCaEbkO23oXIFcz872DUFBJYWRv0Gzf9CvUk4q6etaEy4v lbTn/RkdyJVDx2Dmi7Yn0tPDui4qxXXRRdTLbuVPYnIH4a6lu7hCSA6t67ysPykf xheyLKmNRDWcyJlK3S0wS/aCMXI0BarI8LXs7QIOtGFAf9/AAPFq4v13VxrrAI89 ocr6kOeAOEtN3hzPKf1swIGgxXB7sw== =4f9f -----END PGP SIGNATURE----- --IS0zKkzwUGydFO0o--