All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH stable-6.6 0/2] ASoC: qcom: sc8280xp: Limit speaker digital volumes
@ 2023-12-11 13:26 Johan Hovold
  2023-12-11 13:26 ` [PATCH stable-6.6 1/2] ASoC: ops: add correct range check for limiting volume Johan Hovold
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Johan Hovold @ 2023-12-11 13:26 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: Sasha Levin, stable, broonie, alsa-devel, perex, tiwai,
	linux-sound, linux-kernel, johan+linaro, srinivas.kandagatla

This is a backport of the following series:

	https://lore.kernel.org/lkml/20231204124736.132185-1-srinivas.kandagatla@linaro.org/

which did not build on 6.6 due a rename of the asoc_rtd_to_cpu()
interface.

Johan


Srinivas Kandagatla (2):
  ASoC: ops: add correct range check for limiting volume
  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(-)

-- 
2.41.0


^ permalink raw reply	[flat|nested] 10+ messages in thread
* [PATCH 0/2] ASoC: qcom: Limit Digital gains on speaker
@ 2023-12-04 12:47 srinivas.kandagatla
  2023-12-04 12:47 ` [PATCH 2/2] ASoC: qcom: sc8280xp: Limit speaker digital volumes srinivas.kandagatla
  0 siblings, 1 reply; 10+ messages in thread
From: srinivas.kandagatla @ 2023-12-04 12:47 UTC (permalink / raw)
  To: broonie, alsa-devel
  Cc: perex, tiwai, linux-sound, linux-kernel, johan+linaro,
	Srinivas Kandagatla

From: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>

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

 sound/soc/qcom/sc8280xp.c | 17 +++++++++++++++++
 sound/soc/soc-ops.c       |  2 +-
 2 files changed, 18 insertions(+), 1 deletion(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2023-12-13 12:32 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-11 13:26 [PATCH stable-6.6 0/2] ASoC: qcom: sc8280xp: Limit speaker digital volumes Johan Hovold
2023-12-11 13:26 ` [PATCH stable-6.6 1/2] ASoC: ops: add correct range check for limiting volume Johan Hovold
2023-12-11 13:26 ` [PATCH stable-6.6 2/2] ASoC: qcom: sc8280xp: Limit speaker digital volumes Johan Hovold
2023-12-11 17:28   ` [PATCH " kernel test robot
2023-12-11 17:39     ` Johan Hovold
2023-12-12  8:48       ` Yujie Liu
2023-12-13 12:32         ` Johan Hovold
2023-12-11 13:40 ` [PATCH stable-6.6 0/2] " Greg Kroah-Hartman
  -- strict thread matches above, loose matches on Subject: below --
2023-12-04 12:47 [PATCH 0/2] ASoC: qcom: Limit Digital gains on speaker srinivas.kandagatla
2023-12-04 12:47 ` [PATCH 2/2] ASoC: qcom: sc8280xp: Limit speaker digital volumes srinivas.kandagatla
2023-12-04 13:54   ` Johan Hovold

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.