]> www.infradead.org Git - users/hch/misc.git/commitdiff
ASoC: Intel: hda-sdw-bpt: set persistent_buffer false
authorBard Liao <yung-chuan.liao@linux.intel.com>
Mon, 15 Sep 2025 02:48:53 +0000 (10:48 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 15 Sep 2025 11:47:08 +0000 (12:47 +0100)
The persistent_buffer agreement is false when hda_cl_prepare() is
called. We should use the same value when hda_cl_cleanup() is called.

Fixes: 5d5cb86fb46ea ("ASoC: SOF: Intel: hda-sdw-bpt: add helpers for SoundWire BPT DMA")
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.dev>
Link: https://patch.msgid.link/20250915024853.1153518-1-yung-chuan.liao@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/hda-sdw-bpt.c

index 1327f1cad0bcd97756f7389df2f6791b72a726a4..ff5abccf0d88b695393b5772f024c1e105df2ff5 100644 (file)
@@ -150,7 +150,7 @@ static int hda_sdw_bpt_dma_deprepare(struct device *dev, struct hdac_ext_stream
        u32 mask;
        int ret;
 
-       ret = hda_cl_cleanup(sdev->dev, dmab_bdl, true, sdw_bpt_stream);
+       ret = hda_cl_cleanup(sdev->dev, dmab_bdl, false, sdw_bpt_stream);
        if (ret < 0) {
                dev_err(sdev->dev, "%s: SDW BPT DMA cleanup failed\n",
                        __func__);