Răsfoiți Sursa

ASoC: i.MX SSI driver does not yet support master mode

The clocks for the SSI block need handling before this can work.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Mark Brown 15 ani în urmă
părinte
comite
d08a68bfca
1 a modificat fișierele cu 4 adăugiri și 8 ștergeri
  1. 4 8
      sound/soc/imx/imx-ssi.c

+ 4 - 8
sound/soc/imx/imx-ssi.c

@@ -133,15 +133,11 @@ static int imx_ssi_set_dai_fmt(struct snd_soc_dai *cpu_dai, unsigned int fmt)
 
 
 	/* DAI clock master masks */
 	/* DAI clock master masks */
 	switch (fmt & SND_SOC_DAIFMT_MASTER_MASK) {
 	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;
 		break;
+	default:
+		/* Master mode not implemented, needs handling of clocks. */
+		return -EINVAL;
 	}
 	}
 
 
 	strcr |= SSI_STCR_TFEN0;
 	strcr |= SSI_STCR_TFEN0;