ASoC: topology: Properly unregister DAI on removal
stable inclusion from stable-5.10.13 commit 4a97f42a6690ea8b81c4b17bc422934dfd505821 bugzilla: 47995 -------------------------------- commit fc4cb1e1 upstream. DAIs need to be removed when topology unload function is called (usually done when component is being removed). We can't do this when device is being removed, as structures we operate on when removing DAI can already be freed. Fixes: 6ae4902f ("ASoC: soc-topology: use devm_snd_soc_register_dai()") Signed-off-by: NAmadeusz Sławiński <amadeuszx.slawinski@linux.intel.com> Tested-by: NPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20210120152846.1703655-2-amadeuszx.slawinski@linux.intel.comSigned-off-by: NMark Brown <broonie@kernel.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com> Acked-by: NXie XiuQi <xiexiuqi@huawei.com>
Showing
想要评论请 注册 或 登录