aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/twl4030.c
diff options
context:
space:
mode:
authorJarkko Nikula <jarkko.nikula@nokia.com>2008-11-12 10:05:41 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2008-11-13 05:31:22 -0500
commitbbba944410310181de14a5c60a7c161ff2447dd9 (patch)
treebb908fb92356474c86971b1e5e108b5a59c40bb7 /sound/soc/codecs/twl4030.c
parentfb0ef645f2c546f8297b2fbf9b2b8fff4a7455e8 (diff)
ASoC: Fix supported sample rates of TWL4030 audio codec
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>
Diffstat (limited to 'sound/soc/codecs/twl4030.c')
-rw-r--r--sound/soc/codecs/twl4030.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/twl4030.c b/sound/soc/codecs/twl4030.c
index 90f3b4decbab..c1893d23703d 100644
--- a/sound/soc/codecs/twl4030.c
+++ b/sound/soc/codecs/twl4030.c
@@ -504,7 +504,7 @@ static int twl4030_set_dai_fmt(struct snd_soc_dai *codec_dai,
504 return 0; 504 return 0;
505} 505}
506 506
507#define TWL4030_RATES (SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000) 507#define TWL4030_RATES (SNDRV_PCM_RATE_8000_48000)
508#define TWL4030_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FORMAT_S24_LE) 508#define TWL4030_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FORMAT_S24_LE)
509 509
510struct snd_soc_dai twl4030_dai = { 510struct snd_soc_dai twl4030_dai = {