diff options
author | Chaithrika U S <chaithrika@ti.com> | 2009-08-11 16:59:12 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-08-13 17:19:35 -0400 |
commit | 517ee6cf699967b421bcf8967e7bbeb3c45ded1a (patch) | |
tree | acd066d11724eaf27483ffd69150c1be07af8c26 /sound/soc | |
parent | 6a99fb5fb85f267d075310fd30c4bf6f0ae63062 (diff) |
ASoC: DaVinci: Add a DAI format to McASP driver
The patch adds a DAI format: Codec bit clock master and frame sync slave,
to the driver.
Signed-off-by: Chaithrika U S <chaithrika@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/davinci/davinci-mcasp.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sound/soc/davinci/davinci-mcasp.c b/sound/soc/davinci/davinci-mcasp.c index e672f431323d..eca22d7829d2 100644 --- a/sound/soc/davinci/davinci-mcasp.c +++ b/sound/soc/davinci/davinci-mcasp.c | |||
@@ -443,6 +443,16 @@ static int davinci_mcasp_set_dai_fmt(struct snd_soc_dai *cpu_dai, | |||
443 | 443 | ||
444 | mcasp_set_bits(base + DAVINCI_MCASP_PDIR_REG, (0x7 << 26)); | 444 | mcasp_set_bits(base + DAVINCI_MCASP_PDIR_REG, (0x7 << 26)); |
445 | break; | 445 | break; |
446 | case SND_SOC_DAIFMT_CBM_CFS: | ||
447 | /* codec is clock master and frame slave */ | ||
448 | mcasp_set_bits(base + DAVINCI_MCASP_ACLKXCTL_REG, ACLKXE); | ||
449 | mcasp_set_bits(base + DAVINCI_MCASP_TXFMCTL_REG, AFSXE); | ||
450 | |||
451 | mcasp_set_bits(base + DAVINCI_MCASP_ACLKRCTL_REG, ACLKRE); | ||
452 | mcasp_set_bits(base + DAVINCI_MCASP_RXFMCTL_REG, AFSRE); | ||
453 | |||
454 | mcasp_set_bits(base + DAVINCI_MCASP_PDIR_REG, (0x2d << 26)); | ||
455 | break; | ||
446 | case SND_SOC_DAIFMT_CBM_CFM: | 456 | case SND_SOC_DAIFMT_CBM_CFM: |
447 | /* codec is clock and frame master */ | 457 | /* codec is clock and frame master */ |
448 | mcasp_clr_bits(base + DAVINCI_MCASP_ACLKXCTL_REG, ACLKXE); | 458 | mcasp_clr_bits(base + DAVINCI_MCASP_ACLKXCTL_REG, ACLKXE); |