]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: ops: Factor out common code from info callbacks
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Tue, 18 Mar 2025 17:14:55 +0000 (17:14 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 19 Mar 2025 12:48:06 +0000 (12:48 +0000)
commit9dfcafe2037acc14265cead8d8a937a8bc4e01d8
tree5783c625a9cf15696291e7290cd8279c73c429d5
parent7d5df968f95cee274740d5fa42e0798ffb59bd38
ASoC: ops: Factor out common code from info callbacks

snd_soc_info_volsw() and snd_soc_info_volsw_sx() do very similar
things, and have a lot of code in common. Already this is causing
some issues as the detection of volume controls has been fixed
in the normal callback but not the sx callback. Factor out a new
helper containing the common code and leave the function specific
bits behind in each callback.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://patch.msgid.link/20250318171459.3203730-12-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-ops.c