ASoC: SOF: keep prepare/unprepare widgets in sink path
authorBard Liao <yung-chuan.liao@linux.intel.com>
Wed, 18 Jan 2023 10:12:55 +0000 (12:12 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 18 Jan 2023 12:08:32 +0000 (12:08 +0000)
commitcc755b4377b0520d594ae573497cf0824baea648
tree677e77e974220c002d643036145f7bfe49298fd4
parent0ad84b11f2f8dd19d62d0b2ffd95ece897e6c3dc
ASoC: SOF: keep prepare/unprepare widgets in sink path

The existing code return when a widget doesn't need to
prepare/unprepare. This will prevent widgets in the sink path from being
prepared/unprepared.

Cc: <stable@vger.kernel.org> # 6.1
Link: https://github.com/thesofproject/linux/issues/4021
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Rander Wang <rander.wang@intel.com>
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Link: https://lore.kernel.org/r/20230118101255.29139-4-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/sof-audio.c