OSDN Git Service

ASoC: SOF: Intel: hda-dai: Do not perform DMA cleanup during stop
authorRanjani Sridharan <ranjani.sridharan@linux.intel.com>
Wed, 22 Mar 2023 09:43:44 +0000 (11:43 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 22 Mar 2023 13:17:30 +0000 (13:17 +0000)
commit1bf83fa6654ce8959948878aad14a6db586125b8
tree35411b211ccad9f9edb7f9e6e33cb1e8ea75db18
parente3057eb574bae296665f7dfdb1692acc101b3727
ASoC: SOF: Intel: hda-dai: Do not perform DMA cleanup during stop

In the case of repeated start/stop without involving hw_free, the stream
tag needs to be preserved for the subsequent starts. So, skip performing
the DMA clean up during stop and handle it only during suspend or
hw_free.

Signed-off-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>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Link: https://lore.kernel.org/r/20230322094346.6019-2-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/hda-dai.c