aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorGrazvydas Ignotas <notasas@gmail.com>2008-11-05 16:51:05 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2008-11-06 06:27:30 -0500
commite18c94d20224f3df584531a48d944d8cccfda46d (patch)
treede5c5bee6ca3cdf5bf75c4f08b491c6ef83de309 /sound
parent8dc840f88d9c9f75f46d5dbe489242f8a114fab6 (diff)
ALSA: ASoC: TWL4030 codec - fix 256*Fs clock
According to TRM, 256*Fs clock output should be enabled when TWL4030 is in slave mode, not master. This allows sound to work on OMAP3 Pandora, which uses 256*Fs clock. Signed-off-by: Grazvydas Ignotas <notasas@gmail.com> Acked-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/twl4030.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/twl4030.c b/sound/soc/codecs/twl4030.c
index ee2f0d37765c..90f3b4decbab 100644
--- a/sound/soc/codecs/twl4030.c
+++ b/sound/soc/codecs/twl4030.c
@@ -469,11 +469,11 @@ static int twl4030_set_dai_fmt(struct snd_soc_dai *codec_dai,
469 switch (fmt & SND_SOC_DAIFMT_MASTER_MASK) { 469 switch (fmt & SND_SOC_DAIFMT_MASTER_MASK) {
470 case SND_SOC_DAIFMT_CBM_CFM: 470 case SND_SOC_DAIFMT_CBM_CFM:
471 format &= ~(TWL4030_AIF_SLAVE_EN); 471 format &= ~(TWL4030_AIF_SLAVE_EN);
472 format |= TWL4030_CLK256FS_EN; 472 format &= ~(TWL4030_CLK256FS_EN);
473 break; 473 break;
474 case SND_SOC_DAIFMT_CBS_CFS: 474 case SND_SOC_DAIFMT_CBS_CFS:
475 format &= ~(TWL4030_CLK256FS_EN);
476 format |= TWL4030_AIF_SLAVE_EN; 475 format |= TWL4030_AIF_SLAVE_EN;
476 format |= TWL4030_CLK256FS_EN;
477 break; 477 break;
478 default: 478 default:
479 return -EINVAL; 479 return -EINVAL;