]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Jun 2025 12:40:13 +0000 (14:40 +0200)
commitd9f7ac25ff67bd3989a2adda12554baa2309e560
tree9e479c2f7b6924d8e21775d486d49c18c7631db9
parent963bac7f04f6bee673d1c0cadca3e95b03451d1c
ASoC: ops: Enforce platform maximum on initial value

[ Upstream commit 783db6851c1821d8b983ffb12b99c279ff64f2ee ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/soc-ops.c