Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp494043rdb; Thu, 18 Jan 2024 09:24:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IG71GUwpePpD2w8tlQfLOvw6OIO2DcY3UCa2hC00J1LLLYxGDwjRk0LObkKDYsOYfuMwuf5 X-Received: by 2002:a05:6a21:2c94:b0:19a:999c:6656 with SMTP id ua20-20020a056a212c9400b0019a999c6656mr842575pzb.72.1705598644577; Thu, 18 Jan 2024 09:24:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705598644; cv=pass; d=google.com; s=arc-20160816; b=n4yN9QBk+BCyOOZiayD8GDAd83oz8WMVB3zEXlmjDVgasyqztEmhjmwlk3UzF6yeF4 n/C6sR+xW9lPCzHznIxHIl8MyJ2RBsOUvhL3ysaqRdv/ab/DgqmCZCqLw4pfSTRlj5DX PNeYM/okzfc80k1aTWCC8ooCaQ+aZqCMEVEjRHhVoAO0e0K/r4MnewHwGO6Z2jP7/4N0 fWr121eWDmbQMtm2pLDQKi/uxolOxv94mu5hbgYW83XJoKGU+E80HMCpgpbFL0AJKZte Yiqr+br+fHftmTeoLnTG5DMrsqBplP+UsyH4BbFqDS2UUVAc7ASNujbFCDF3RhMlkFTs ikkQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=uAseicn+raY0+SzvURESaaoBG1mUvSm8O+wia1/UaDM=; fh=gszql63kBkmd37T6LBXCcNjLEtusteQITkFl99JojaM=; b=m3g6D9oT7bCXI/yvwCHeM44zEEX5corL2s2tL45wivKCWW7Og5DdkM3bwfYd6vOQ9t SfKE/r/Mq2CwPZyhCnI9BRfIjYEFiWjJVHIZoQRtWDaTEAv6A4n/AQn369YMJ3ryqDv5 smDG8ZslCxZa9zevv+AIamKPyVi4dsvfMbl6UDtJ2bupyk6kq71LsvcaX4X1c+QJMEO9 /aB0+pX1j3GKBR9C7edWr2wEZwbn91XbqVq6s85EHGWBoKdOgtLw7a0AA/Ai96tIxYZL NJaJaMXf6v/sbszqsDJUQ0wlrXwa4XV20VdSj95fT/f3VOqPwFSF+DYqj1j3nOU6q6Zf aIXA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OIZqEuFM; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-30409-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30409-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id v127-20020a626185000000b006d9a562c7d5si3900576pfb.83.2024.01.18.09.24.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 09:24:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-30409-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OIZqEuFM; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-30409-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30409-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 9C124B24762 for ; Thu, 18 Jan 2024 17:22:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 01AB12C84D; Thu, 18 Jan 2024 17:21:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="OIZqEuFM" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 23EF52C841; Thu, 18 Jan 2024 17:21:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705598514; cv=none; b=ZcqwboHyU9VcoQ3FMBpEo7Y7HWE9MJKrmIiAgdZJMKdg6rVHLub8Ie5KY05dzvrnardmJri7iATX6CH9NqIj2aFXpOQg+bObqmzuXnclEEPPcp30zpD3QwpoGMi1QC4HuIseUFJlcrAaoz/BQR81jB0kZRmRy7oOVWx/iU5qnw0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705598514; c=relaxed/simple; bh=GrPaueWFVuj2nIlhecpLM8yjOxes4LcyBFVyKWotBuU=; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To:X-Cookie; b=LUcmz7vH4lFPP5q71PE8cy2AwTaDJD55QWfRYkm3A/eZf6eA0hQm6ALPFnMVUAC4elaOcjgDqCR4CTdV+n+3IqDu3OEwlWWt5eCdA7FwGtKTZyxeyuGAKt8yOTEXcQPFtS3tO/6dyqNJpS6MI1pqD1vGyypuZqQe2uk7BoC/ZhM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=OIZqEuFM; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 72D6BC433F1; Thu, 18 Jan 2024 17:21:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705598513; bh=GrPaueWFVuj2nIlhecpLM8yjOxes4LcyBFVyKWotBuU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OIZqEuFMwThZFV05+1B5orwhq1cMrqpeVflPrts+sYmnqaeg/k9K95cOK5eBQa+L2 20ZTDyndZtl4XwGiJq1b0cuOsg/iyIM/wVd8aMi6v8hdU0HA6YQUZ8reepERXH7HbS X6sPtErW1wEWKlZPmr5LVOdvEwuZ03DngA03VRf5XRnfGomBdUSrOeBTkpP/W08/XJ 8CwxrvjmCk7w146GTFJgmyCkl2oMa99gVFxn36cO4Vj14hi4wq30cFc8Q8/IPILKQ/ fzbKhx0tPhcWBPabKjRk8CzNI1W9rkL0XgRf3kec4GyOVXnJd65j1XmQpZhEd1dgV+ CsPiKqj2y/Z0g== Date: Thu, 18 Jan 2024 17:21:48 +0000 From: Mark Brown To: Johan Hovold Cc: Srinivas Kandagatla , Banajit Goswami , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH v3 2/5] ASoC: codecs: wsa883x: lower default PA gain Message-ID: References: <20240118165811.13672-1-johan+linaro@kernel.org> <20240118165811.13672-3-johan+linaro@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="+L9BHQTIa1dUbroA" Content-Disposition: inline In-Reply-To: <20240118165811.13672-3-johan+linaro@kernel.org> X-Cookie: FEELINGS are cascading over me!!! --+L9BHQTIa1dUbroA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jan 18, 2024 at 05:58:08PM +0100, Johan Hovold wrote: > The default PA gain is set to a pretty high level of 15 dB. Initialise > the register to the minimum -3 dB level instead. >=20 > This is specifically needed to allow machine drivers to use the lowest > level as a volume limit. > @@ -722,7 +722,7 @@ static struct reg_default wsa883x_defaults[] =3D { > { WSA883X_WAVG_PER_6_7, 0x88 }, > { WSA883X_WAVG_STA, 0x00 }, > { WSA883X_DRE_CTL_0, 0x70 }, > - { WSA883X_DRE_CTL_1, 0x08 }, > + { WSA883X_DRE_CTL_1, 0x1e }, This is broken, the register defaults provided to regmap need to correspond to whatever the hardware default is since for example a register cache sync will not write back any default values (as they should already be there in the hardware). Anything like this would need to be done by writes during init. --+L9BHQTIa1dUbroA Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmWpXisACgkQJNaLcl1U h9B1XQf+MDXMPds6Vj+stJmRI6lY95AnzLcfAg38B7M3jFWq3X5LCz+QUUWei/P7 YygtokKnVOMb6pLwvHNI6s51GZQ5hqbmdFFi9mRmamIDeuYKHaOFmo4VB4WrdWoO AklL4KvrD+3Ju6e0J4mmPjpNFUbxk6WWIKjJ4T/QOCP3PLk4TIw3sT77QMybapbA /AgS986AbHbyBeqMmJd32I1uSBdHJW61IzKFikT1w17UNLXJMFBHtfmahwuM0aVu 4XMz+1qCqEoN8Oale+5AwJZ4ZtY/tGasp0cTClrIjnCdDO7nsjkEdVY9ZLEnOWg3 BH0YNeBArVibIrpeedgdNqcchmbTew== =7PAi -----END PGP SIGNATURE----- --+L9BHQTIa1dUbroA--