Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6e20b0d7 authored by Michael Trimarchi's avatar Michael Trimarchi Committed by Mark Brown
Browse files

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: default avatarMichael Trimarchi <michael@amarulasolutions.com>
Acked-by: default avatarPeter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent b0e0a4d6
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -433,6 +433,11 @@ static int omap_mcbsp_dai_set_dai_fmt(struct snd_soc_dai *cpu_dai,
		/* Sample rate generator drives the FS */
		/* Sample rate generator drives the FS */
		regs->srgr2	|= FSGM;
		regs->srgr2	|= FSGM;
		break;
		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:
	case SND_SOC_DAIFMT_CBM_CFM:
		/* McBSP slave */
		/* McBSP slave */
		break;
		break;