linux-stable/sound/soc/qcom
Johan Hovold c481016bb4
ASoC: qcom: sc8280xp: limit speaker volumes
The UCM configuration for the Lenovo ThinkPad X13s has up until now
been setting the speaker PA volume to the minimum -3 dB when enabling
the speakers, but this does not prevent the user from increasing the
volume further.

Limit the digital gain and PA volumes to a combined -3 dB in the machine
driver to reduce the risk of speaker damage until we have active speaker
protection in place (or higher safe levels have been established).

Note that the PA volume limit cannot be set lower than 0 dB or
PulseAudio gets confused when the first 16 levels all map to -3 dB.

Also note that this will probably need to be generalised using
machine-specific limits, but a common limit should do for now.

Cc:  <stable@vger.kernel.org>	# 6.5
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Link: https://msgid.link/r/20240122181819.4038-3-johan+linaro@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
2024-01-22 19:38:10 +00:00
..
qdsp6 ASoC: qcom: Fix trivial code style issues 2023-12-18 14:04:25 +00:00
apq8016_sbc.c ASoC: qcom: Fix trivial code style issues 2023-12-18 14:04:25 +00:00
apq8096.c ASoC: qcom: Fix trivial code style issues 2023-12-18 14:04:25 +00:00
common.c ASoC: qcom: Fix trivial code style issues 2023-12-18 14:04:25 +00:00
common.h ASoC: qcom: Fix building APQ8016 machine driver without SOUNDWIRE 2023-01-09 13:04:14 +00:00
Kconfig ASoC: qcom: Add x1e80100 sound machine driver 2023-12-18 14:04:22 +00:00
lpass-apq8016.c ASoC: qcom: Fix trivial code style issues 2023-12-18 14:04:25 +00:00
lpass-cdc-dma.c ASoC: DT matching and header cleanups 2023-10-09 23:14:18 +01:00
lpass-cpu.c ASoC: qcom: Fix trivial code style issues 2023-12-18 14:04:25 +00:00
lpass-hdmi.c ASoC: qcom: Fix trivial code style issues 2023-12-18 14:04:25 +00:00
lpass-hdmi.h
lpass-ipq806x.c ASoC: qcom: Fix trivial code style issues 2023-12-18 14:04:25 +00:00
lpass-lpaif-reg.h
lpass-platform.c ASoC: qcom: Fix trivial code style issues 2023-12-18 14:04:25 +00:00
lpass-sc7180.c ASoC: qcom: Fix trivial code style issues 2023-12-18 14:04:25 +00:00
lpass-sc7280.c ASoC: qcom: lpass: Make asoc_qcom_lpass_cpu_platform_remove() return void 2023-10-23 13:29:47 +01:00
lpass.h ASoC: qcom: Fix trivial code style issues 2023-12-18 14:04:25 +00:00
Makefile ASoC: qcom: Add x1e80100 sound machine driver 2023-12-18 14:04:22 +00:00
sc7180.c GPIO inclusion fixes to misc sound drivers 2023-12-19 16:45:42 +00:00
sc7280.c ASoC: DT matching and header cleanups 2023-10-09 23:14:18 +01:00
sc8280xp.c ASoC: qcom: sc8280xp: limit speaker volumes 2024-01-22 19:38:10 +00:00
sdm845.c ASoC: qcom: Fix trivial code style issues 2023-12-18 14:04:25 +00:00
sdw.c ASoC: qcom: Fix trivial code style issues 2023-12-18 14:04:25 +00:00
sdw.h ASoC: qcom: Add helper for allocating Soundwire stream runtime 2023-11-29 18:53:24 +00:00
sm8250.c ASoC: qcom: Fix trivial code style issues 2023-12-18 14:04:25 +00:00
storm.c ASoC: qcom: Fix trivial code style issues 2023-12-18 14:04:25 +00:00
x1e80100.c ASoC: qcom: Add x1e80100 sound machine driver 2023-12-18 14:04:22 +00:00