diff options
author | Sergej Sawazki <ce3a@gmx.de> | 2015-03-24 16:13:22 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-03-25 11:29:19 -0400 |
commit | 8787041d9bb832b9449b1eb878cedcebce42c61a (patch) | |
tree | 0378932ebac3d23b8d30c7bc7ed64de4ec89ce3c | |
parent | c517d838eb7d07bbe9507871fab3931deccff539 (diff) |
ASoC: wm8741: Fix rates constraints values
The WM8741 DAC supports the following typical audio sampling rates:
44.1kHz, 88.2kHz, 176.4kHz (eg: with a master clock of 22.5792MHz)
32kHz, 48kHz, 96kHz, 192kHz (eg: with a master clock of 24.576MHz)
For the rates lists, we should use 82000 instead of 88235, 176400
instead of 1764000 and 192000 instead of 19200 (seems to be a typo).
Signed-off-by: Sergej Sawazki <ce3a@gmx.de>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
-rw-r--r-- | sound/soc/codecs/wm8741.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/soc/codecs/wm8741.c b/sound/soc/codecs/wm8741.c index 31bb4801a005..9e71c768966f 100644 --- a/sound/soc/codecs/wm8741.c +++ b/sound/soc/codecs/wm8741.c | |||
@@ -123,7 +123,7 @@ static struct { | |||
123 | }; | 123 | }; |
124 | 124 | ||
125 | static const unsigned int rates_11289[] = { | 125 | static const unsigned int rates_11289[] = { |
126 | 44100, 88235, | 126 | 44100, 88200, |
127 | }; | 127 | }; |
128 | 128 | ||
129 | static const struct snd_pcm_hw_constraint_list constraints_11289 = { | 129 | static const struct snd_pcm_hw_constraint_list constraints_11289 = { |
@@ -150,7 +150,7 @@ static const struct snd_pcm_hw_constraint_list constraints_16384 = { | |||
150 | }; | 150 | }; |
151 | 151 | ||
152 | static const unsigned int rates_16934[] = { | 152 | static const unsigned int rates_16934[] = { |
153 | 44100, 88235, | 153 | 44100, 88200, |
154 | }; | 154 | }; |
155 | 155 | ||
156 | static const struct snd_pcm_hw_constraint_list constraints_16934 = { | 156 | static const struct snd_pcm_hw_constraint_list constraints_16934 = { |
@@ -168,7 +168,7 @@ static const struct snd_pcm_hw_constraint_list constraints_18432 = { | |||
168 | }; | 168 | }; |
169 | 169 | ||
170 | static const unsigned int rates_22579[] = { | 170 | static const unsigned int rates_22579[] = { |
171 | 44100, 88235, 1764000 | 171 | 44100, 88200, 176400 |
172 | }; | 172 | }; |
173 | 173 | ||
174 | static const struct snd_pcm_hw_constraint_list constraints_22579 = { | 174 | static const struct snd_pcm_hw_constraint_list constraints_22579 = { |
@@ -186,7 +186,7 @@ static const struct snd_pcm_hw_constraint_list constraints_24576 = { | |||
186 | }; | 186 | }; |
187 | 187 | ||
188 | static const unsigned int rates_36864[] = { | 188 | static const unsigned int rates_36864[] = { |
189 | 48000, 96000, 19200 | 189 | 48000, 96000, 192000 |
190 | }; | 190 | }; |
191 | 191 | ||
192 | static const struct snd_pcm_hw_constraint_list constraints_36864 = { | 192 | static const struct snd_pcm_hw_constraint_list constraints_36864 = { |