ASoC: topology: Properly unregister DAI on removal
authorAmadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Wed, 20 Jan 2021 15:28:42 +0000 (16:28 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 20 Jan 2021 18:44:52 +0000 (18:44 +0000)
commitfc4cb1e15f0c66f2e37314349dc4a82bd946fbb1
tree0511f075af545519d3727e308faf2f5e981fc849
parente36626bb099e5159a7868dbfad6957ff6b0e4102
ASoC: topology: Properly unregister DAI on removal

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: 6ae4902f2f34 ("ASoC: soc-topology: use devm_snd_soc_register_dai()")
Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Tested-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20210120152846.1703655-2-amadeuszx.slawinski@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-topology.c