]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: topology: unload physical dai link in remove
authorBard liao <yung-chuan.liao@linux.intel.com>
Fri, 1 Feb 2019 17:07:40 +0000 (11:07 -0600)
committerMark Brown <broonie@kernel.org>
Mon, 4 Feb 2019 10:59:30 +0000 (11:59 +0100)
commit58c349745c9fc4bbf372de70c04903d4ce08ae44
tree98e210fd99a663651b2ecbd7ca4a0753f0e32c1a
parentabb32b1be00adc31cc8656cbc3c3023f8eec2c6a
ASoC: topology: unload physical dai link in remove

soc_tplg_link_config() will find the physical dai link and call
soc_tplg_dai_link_load() to load the BE dai link. Currently remove_link()
is only used to remove the FE dai link which is created by the topology.
The BE dai link cannot however be unloaded in snd_soc_tplg_component
_remove(), which is problematic if anything needs to be released or
reinitialized.

This patch aligns the definitions of dynamic types with the existing
UAPI and adds a new remove_backend_link() routine to unload the the BE
dai link when snd_soc_tplg_component_remove() is invoked.

Signed-off-by: Bard liao <yung-chuan.liao@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc-topology.h
sound/soc/soc-topology.c