Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp3817199rdb; Mon, 11 Dec 2023 00:07:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IFLimy7cfs42rHquLfHRoQux+BSFIucBdp16Eqt9F7To+xBHpir3IF16nb/NDTN30jGSteo X-Received: by 2002:a05:6a00:9398:b0:6cd:dece:b73d with SMTP id ka24-20020a056a00939800b006cddeceb73dmr1667322pfb.18.1702282048540; Mon, 11 Dec 2023 00:07:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702282048; cv=none; d=google.com; s=arc-20160816; b=CuwfkteO98sniVo1+yFCbeD2TlxhpvwbOojXMGlk3qPremPzp8kpM2tzvLCZnHycJQ aJLNTDQbMj/MAjqDU8zVS9BjCYxnDbBA3v97QPatKIxCOzytEGHPszq4Kf6hDLlYgoUD 7C2yZ3nxxywe+N/8+BUfZ7zGYz/mGnU1ceeV1mfHw+qU5y8XUv2atlRcDhPfQ4LQ0/GC HhmhcY/M/rpeAWbQf1O86ZbjKYtPutM3z/mpwpXvpgizLWelgRuUCPsYo2c7j21uTkK8 +xHp6CaiwtE7TtN7hk0IVdfGAt7NaMsDjD9Fx6lKOZ5oczQoeB+iK0qIusrGC3X7XPc/ M9yg== 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=jCEgEpWSD4mmAtcW3U5zoSvbmRO40eUJ7yx4uJyC7FY=; fh=Jwx/YEJgv4D6mGV+05I2kPfum1EG2mBXpC5jRm6TeXs=; b=NwPMNgA0s8Vmwhpi18wnL2t8cVWnpXtZtztyOx4R8qVop5W/iBlJkYiNEU1iucdbpK mueZH4G9iIEjschxkoOmt1ijdF9OPbeZkdEzTJDGOdX2ADBa9rP6RFLQ12fsLWs+NO3R o2cHRnRc2+XiAd8KmroAOMIa0aRSOjwQeOJJREoi2+YTzqZzgOONxp8g5vXUC8OjW5pl m31Li49oOovYpDgIuVFwCBphdxZBAoQPjtY8zgfQqBdWo4T5NiFSn5rM3LDgIcQt1hbT 2/K9znj0KBPR3l9IpHxk5c709x/rJoKSzQuNwJgt7scfv7dqtiMjD0ap7fQfCWYFEEl/ VJ1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kvVtjOw1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id ca8-20020a056a02068800b005ca186afff0si954783pgb.378.2023.12.11.00.07.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 00:07:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kvVtjOw1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id DB9D0805197C; Mon, 11 Dec 2023 00:07:25 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233915AbjLKIHO (ORCPT + 99 others); Mon, 11 Dec 2023 03:07:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233904AbjLKIHN (ORCPT ); Mon, 11 Dec 2023 03:07:13 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0A84ED for ; Mon, 11 Dec 2023 00:07:18 -0800 (PST) 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> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Mon, 11 Dec 2023 00:07:26 -0800 (PST) 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