aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm8776.c
diff options
context:
space:
mode:
authorTimur Tabi <timur@freescale.com>2011-09-16 10:16:54 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-09-16 12:35:18 -0400
commit0016226d03fa8d695fb7b933ea1810503d774820 (patch)
tree8ba22123350f73634c9f8e156fe288e1841f50ee /sound/soc/codecs/wm8776.c
parent0547d0f3dadfd9a3eb8523630fef52612ab14de4 (diff)
ASoC: support all possible sample rates in the WM8776 driver
The WM8776 supports a continuous range of sample rates rather than discrete values and supports a wider range of sample rates on the playback path than is currently supported. Update the constraints on the DAIs to reflect this. Signed-off-by: Timur Tabi <timur@freescale.com> Acked-by: Liam Girdwood <lrg@ti.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/wm8776.c')
-rw-r--r--sound/soc/codecs/wm8776.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/sound/soc/codecs/wm8776.c b/sound/soc/codecs/wm8776.c
index 5b17627aab0f..00d8846fae8a 100644
--- a/sound/soc/codecs/wm8776.c
+++ b/sound/soc/codecs/wm8776.c
@@ -322,11 +322,6 @@ static int wm8776_set_bias_level(struct snd_soc_codec *codec,
322 return 0; 322 return 0;
323} 323}
324 324
325#define WM8776_RATES (SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_44100 |\
326 SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_88200 |\
327 SNDRV_PCM_RATE_96000)
328
329
330#define WM8776_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE |\ 325#define WM8776_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE |\
331 SNDRV_PCM_FMTBIT_S24_LE | SNDRV_PCM_FMTBIT_S32_LE) 326 SNDRV_PCM_FMTBIT_S24_LE | SNDRV_PCM_FMTBIT_S32_LE)
332 327
@@ -351,7 +346,9 @@ static struct snd_soc_dai_driver wm8776_dai[] = {
351 .stream_name = "Playback", 346 .stream_name = "Playback",
352 .channels_min = 2, 347 .channels_min = 2,
353 .channels_max = 2, 348 .channels_max = 2,
354 .rates = WM8776_RATES, 349 .rates = SNDRV_PCM_RATE_CONTINUOUS,
350 .rate_min = 32000,
351 .rate_max = 192000,
355 .formats = WM8776_FORMATS, 352 .formats = WM8776_FORMATS,
356 }, 353 },
357 .ops = &wm8776_dac_ops, 354 .ops = &wm8776_dac_ops,
@@ -363,7 +360,9 @@ static struct snd_soc_dai_driver wm8776_dai[] = {
363 .stream_name = "Capture", 360 .stream_name = "Capture",
364 .channels_min = 2, 361 .channels_min = 2,
365 .channels_max = 2, 362 .channels_max = 2,
366 .rates = WM8776_RATES, 363 .rates = SNDRV_PCM_RATE_CONTINUOUS,
364 .rate_min = 32000,
365 .rate_max = 96000,
367 .formats = WM8776_FORMATS, 366 .formats = WM8776_FORMATS,
368 }, 367 },
369 .ops = &wm8776_adc_ops, 368 .ops = &wm8776_adc_ops,