]> git.ipfire.org Git - thirdparty/linux.git/commit
ASoC: Tidy up SOC_DOUBLE_* and SOC_SINGLE_* helpers
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Tue, 4 Mar 2025 14:05:00 +0000 (14:05 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 4 Mar 2025 16:41:03 +0000 (16:41 +0000)
commit6db63090272768785e6bb4a3afa16650c1e96c54
treeb8389a038d84d0415048121a5648bafc32ba18d9
parent2cb6290a24f74f1c4a1b4cbd311ddd50a2c6046a
ASoC: Tidy up SOC_DOUBLE_* and SOC_SINGLE_* helpers

Re-implement SOC_DOUBLE_VALUE() in terms of SOC_DOUBLE_S_VALUE().
SOC_DOUBLE_S_VALUE() already had a minimum value so add this to
SOC_DOUBLE_VALUE as well, this allows replacement of several hard coded
value entries. Likewise update SOC_SINGLE_VALUE to match, which allows
replacement of even more hard coded values.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://patch.msgid.link/20250304140500.976127-14-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc-dapm.h
include/sound/soc.h