diff options
author | Alejandro Sierra <b18039@freescale.com> | 2012-04-10 12:26:49 -0500 |
---|---|---|
committer | Alejandro Sierra <b18039@freescale.com> | 2012-04-10 12:34:42 -0500 |
commit | 5744953ee278f9deac3c51221b1414ef9c509a11 (patch) | |
tree | 3ede765f8b23dcd6b34445efcd711451d38a1138 /sound/soc | |
parent | 0568c38c5f02bc2162f79b52b825d8f57253bdec (diff) |
ENGR00179122 Fix SRCR configuration on SSI interface
SRCR was bad configured on the DAI format
configuration function on the imx-ssi.c file.
When SSI was configured as master.
Signed-off-by: Alejandro Sierra <b18039@freescale.com>
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/imx/imx-ssi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/imx/imx-ssi.c b/sound/soc/imx/imx-ssi.c index be2717587c59..9fdb5fda4b45 100644 --- a/sound/soc/imx/imx-ssi.c +++ b/sound/soc/imx/imx-ssi.c @@ -158,6 +158,8 @@ static int imx_ssi_set_dai_fmt(struct snd_soc_dai *cpu_dai, unsigned int fmt) scr |= SSI_SCR_SYN; writel(strcr, ssi->base + SSI_STCR); + if ((fmt & SND_SOC_DAIFMT_MASTER_MASK) == SND_SOC_DAIFMT_CBS_CFS) + strcr &= ~(SSI_STCR_TFDIR | SSI_STCR_TXDIR); writel(strcr, ssi->base + SSI_SRCR); writel(scr, ssi->base + SSI_SCR); |