Skip to content

Commit

Permalink
ASoC: i.MX SSI driver does not yet support master mode
Browse files Browse the repository at this point in the history
The clocks for the SSI block need handling before this can work.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Mark Brown committed Jan 17, 2010
1 parent 48dbc41 commit d08a68b
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions sound/soc/imx/imx-ssi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d08a68b

Please sign in to comment.