]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - sound/soc/codecs/twl4030.c
ASoC: Fix supported sample rates of TWL4030 audio codec
[linux-2.6-omap-h63xx.git] / sound / soc / codecs / twl4030.c
index ee2f0d37765c3c582450f6fd0537caa3e963aa10..c1893d23703d7e0a72e2775883066673149a1b7d 100644 (file)
@@ -469,11 +469,11 @@ static int twl4030_set_dai_fmt(struct snd_soc_dai *codec_dai,
        switch (fmt & SND_SOC_DAIFMT_MASTER_MASK) {
        case SND_SOC_DAIFMT_CBM_CFM:
                format &= ~(TWL4030_AIF_SLAVE_EN);
-               format |= TWL4030_CLK256FS_EN;
+               format &= ~(TWL4030_CLK256FS_EN);
                break;
        case SND_SOC_DAIFMT_CBS_CFS:
-               format &= ~(TWL4030_CLK256FS_EN);
                format |= TWL4030_AIF_SLAVE_EN;
+               format |= TWL4030_CLK256FS_EN;
                break;
        default:
                return -EINVAL;
@@ -504,7 +504,7 @@ static int twl4030_set_dai_fmt(struct snd_soc_dai *codec_dai,
        return 0;
 }
 
-#define TWL4030_RATES   (SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000)
+#define TWL4030_RATES   (SNDRV_PCM_RATE_8000_48000)
 #define TWL4030_FORMATS         (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FORMAT_S24_LE)
 
 struct snd_soc_dai twl4030_dai = {