ASoC: McASP: Add pins output direction for rx clocks when configured in CBS_CFS format
authorMarek Belisko <marek.belisko@gmail.com>
Fri, 26 Apr 2013 12:38:11 +0000 (14:38 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 30 Apr 2013 18:44:23 +0000 (19:44 +0100)
When McASP is bit clock and frame clock master enable pin output for rx clocks.

Signed-off-by: Marek Belisko <marek.belisko@streamunlimited.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/davinci/davinci-mcasp.c

index 9321e5c9d8c125b3d8894dda33df44d94b7068dc..9acb72c5f65c92085513e13189dfc7280acf91e9 100644 (file)
@@ -503,7 +503,10 @@ static int davinci_mcasp_set_dai_fmt(struct snd_soc_dai *cpu_dai,
                mcasp_set_bits(base + DAVINCI_MCASP_ACLKRCTL_REG, ACLKRE);
                mcasp_set_bits(base + DAVINCI_MCASP_RXFMCTL_REG, AFSRE);
 
-               mcasp_set_bits(base + DAVINCI_MCASP_PDIR_REG, ACLKX | AFSX);
+               mcasp_set_bits(base + DAVINCI_MCASP_PDIR_REG,
+                               ACLKX | ACLKR);
+               mcasp_set_bits(base + DAVINCI_MCASP_PDIR_REG,
+                               AFSX | AFSR);
                break;
        case SND_SOC_DAIFMT_CBM_CFS:
                /* codec is clock master and frame slave */