]> 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:38:02 +0000 (14:38 +0200)
commitc1f0a98342d4cf55626bc3f3d60273b34739a6db
tree5cf73a91a876c3882f4dccb88c06e780c1363494
parentd5db6ffb03fa34f653456a3a01202f83dd6ec42a
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