Skip to contentSkip to conversation

ASoC i.MX ssi: use SSI_STCCR in synchronous mode

PATCH Applied Sascha Hauer 3 participants 3 messages Aug 23, 2010

Subsystems (3)
lore
Share & tools
lore

Sascha Hauer

author maintainer
#0 lore raw

Hi,

This time with cc list.

Please consider applying for -rc.

Sascha

In synchronous mode the SSI_SRCCR values are ignored. Instead SSI_STCCR must be used for both receiving and transmitting.

---
 sound/soc/imx/imx-ssi.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
sound/soc/imx/imx-ssi.c +3 -0
index a11daa1..c81da05 100644
@@ -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;
Signature · 7 lines
1.7.1

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
Acked-by
#1 lore raw
Quoted 34 lines · Sascha Hauer

Hi,

This time with cc list.

Please consider applying for -rc.

Sascha

In synchronous mode the SSI_SRCCR values are ignored. Instead SSI_STCCR must be used for both receiving and transmitting.

---
 sound/soc/imx/imx-ssi.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
sound/soc/imx/imx-ssi.c +3 -0
index a11daa1..c81da05 100644
@@ -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;
Signature · 1 line
1.7.1
Signature · 3 lines
Freelance Developer, SlimLogic Ltd
ASoC and Voltage Regulator Maintainer.
http://www.slimlogic.co.uk
Applied
#2 lore raw
In reply to Sascha Hauer
Quoted 7 lines · Sascha Hauer

Hi,

This time with cc list.

Please consider applying for -rc.

Sascha

Applied, thanks. Please put stuff like this after the --- in the mail (makes git am DTRT).