ASoC: Extend range of supported sample rates for CS4271 CODEC.
authorAlexander Sverdlin <subaparts@yandex.ru>
Mon, 7 Mar 2011 17:29:36 +0000 (20:29 +0300)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 7 Mar 2011 17:32:02 +0000 (17:32 +0000)
Extend range of supported sample rates for CS4271 CODEC.

Signed-off-by: Alexander Sverdlin <subaparts@yandex.ru>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/cs4271.c

index 41a3ee6f61447bafbc03396fea8f2c927c825a55..538e814136d3f09532768f6257eea4643e699627 100644 (file)
@@ -33,6 +33,7 @@
 #define CS4271_PCM_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | \
                            SNDRV_PCM_FMTBIT_S24_LE | \
                            SNDRV_PCM_FMTBIT_S32_LE)
+#define CS4271_PCM_RATES SNDRV_PCM_RATE_8000_192000
 
 /*
  * CS4271 registers
@@ -392,14 +393,14 @@ static struct snd_soc_dai_driver cs4271_dai = {
                .stream_name    = "Playback",
                .channels_min   = 2,
                .channels_max   = 2,
-               .rates          = SNDRV_PCM_RATE_8000_96000,
+               .rates          = CS4271_PCM_RATES,
                .formats        = CS4271_PCM_FORMATS,
        },
        .capture = {
                .stream_name    = "Capture",
                .channels_min   = 2,
                .channels_max   = 2,
-               .rates          = SNDRV_PCM_RATE_8000_96000,
+               .rates          = CS4271_PCM_RATES,
                .formats        = CS4271_PCM_FORMATS,
        },
        .ops = &cs4271_dai_ops,