]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: Drop snd_soc_*_get_kcontrol_locked()
authorTakashi Iwai <tiwai@suse.de>
Fri, 9 Aug 2024 10:42:31 +0000 (12:42 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 9 Aug 2024 12:24:55 +0000 (14:24 +0200)
commit9cacb32a0ba691c2859a20bd5e30b71cc592fad2
tree0e3f610bab1655f9b7b7ab6735ebac07e39d0437
parent38ea4c3dc306edf6f4e483e8ad9cb8d33943afde
ASoC: Drop snd_soc_*_get_kcontrol_locked()

The recent cleanup in ALSA control core made no difference between
snd_ctl_find_id_mixer() and snd_ctl_find_id_mixer_locked(), and the
latter is to be dropped.  The only user of the left API was ASoC, and
that's snd_soc_card_get_kcontrol_locked() and
snd_soc_component_get_kcontrol_locked().

This patch drops those functions and rewrites those users to call the
variant without locked instead.  The test of the API became
superfluous, hence dropped as well.

As all callers of snd_ctl_find_id_mixer_locked() are gone,
snd_ctl_find_id_mixer_locked() is finally dropped, too.

Reviewed-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20240809104234.8488-4-tiwai@suse.de
include/sound/control.h
include/sound/soc-card.h
include/sound/soc-component.h
sound/soc/codecs/cs35l45.c
sound/soc/fsl/fsl_xcvr.c
sound/soc/soc-card-test.c
sound/soc/soc-card.c
sound/soc/soc-component.c