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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 11F9DC4167B for ; Mon, 11 Dec 2023 08:14:45 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 2611D832; Mon, 11 Dec 2023 09:14:34 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 2611D832 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1702282484; bh=3GqnJlLQgzJix4uleFQHfKZjGRQYL0QZLwm4aAsiEkU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=GJd7yd+L0eXFwSI0YowwNRWEts4LmqMA7sxCN3WLe0K4qDjKR7zYYhb8cCsNBnD63 5iw8AdX9Q+YOr0uN5RfvZyY0f15Fgndnc05lLg13xjsR+Dvat6K9owUsJcD337tcJj IQE6Qhyv90OzfcSV2ETdk3al2h554IuyyNY7yWxI= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 38A3AF8056F; Mon, 11 Dec 2023 09:14:02 +0100 (CET) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id C7133F80580; Mon, 11 Dec 2023 09:13:59 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 58B5EF80124; Mon, 11 Dec 2023 09:07:41 +0100 (CET) Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 90089F800D2 for ; Mon, 11 Dec 2023 09:07:24 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 90089F800D2 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=kvVtjOw1 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 15107CE0EBE; Mon, 11 Dec 2023 08:07:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 557A6C433C8; Mon, 11 Dec 2023 08:07:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702282038; bh=3GqnJlLQgzJix4uleFQHfKZjGRQYL0QZLwm4aAsiEkU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=kvVtjOw11aO9mExns9Vh/CwD0zBcHAhfP57vRwAHZ14s4oH5bglxziHG/3/I3exA6 tsRvtOK/xvqi6pPrBTitdRhGV8G0D7ZBiwv/xzzAiJAjVBuo/vbAcrmErpzgolBFm5 Rix3xhfcyefxA+rsQOzZZTGub0tRHg95c7VZ4eVK2/e61czbbjIdgtKFPc3GoWKtAv tgr7HK0Iz0FWjWAMv5POP32INgUXkUUVhbIRMYu3agqwbJ6AF7/2Qek5iYhDctqGi9 eDsnDcOrS/WBiIj1nSAJhuhbi8wbfRMYKweSHXLDv4h0ck1NC8sB6DID59+SfoDfDp EwBG1iqaXiaSA== Received: from johan by xi.lan with local (Exim 4.96.2) (envelope-from ) id 1rCbKd-00016z-2a; Mon, 11 Dec 2023 09:08:04 +0100 Date: Mon, 11 Dec 2023 09:08:03 +0100 From: Johan Hovold To: Greg Kroah-Hartman , Sasha Levin , stable@vger.kernel.org Cc: broonie@kernel.org, alsa-devel@alsa-project.org, perex@perex.cz, tiwai@suse.com, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, johan+linaro@kernel.org, srinivas.kandagatla@linaro.org Subject: Re: [PATCH 0/2] ASoC: qcom: Limit Digital gains on speaker Message-ID: References: <20231204124736.132185-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231204124736.132185-1-srinivas.kandagatla@linaro.org> Message-ID-Hash: 2YPWWEB5NHXFXDFGR3BIGLOD2EMO3FHW X-Message-ID-Hash: 2YPWWEB5NHXFXDFGR3BIGLOD2EMO3FHW X-MailFrom: johan@kernel.org X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1 X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Hi Greg and Sasha, On Mon, Dec 04, 2023 at 12:47:34PM +0000, srinivas.kandagatla@linaro.org wrote: > From: Srinivas Kandagatla > > Limit the speaker digital gains to 0dB so that the users will not damage them. > Currently there is a limit in UCM, but this does not stop the user form > changing the digital gains from command line. So limit this in driver > which makes the speakers more safer without active speaker protection in > place. > > Apart from this there is also a range check fix in snd_soc_limit_volume > to allow setting this limit correctly. > > Tested on Lenovo X13s. > > Srinivas Kandagatla (2): > ASoC: ops: add correct range check for limiting volume > ASoC: qcom: sc8280xp: Limit speaker digital volumes These were unfortunately not marked for stable, but could you pick them up for 6.6? The upstream commits are: fb9ad2448508 ("ASoC: ops: add correct range check for limiting volume") 716d4e5373e9 ("ASoC: qcom: sc8280xp: Limit speaker digital volumes") > sound/soc/qcom/sc8280xp.c | 17 +++++++++++++++++ > sound/soc/soc-ops.c | 2 +- > 2 files changed, 18 insertions(+), 1 deletion(-) Johan