]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: ops: Clarify snd_soc_info_volsw_sx()
authorMark Brown <broonie@kernel.org>
Thu, 2 Jun 2022 09:29:20 +0000 (11:29 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 6 Jun 2022 11:38:32 +0000 (12:38 +0100)
commit27a7fcbb547ca04b5e1e6bcc5239772ebdc6d5c1
tree41acd43d1fefd57a271e415fe3c22581232f41c0
parent5ae8de453689f38bd580a4fd1963aefc08ae8308
ASoC: ops: Clarify snd_soc_info_volsw_sx()

Currently snd_soc_info_volsw_sx() is implemented indirectly, wrapping
snd_soc_info_volsw() and modifying the values it sets up rather than
directly setting up the values reported to userspace. This makes it much
harder to follow what the intended behaviour of these controls is. Let's
rewrite the function to be self contained with a clarifying comment at the
top in an effort to help maintainability.

Signed-off-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Tested-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20220602092921.3302713-1-broonie@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-ops.c