diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2012-05-24 23:55:11 -0700 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-05-30 10:39:51 +0100 |
commit | e42bb9bfbb43366cd1899c9564d043c41ebd8852 (patch) | |
tree | aa1c8cb0d8e983296a0d7f556723b4319f729e75 /sound | |
parent | 41c73b6e89c69cbe36fae5b24da04d6fb52c3b11 (diff) | |
download | linux-stable-e42bb9bfbb43366cd1899c9564d043c41ebd8852.tar.gz linux-stable-e42bb9bfbb43366cd1899c9564d043c41ebd8852.tar.bz2 linux-stable-e42bb9bfbb43366cd1899c9564d043c41ebd8852.zip |
ASoC: fsi: bugfix: enable master clock control on DMA stream
DMA stream handler didn't care about master clock.
This patch fixes it up.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/sh/fsi.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/soc/sh/fsi.c b/sound/soc/sh/fsi.c index 7cee22515d9d..05582c12b902 100644 --- a/sound/soc/sh/fsi.c +++ b/sound/soc/sh/fsi.c @@ -1172,9 +1172,14 @@ static int fsi_dma_transfer(struct fsi_priv *fsi, struct fsi_stream *io) static void fsi_dma_push_start_stop(struct fsi_priv *fsi, struct fsi_stream *io, int start) { + struct fsi_master *master = fsi_get_master(fsi); + u32 clk = fsi_is_port_a(fsi) ? CRA : CRB; u32 enable = start ? DMA_ON : 0; fsi_reg_mask_set(fsi, OUT_DMAC, DMA_ON, enable); + + if (fsi_is_clk_master(fsi)) + fsi_master_mask_set(master, CLK_RST, clk, (enable) ? clk : 0); } static int fsi_dma_probe(struct fsi_priv *fsi, struct fsi_stream *io) |