Skip to content

Commit

Permalink
ASoC: i.MX ssi: use SSI_STCCR in synchronous mode
Browse files Browse the repository at this point in the history
In synchronous mode the SSI_SRCCR values are ignored. Instead
SSI_STCCR must be used for both receiving and transmitting.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Sascha Hauer authored and Mark Brown committed Aug 23, 2010
1 parent b2c1e07 commit 70bf043
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sound/soc/imx/imx-ssi.c
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,9 @@ static int imx_ssi_hw_params(struct snd_pcm_substream *substream,
dma_data = &ssi->dma_params_rx;
}

if (ssi->flags & IMX_SSI_SYN)
reg = SSI_STCCR;

snd_soc_dai_set_dma_data(cpu_dai, substream, dma_data);

sccr = readl(ssi->base + reg) & ~SSI_STCCR_WL_MASK;
Expand Down

0 comments on commit 70bf043

Please sign in to comment.