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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Apr 2022 12:41:17 +0000 (14:41 +0200)
commit3b1ef649c0e66b1e868eb0e88952806ae00a476c
treeeec0e7e73796c105bcfdb6e9bfb06e9416f2ccf7
parentdb1002f04995171ba3cac98d19f9e444b69b8c48
ASoC: SOF: topology: cleanup dailinks on widget unload

commit 20744617bdbafe2e7fb7bf5401f616e24bde4471 upstream.

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: 311ce4fe7637 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/sof/topology.c