demux: add delay when close wdma [1/1]

PD#SWPL-151824

Problem:
dmc monitor wdma use free memory.

Solution:
add delay when close wdma

Verify:
verified at T5M

Change-Id: I34a671bead69a77561377424ff959482cc0eae59
Signed-off-by: chuangcheng peng <chuangcheng.peng@amlogic.com>
This commit is contained in:
chuangcheng peng
2024-01-08 16:45:58 +08:00
committed by gerrit autosubmit
parent 8b927f8f1b
commit d99aba6b35
@@ -713,6 +713,8 @@ void wdma_config_enable(struct chan_id *pchan, int enable,
if (cnt)
msleep(20);
wdma_clean(pchan->id);
/*wait the hw can't output*/
usleep_range(300, 400);
//delay
// while (times ++ < 500);
pr_dbg("%s wptr:0x%0x\n", __func__,