ASoC: i.MX SSI: Fix DSP_A format.
authorJavier Martin <[email protected]>
Thu, 23 Feb 2012 14:43:18 +0000 (15:43 +0100)
committerMark Brown <[email protected]>
Thu, 23 Feb 2012 18:58:17 +0000 (18:58 +0000)
According to i.MX27 Reference Manual (p 1593) TXBIT0 bit selects
whether the most significant or the less significant part of the
data word written to the FIFO is transmitted.

As DSP_A is the same as DSP_B with a data offset of 1 bit, it
doesn't make any sense to remove TXBIT0 bit here.

Signed-off-by: Javier Martin <[email protected]>
Acked-by: Sascha Hauer <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Cc: [email protected]
sound/soc/imx/imx-ssi.c

index 01d1f749cf021908ead5cb27e30966a17f144ca6..b6adbed6e506c1585503dff1355b46d4afbaa4cf 100644 (file)
@@ -112,7 +112,7 @@ static int imx_ssi_set_dai_fmt(struct snd_soc_dai *cpu_dai, unsigned int fmt)
                break;
        case SND_SOC_DAIFMT_DSP_A:
                /* data on rising edge of bclk, frame high 1clk before data */
-               strcr |= SSI_STCR_TFSL | SSI_STCR_TEFS;
+               strcr |= SSI_STCR_TFSL | SSI_STCR_TXBIT0 | SSI_STCR_TEFS;
                break;
        }