ASoC: i.MX SSI driver does not yet support master mode
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 11 Jan 2010 16:56:19 +0000 (16:56 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 17 Jan 2010 11:10:02 +0000 (11:10 +0000)
The clocks for the SSI block need handling before this can work.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/imx/imx-ssi.c

index ccb7ec9ce997e2d91fc5d7b711dc4733f91dcb76..56f46a75d2972515f19e3bb89c8bf6f50960375d 100644 (file)
@@ -133,15 +133,11 @@ static int imx_ssi_set_dai_fmt(struct snd_soc_dai *cpu_dai, unsigned int fmt)
 
        /* DAI clock master masks */
        switch (fmt & SND_SOC_DAIFMT_MASTER_MASK) {
-       case SND_SOC_DAIFMT_CBS_CFS:
-               strcr |= SSI_STCR_TFDIR | SSI_STCR_TXDIR;
-               break;
-       case SND_SOC_DAIFMT_CBM_CFS:
-               strcr |= SSI_STCR_TFDIR;
-               break;
-       case SND_SOC_DAIFMT_CBS_CFM:
-               strcr |= SSI_STCR_TXDIR;
+       case SND_SOC_DAIFMT_CBM_CFM:
                break;
+       default:
+               /* Master mode not implemented, needs handling of clocks. */
+               return -EINVAL;
        }
 
        strcr |= SSI_STCR_TFEN0;
This page took 0.025261 seconds and 5 git commands to generate.