diff options
| author | Michael Trimarchi <michael@amarulasolutions.com> | 2013-07-21 12:24:01 -0400 |
|---|---|---|
| committer | Mark Brown <broonie@linaro.org> | 2013-07-21 19:57:36 -0400 |
| commit | 6e20b0d760759fd8c90a7b6ccfd6662e3edb94ed (patch) | |
| tree | 7dcf2c380f7c0c862432dd1271ccf221bd23a2fe | |
| parent | b0e0a4d6faaa0415ecc1fa6b9a08dd17df05edad (diff) | |
ASoC: omap-mcbsp: Support SND_SOC_DAIFMT_CBM_CFS for omap3/4
Add SND_SOC_DAIFMT_CBM_CFS support for omap3/omap4. The patch was tested on
a pandaboard-es board connected to the pcm1792a codec. mcbspx_fsx must
configured as output and mcbspx_clkx must be configured as input.
Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
| -rw-r--r-- | sound/soc/omap/omap-mcbsp.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/soc/omap/omap-mcbsp.c b/sound/soc/omap/omap-mcbsp.c index 7483efb6dc67..6c19bba23570 100644 --- a/sound/soc/omap/omap-mcbsp.c +++ b/sound/soc/omap/omap-mcbsp.c | |||
| @@ -433,6 +433,11 @@ static int omap_mcbsp_dai_set_dai_fmt(struct snd_soc_dai *cpu_dai, | |||
| 433 | /* Sample rate generator drives the FS */ | 433 | /* Sample rate generator drives the FS */ |
| 434 | regs->srgr2 |= FSGM; | 434 | regs->srgr2 |= FSGM; |
| 435 | break; | 435 | break; |
| 436 | case SND_SOC_DAIFMT_CBM_CFS: | ||
| 437 | /* McBSP slave. FS clock as output */ | ||
| 438 | regs->srgr2 |= FSGM; | ||
| 439 | regs->pcr0 |= FSXM; | ||
| 440 | break; | ||
| 436 | case SND_SOC_DAIFMT_CBM_CFM: | 441 | case SND_SOC_DAIFMT_CBM_CFM: |
| 437 | /* McBSP slave */ | 442 | /* McBSP slave */ |
| 438 | break; | 443 | break; |
