Skip to content

Commit

Permalink
ASoC: fsi: bugfix: ensure dma is terminated
Browse files Browse the repository at this point in the history
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 <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Kuninori Morimoto authored and Mark Brown committed May 30, 2012
1 parent 4a1b09b commit fbe42f6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sound/soc/sh/fsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit fbe42f6

Please sign in to comment.