From: Sascha Hauer Date: Mon, 23 Aug 2010 06:54:02 +0000 (+0200) Subject: ASoC: i.MX ssi: use SSI_STCCR in synchronous mode X-Git-Tag: upstream/snapshot3+hdmi~12806^2^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=70bf043b137aa9ff2711b16532774465e07a8f47;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git ASoC: i.MX ssi: use SSI_STCCR in synchronous mode 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 Acked-by: Liam Girdwood Signed-off-by: Mark Brown --- diff --git a/sound/soc/imx/imx-ssi.c b/sound/soc/imx/imx-ssi.c index a11daa1..c81da05 100644 --- a/sound/soc/imx/imx-ssi.c +++ b/sound/soc/imx/imx-ssi.c @@ -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;