ASoC: Intel: avs: Remove topology-loading wrappers
Subsystems (3)
Cezary Rojewski
maintainerPATCH 1/1 ASoC: Intel: avs: Remove topology-loading wrappers
With recent changes avs_load_topology() became unused whereas avs_remove_topology() is a simple wrapper. Drop them both.
--- sound/soc/intel/avs/pcm.c | 4 ++-- sound/soc/intel/avs/topology.c | 25 ------------------------- sound/soc/intel/avs/topology.h | 3 --- 3 files changed, 2 insertions(+), 30 deletions(-)
sound/soc/intel/avs/pcm.c +2 -2
@@ -1065,7 +1065,7 @@ static int avs_component_probe(struct snd_soc_component *component)return 0 ; err_load_libs: -avs_remove_topology (component); +snd_soc_tplg_component_remove (component);return ret; }
@@ -1083,7 +1083,7 @@ static void avs_component_remove(struct snd_soc_component *component)mutex_unlock (&adev->comp_list_mutex);if (mach->tplg_filename) { - ret =avs_remove_topology (component); + ret =snd_soc_tplg_component_remove (component);if (ret <0 )dev_err (component->dev,"unload topology failed: %d\n" , ret); }
sound/soc/intel/avs/topology.c +0 -25
@@ -2226,28 +2226,3 @@ struct avs_tplg *avs_tplg_new(struct snd_soc_component *comp)return tplg; } - -int avs_load_topology (struct snd_soc_component *comp,const char *filename) -{ - const struct firmware *fw __free(firmware) = NULL; -int ret; - - ret =request_firmware (&fw, filename, comp->dev); -if (ret <0 ) { -dev_err (comp->dev,"request topology \"%s\" failed: %d\n" , filename, ret); -return ret; - } - - ret =snd_soc_tplg_component_load (comp, &avs_tplg_ops, fw); -if (ret <0 ) -dev_err (comp->dev,"load topology \"%s\" failed: %d\n" , filename, ret); - -return ret; -} - -int avs_remove_topology (struct snd_soc_component *comp) -{ -snd_soc_tplg_component_remove (comp); - -return 0 ; -}
sound/soc/intel/avs/topology.h +0 -3
@@ -233,7 +233,4 @@ struct avs_tplg_module {extern const struct snd_soc_tplg_ops avs_tplg_ops;struct avs_tplg *avs_tplg_new (struct snd_soc_component *comp); -int avs_load_topology (struct snd_soc_component *comp,const char *filename); -int avs_remove_topology (struct snd_soc_component *comp); -#endif
Signature · 1 line
2.34.1
Mark Brown
maintainerQuoted 1 line · Cezary Rojewski
ASoC: Intel: avs: Remove topology-loading wrappers
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-7.4
Thanks!
[1/1] ASoC: Intel: avs: Remove topology-loading wrappers
https://git.kernel.org/broonie/sound/c/99c3d5954293
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark