diff options
author | Michael Trimarchi <michael@amarulasolutions.com> | 2013-07-21 20:24:01 +0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-07-22 03:57:36 +0400 |
commit | 6e20b0d760759fd8c90a7b6ccfd6662e3edb94ed (patch) | |
tree | 7dcf2c380f7c0c862432dd1271ccf221bd23a2fe /sound/soc/omap/omap-mcbsp.c | |
parent | b0e0a4d6faaa0415ecc1fa6b9a08dd17df05edad (diff) | |
download | linux-6e20b0d760759fd8c90a7b6ccfd6662e3edb94ed.tar.xz |
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>
Diffstat (limited to 'sound/soc/omap/omap-mcbsp.c')
-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, /* Sample rate generator drives the FS */ regs->srgr2 |= FSGM; break; + case SND_SOC_DAIFMT_CBM_CFS: + /* McBSP slave. FS clock as output */ + regs->srgr2 |= FSGM; + regs->pcr0 |= FSXM; + break; case SND_SOC_DAIFMT_CBM_CFM: /* McBSP slave */ break; |