ASoC: qcom: sc8280xp: Limit speaker digital volumes
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Mon, 4 Dec 2023 12:47:36 +0000 (12:47 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 4 Dec 2023 16:20:26 +0000 (16:20 +0000)
commit716d4e5373e9d1ae993485ab2e3b893bf7104fb1
treef4b8950524ef6762dc2c42f707ccc33423068b64
parentfb9ad24485087e0f00d84bee7a5914640b2b9024
ASoC: qcom: sc8280xp: Limit speaker digital volumes

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>
sound/soc/qcom/sc8280xp.c