Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp31943668rwd; Fri, 7 Jul 2023 06:41:17 -0700 (PDT) X-Google-Smtp-Source: APBJJlGBbPlZekdb9oeah3eIgGQQGqEZgVAdF4yDi1qmR2DUbFiOSQzTWkp0tFXqVN5cxw1Hlbw9 X-Received: by 2002:a17:902:6e02:b0:1b8:1776:d48a with SMTP id u2-20020a1709026e0200b001b81776d48amr3764209plk.61.1688737276488; Fri, 07 Jul 2023 06:41:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688737276; cv=none; d=google.com; s=arc-20160816; b=ylduEbw8LpVc4M3Hs+wfg4/Jm3JzswmPDXrCioXpsXJau88QZxX2hddlrREbzSOphK 8wL5q6m7CrbZ7WupIYTuwl/Ciy6GP9Z/yc/FD+sUDuEF+Jdwl85yy+73hwWH0pu3xmzX N34xiPQ19cAwMCOrZsbhl04Ao8eBgYFfToLbXZO1RtepV6U+Crb2JzkP559Fl7Nd81AW nG3dp6xeKigmFsruJj/8mPaL3jNrsQ5fVjaIAC81XY/ovbTVyIQcJzLtslotKCF17jLe R4XWsaDSNG3uLtDY1G97wCTqKFDEVNv4GJLt49aK9yR4IeCBBZRn2fj/u9NEavMEd1P+ 9JhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=NHCxkwb/m5V0S7DCsQ1y4xdBpD1W9GlLedhbup59uxc=; fh=RYrGGwm/c14Pfqk3YMiFiKtfPBAl72XZIwG4bU0JRGE=; b=BOWt9jkPKumy/SNzth5zjKJmxNdEhfyQJTA4j8KZa5K4CwgvsffTZ/wNdX/JvvxroZ 2FTk37rCjKfoiMHnLgL3xzQuAPeSpZk5qzQ1Mc8XSxaCOv9WcnmF5BVJjtoq6RKn49Rp teip5fDmJfQ1pkLw16ti+dCitTEY/EwTz6IXFd6qbK+EZUGalI2jJpoJ5oav7Dg3h4Hn c45vsCxMlC1gkjI+gbonjYOXXfQhf3NYZYxJdbP7VC5fDJKK0rJgtwZjwCd8h3UyKHVw vnWwdXY2VF/Ws1oumypCsu2nN1woCDFUkP1JONboJMfah8tWsT5rxgPHWoRdj61Qv/PP QseA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uTi+H3Wd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x3-20020a170902ec8300b001b95686f6basi2506616plg.4.2023.07.07.06.41.04; Fri, 07 Jul 2023 06:41:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uTi+H3Wd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232076AbjGGNW5 (ORCPT + 99 others); Fri, 7 Jul 2023 09:22:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229661AbjGGNWx (ORCPT ); Fri, 7 Jul 2023 09:22:53 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4EB90131 for ; Fri, 7 Jul 2023 06:22:52 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D24B2619A0 for ; Fri, 7 Jul 2023 13:22:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E1990C433C7; Fri, 7 Jul 2023 13:22:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688736171; bh=NHCxkwb/m5V0S7DCsQ1y4xdBpD1W9GlLedhbup59uxc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=uTi+H3WdfHPM9Byxcm2uOHye+pl0xSXW+NfUsQ2T1zjOFGAvJdUSuxZTA/NL7BxrV fmc5hIq2P1DY6FKKo4OLqdf7zMj0GhlBpQSe8CbmAgz6k7lQzWOIV0dvsg9gY4nj/b fe5qRdVwrg/cT18TVNUNYkRGo+aaQCRjq//shCKUoW7NlcBfa+VSO6mcsouBmp+r/Z xsZ5a6S2HYt6Ma3/6Brph4A4s8SR6dYCsVo4ALeyVsR9YvkCTcz/LBv0BScgRl6z8G GiL0BTmgsyY3V2VyaCZWzRhXNLwQXC5+tRftUA4asvU19qN3Fvm2VekpjfWSUZs6wf mS/YMTZmyuJHw== Date: Fri, 7 Jul 2023 14:22:45 +0100 From: Mark Brown To: Takashi Iwai Cc: Srinivas Kandagatla , Johan Hovold , perex@perex.cz, tiwai@suse.com, lgirdwood@gmail.com, ckeepax@opensource.cirrus.com, kuninori.morimoto.gx@renesas.com, linux-kernel@vger.kernel.org, pierre-louis.bossart@linux.intel.com, alsa-devel@alsa-project.org Subject: Re: [PATCH] ASoC: codecs: wcd938x: fix dB range for HPHL and HPHR Message-ID: <3450ef1e-cb20-4242-b482-41d3d34c4564@sirena.org.uk> References: <20230705125723.40464-1-srinivas.kandagatla@linaro.org> <87y1jrkgdx.wl-tiwai@suse.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="5wVyCaq/6JTHUGMD" Content-Disposition: inline In-Reply-To: <87y1jrkgdx.wl-tiwai@suse.de> X-Cookie: Victory or defeat! X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --5wVyCaq/6JTHUGMD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Jul 07, 2023 at 03:20:10PM +0200, Takashi Iwai wrote: > Srinivas Kandagatla wrote: > > yes, the highest value corresponds to lowest dB which is why its inverted. > Ouch, that's a bad design choice... It's moderately common - typically in these cases the control is described in the datasheet as an attenuation control rather than a gain, and this usually corresponds to the physical implementation being only able to make signals smaller relative to the reference. --5wVyCaq/6JTHUGMD Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmSoEaUACgkQJNaLcl1U h9CsMwf/SZvOJmKt2vqSP+P7xpCmdnZuh5IZm0EUCIEuuA293OaTfe1+amJOiCPB /wIC4KaE4nYOKYq7VltaO9ytlJuUPbTgYSJDaLuA/N54rNmkhc5LPUfpb1U7vhUS PtFvtPDhHdiEgSAUHMJ+hFg3+dacjO39J/5X/8mhVJQefrSK7wZRfuaiBbhgxIpU AKRTLYxDE8wAQwoRmPqpfTOQaDZ3FJ88FeK0LBtVwCPc0jVEXzIE8zUanWxXeNZv riUd4goWN9XLteCM9iFu2WlCrPVrTwJj0ICAGOJMxHM3SpACSu9GAn9JIy8aDaR3 LpUiI3ukZByAEAt6HOo/dh20Hl5aLA== =BUAJ -----END PGP SIGNATURE----- --5wVyCaq/6JTHUGMD--