linux/sound/soc/qcom
Srinivas Kandagatla ba6e4b9971 ASoC: qcom: sc8280xp: Limit speaker digital volumes
commit 716d4e5373 upstream.

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.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Reviewed-by: Johan Hovold <johan+linaro@kernel.org>
Tested-by: Johan Hovold <johan+linaro@kernel.org>
Link: https://lore.kernel.org/r/20231204124736.132185-3-srinivas.kandagatla@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
[ johan: backport to 6.6; rename snd_soc_rtd_to_cpu() ]
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-12-13 18:45:35 +01:00
..
qdsp6 ASoC: qcom: merge DAI call back functions into ops 2023-08-14 13:10:14 +01:00
apq8016_sbc.c ASoC: qcom: apq8016_sbc: Map missing jack kcontrols 2023-08-07 14:32:59 +01:00
apq8096.c ASoC: qcom: apq8096: set driver name correctly 2023-02-01 10:25:07 +00:00
common.c ASoC: qcom: common: add default jack dapm pins 2023-06-22 18:02:07 +01:00
common.h ASoC: qcom: Fix building APQ8016 machine driver without SOUNDWIRE 2023-01-09 13:04:14 +00:00
Kconfig ASoC: qcom: Fix building APQ8016 machine driver without SOUNDWIRE 2023-01-09 13:04:14 +00:00
lpass-apq8016.c ASoC: qcom: merge DAI call back functions into ops 2023-08-14 13:10:14 +01:00
lpass-cdc-dma.c ASoC: qcom: Add lpass CPU driver for codec dma control 2022-02-24 20:21:46 +00:00
lpass-cpu.c ASoC: qcom: merge DAI call back functions into ops 2023-08-14 13:10:14 +01:00
lpass-hdmi.c ASoC: qcom: lpass-hdmi: remove useless return 2021-03-10 13:01:49 +00:00
lpass-hdmi.h ASoC: qcom: Add support for lpass hdmi driver 2020-10-08 20:27:34 +01:00
lpass-ipq806x.c ASoC: qcom: merge DAI call back functions into ops 2023-08-14 13:10:14 +01:00
lpass-lpaif-reg.h ASoC: qcom: Add register definition for codec rddma and wrdma 2022-02-24 20:21:42 +00:00
lpass-platform.c ASoC: qcom: Convert to generic PCM copy ops 2023-08-18 12:19:18 +02:00
lpass-sc7180.c ASoC: qcom: merge DAI call back functions into ops 2023-08-14 13:10:14 +01:00
lpass-sc7280.c ASoC: qcom: merge DAI call back functions into ops 2023-08-14 13:10:14 +01:00
lpass.h ASoC: qcom: merge DAI call back functions into ops 2023-08-14 13:10:14 +01:00
Makefile ASoC: qcom: Fix building APQ8016 machine driver without SOUNDWIRE 2023-01-09 13:04:14 +00:00
sc7180.c ASoC: qcom: sc7180: Map missing jack kcontrols 2023-08-07 14:33:00 +01:00
sc7280.c ASoC: qcom: sc7280: Map missing jack kcontrols 2023-08-07 14:33:02 +01:00
sc8280xp.c ASoC: qcom: sc8280xp: Limit speaker digital volumes 2023-12-13 18:45:35 +01:00
sdm845.c ASoC: qcom: sdm845: Map missing jack kcontrols 2023-08-07 14:33:03 +01:00
sdw.c ASoC: qcom: sdw: do not restart soundwire ports for every prepare 2023-04-06 14:45:12 +01:00
sdw.h ASoC: qcom: Fix building APQ8016 machine driver without SOUNDWIRE 2023-01-09 13:04:14 +00:00
sm8250.c ASoC: qcom: Fix building APQ8016 machine driver without SOUNDWIRE 2023-01-09 13:04:14 +00:00
storm.c ASoC: qcom: Set card->owner to avoid warnings 2020-08-21 16:12:10 +01:00