Received: by 2002:a05:7412:8d09:b0:fa:4c10:6cad with SMTP id bj9csp504910rdb; Tue, 16 Jan 2024 07:10:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IF5daEo2cOLKtsiGeKpNBVisbyCVNAPA/Z35Mib2MyKk2eQ6Zvl3wLkyQBGRnrDclUyAjKK X-Received: by 2002:aa7:d941:0:b0:559:513a:90ac with SMTP id l1-20020aa7d941000000b00559513a90acmr2959561eds.33.1705417827313; Tue, 16 Jan 2024 07:10:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705417827; cv=none; d=google.com; s=arc-20160816; b=rentqMaeJcE2fThqrCkRxuLx8wZctCPonAR4K7y1LLvAD5vT73tJkTMKte0RPNxr3M F/95SVPahQ+pQjlxaCv0XkpSnBmgh/i69lI/WGbvoC0QCFz5GqWxk1A8qoO5FA9cRaEE j2kSCAU5kbXNfiP8BVsemFPXverhAHPBjizSd1oG2rgXmhbrd0CYkH2B9NtutRe1Ipvf XPRe+CUhbegwzbyQzczLCNd4v9eP7K+L37Drgut873oLRQQg+b/oWuSnNDrUjqnkWCWz YDap9lp07zGCsU746rDVtMRpkKJoIzYJjP0UCmmCk5bHdS1Wfduc+Qge6FdyZAb6jMJy MBpw== ARC-Message-Signature: i=1; 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=B1FJIuGceQwGGUr1VdWXxI5e+Mbkrvt6mGSLavFdtRM=; fh=MIg2IBG4/xXStZDaUowuLFfzrJ1FC+MJxCQCkhmsd6s=; b=TtzMvPslwkBf+np2GovKr+aPpk9MP885N0HlqJcY6mehQ2L51mgJEGNrju93tivmrt Sn1bTRqJeg0qUuUB+SjocjNY9/qopb0/EPtdF+Av4FTTSQ/vlNvcxHff3oMw5wKIvHze 4PD288MOLJSXx/l7siVhZtHGxN5Gdfn1c6j2NCZ0vi59uZlQkxpE6LXsOs/BjeZ0TpiF YhfdNcRUrxlqu9v7rkqNtaB4HUK3qiSNZ2FykE9PDn9VWQHX7yoToa9NmkysE+8n3m4J Ccr61Y7jpL9bYX9lAkNQSe9Sd21N8VqBv3MkXmvVN3K5d7a+Giyq+OAhuh7Lc26SyfrB hPXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sQBmJlPe; spf=pass (google.com: domain of linux-kernel+bounces-27500-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27500-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id z8-20020a056402274800b00557ab3b5e62si5153722edd.233.2024.01.16.07.10.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 07:10:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-27500-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sQBmJlPe; spf=pass (google.com: domain of linux-kernel+bounces-27500-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27500-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 110A41F23F8F for ; Tue, 16 Jan 2024 15:10:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EA0A91BF53; Tue, 16 Jan 2024 15:10:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="sQBmJlPe" 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 251451BF41; Tue, 16 Jan 2024 15:10:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8EC60C433F1; Tue, 16 Jan 2024 15:10:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705417813; bh=B1FJIuGceQwGGUr1VdWXxI5e+Mbkrvt6mGSLavFdtRM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=sQBmJlPeo0s/7USxGte5IlqP3pBJU3TX0Ms0p3AN/ACkQN1ZvtUv+Hfb8hGkjSsdw nZCx54vGUXhQXZqC5yaybqyjfbRayZ+FeyjVopDy62wGeb346r/imKBgGbHg10Htmk R5KdV7BAuHpDIwAb3zGjoSkB5eLnIZPFAL6COuYYWSYInKGnyfhLJGpPR/FeJa0ps5 qYfRtTz1Sm9YQK97x6hztp8OqZjG8l8MxmsfVjG1N7XI8ayXGR+IbE2JTUah7GyYm7 Zd7eavOKvMQr6+ltIHe8IhhtyfoEvwB+AoyTHx45YQSUbICdpRDoiFOFsbo3XAf8uX klsxHD33fhclQ== Date: Tue, 16 Jan 2024 15:10:08 +0000 From: Mark Brown To: Srinivas Kandagatla Cc: Johan Hovold , 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 1/7] ASoC: qcom: sc8280xp: limit speaker volumes Message-ID: <029c8d1b-a621-41cb-a577-dd5829fe8427@sirena.org.uk> References: <20240116093903.19403-1-johan+linaro@kernel.org> <20240116093903.19403-2-johan+linaro@kernel.org> <1cc50979-741b-4341-9e9e-2fdee1dd2e65@linaro.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="ShzZHTDGEX/OI1T3" Content-Disposition: inline In-Reply-To: <1cc50979-741b-4341-9e9e-2fdee1dd2e65@linaro.org> X-Cookie: Programmers do it bit by bit. --ShzZHTDGEX/OI1T3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jan 16, 2024 at 11:11:47AM +0000, Srinivas Kandagatla wrote: > On 16/01/2024 09:38, Johan Hovold wrote: > > The current UCM configuration sets the speaker PA volume to 15 dB when > > enabling the speakers but this does not prevent the user from increasing > > the volume further. > >=20 > > Limit the PA volume to 15 dB in the machine driver to reduce the risk of > > speaker damage until we have active speaker protection in place. > LGTM, We can get rid of this limit once we have Speaker protection inplac= e. There should be a userspace component for speaker protection so you'll need to limit things when that's not running. --ShzZHTDGEX/OI1T3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmWmnE8ACgkQJNaLcl1U h9Dbmgf+IblLPaBg7D2oSrtByTikbx592QEXrkcWHGjqquxgdEdDaTQXUNfUE9oR N7Dllk3rRDTEPEc78Gb5hFvjE7zut/xjfOoaGqSiwtv9/pA8TkEI8qBB65eQxSNt 5Zpcy5Y2bZ3AkzcggF3JFZsUBx1pdE6CVi7BrR3SCOsvnZGowBpVRaMP+MWvZPO1 I+mntld1hnmH2g/1fnMmPIpvXlGSKPQ3bbcqd7d7IVnxBagNzPdKyQVnpMlHTQM0 5w2XCZc8Nikf/8UzUrM6DBL8AeNww6V9etfyjkquZ5COHeaW16quGxMksHtpO7bL 2MAtAP7YlZTbCeQv/VmF4TshVtrPqw== =ukiF -----END PGP SIGNATURE----- --ShzZHTDGEX/OI1T3--