summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorNicolin Chen <b42378@freescale.com>2013-08-05 17:26:45 +0800
committerJason Liu <r64343@freescale.com>2013-08-23 07:30:08 +0800
commit17fd1d49ec742771281e0a4dd3aa5be67d5bf3d3 (patch)
treeab8bb28fba9c1c410ee6e695604474a906840ba5 /sound
parent89c6977256c5caf9a3c24e762b38b54e2877287b (diff)
ENGR00273838-9 ASoC: WM8962: Remove 64KHz sample rate support
64KHz is not in the auto samplerate list of WM8962. When playing a 64KHz wave file, 'Unsupported rate 64000Hz' will be prompted. Thus remove to let alsa-lib handle it. Acked-by: Wang Shengjiu <b02247@freescale.com> Signed-off-by: Nicolin Chen <b42378@freescale.com>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/wm8962.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm8962.c b/sound/soc/codecs/wm8962.c
index 02f0477c3800..68f45282a3cd 100644
--- a/sound/soc/codecs/wm8962.c
+++ b/sound/soc/codecs/wm8962.c
@@ -2913,7 +2913,8 @@ static int wm8962_mute(struct snd_soc_dai *dai, int mute)
WM8962_DAC_MUTE, val);
}
-#define WM8962_RATES SNDRV_PCM_RATE_8000_96000
+#define WM8962_RATES (SNDRV_PCM_RATE_8000_48000 |\
+ SNDRV_PCM_RATE_88200 | SNDRV_PCM_RATE_96000)
#define WM8962_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE |\
SNDRV_PCM_FMTBIT_S24_LE | SNDRV_PCM_FMTBIT_S32_LE)