]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: ops: Remove snd_soc_info_volsw_range()
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Tue, 18 Mar 2025 17:14:52 +0000 (17:14 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 19 Mar 2025 12:48:04 +0000 (12:48 +0000)
commit894a37c9de4b8a447ffa609d552e91ccb447c0a9
tree672689daf0af324f897138edd1c3c6c48ba6db6b
parented336066202c02f0b0e47d0cf08fd8f40a42351f
ASoC: ops: Remove snd_soc_info_volsw_range()

The only difference between snd_soc_info_volsw() and
snd_soc_info_volsw_range() is that the later will not force a 2
value control to be of type integer if the name ends in "Volume".

The kernel currently contains no users of snd_soc_info_volsw_range()
that would return a boolean control with this code, so the risk is
quite low and it seems appropriate that it should contain volume
control detection. So remove snd_soc_info_volsw_range() and point its
users at snd_soc_info_volsw().

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://patch.msgid.link/20250318171459.3203730-9-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc.h
sound/pci/hda/tas2781_hda_i2c.c
sound/pci/hda/tas2781_hda_spi.c
sound/soc/soc-ops.c
sound/soc/soc-topology.c