]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
ASoC: Fix supported sample rates of TWL4030 audio codec
authorJarkko Nikula <jarkko.nikula@nokia.com>
Wed, 12 Nov 2008 15:05:41 +0000 (17:05 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 13 Nov 2008 10:31:22 +0000 (10:31 +0000)
TWL4030 currently supports rates between 8 kHz and 48 kHz and sets the codec
mode register accordingly in twl4030_hw_params. Expose this info so that
ASoC can match other rates than 44.1 kHz or 48 kHz as well.

Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com>
Acked-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/twl4030.c

index 90f3b4decbab9cfe3c11446b275e6b01a6c46443..c1893d23703d7e0a72e2775883066673149a1b7d 100644 (file)
@@ -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 = {