]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: SOF: topology: cleanup dailinks on widget unload
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Wed, 6 Apr 2022 19:16:06 +0000 (14:16 -0500)
committerMark Brown <broonie@kernel.org>
Thu, 7 Apr 2022 17:29:35 +0000 (18:29 +0100)
commit848a983bf8c533f5bb829da4ae6fee0b50e5bd1b
tree995518cb7acf76f3748fa714b2dd168f38284431
parent7baed4949682ccf0d9b8c261e4c8e12c6385eb4a
ASoC: SOF: topology: cleanup dailinks on widget unload

We set the cpu_dai capture_ or playback_widget on widget_ready but
never clear them, which leads to failures when unloading/reloading a
topology in modprobe/rmmod tests

BugLink: https://github.com/thesofproject/linux/issues/3535
Fixes: 623b3c4abb2b ("ASoC: SOF: Add support for loading topologies")
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20220406191606.254576-1-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/topology.c