]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: ops: Enforce platform maximum on initial value
authorMartin Povišer <povik+lin@cutebit.org>
Sat, 8 Feb 2025 00:57:22 +0000 (00:57 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 17 Feb 2025 12:09:38 +0000 (12:09 +0000)
commit783db6851c1821d8b983ffb12b99c279ff64f2ee
treef305917c7666be3951590a81e6c805fb8b076ecc
parent74e0fcbd705d4277267311f8f26a00bb8ce93820
ASoC: ops: Enforce platform maximum on initial value

Lower the volume if it is violating the platform maximum at its initial
value (i.e. at the time of the 'snd_soc_limit_volume' call).

Signed-off-by: Martin Povišer <povik+lin@cutebit.org>
[Cherry picked from the Asahi kernel with fixups -- broonie]
Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://patch.msgid.link/20250208-asoc-volume-limit-v1-1-b98fcf4cdbad@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-ops.c