From: Kuninori Morimoto Date: Tue, 29 May 2012 06:28:22 +0000 (-0700) Subject: ASoC: fsi: bugfix: ensure dma is terminated X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fbe42f66c66c279b4ed9b8f515058a09bc731c49;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git ASoC: fsi: bugfix: ensure dma is terminated FSI DMAEngine has to be stopped certainly at the start/stop time. Without this patch, it will include noise on playback. Signed-off-by: Kuninori Morimoto Signed-off-by: Mark Brown --- diff --git a/sound/soc/sh/fsi.c b/sound/soc/sh/fsi.c index 6e750a8ae2a..2ef98536f1d 100644 --- a/sound/soc/sh/fsi.c +++ b/sound/soc/sh/fsi.c @@ -1178,6 +1178,8 @@ static void fsi_dma_push_start_stop(struct fsi_priv *fsi, struct fsi_stream *io, fsi_reg_mask_set(fsi, OUT_DMAC, DMA_ON, enable); + dmaengine_terminate_all(io->chan); + if (fsi_is_clk_master(fsi)) fsi_master_mask_set(master, CLK_RST, clk, (enable) ? clk : 0); }