mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
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 <[email protected]> Signed-off-by: Pierre-Louis Bossart <[email protected]> Signed-off-by: Mark Brown <[email protected]>
This commit is contained in:
parent
78a24e10cd
commit
adfebb51e1
2 changed files with 33 additions and 0 deletions
|
|
@ -45,6 +45,7 @@ enum snd_soc_dobj_type {
|
|||
SND_SOC_DOBJ_DAI_LINK,
|
||||
SND_SOC_DOBJ_PCM,
|
||||
SND_SOC_DOBJ_CODEC_LINK,
|
||||
SND_SOC_DOBJ_BACKEND_LINK,
|
||||
};
|
||||
|
||||
/* dynamic control object */
|
||||
|
|
|
|||
Loading…
Reference in a new issue