]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/3.19.7/asoc-wm8741-fix-rates-constraints-values.patch
4.9-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 3.19.7 / asoc-wm8741-fix-rates-constraints-values.patch
1 From 8787041d9bb832b9449b1eb878cedcebce42c61a Mon Sep 17 00:00:00 2001
2 From: Sergej Sawazki <ce3a@gmx.de>
3 Date: Tue, 24 Mar 2015 21:13:22 +0100
4 Subject: ASoC: wm8741: Fix rates constraints values
5
6 From: Sergej Sawazki <ce3a@gmx.de>
7
8 commit 8787041d9bb832b9449b1eb878cedcebce42c61a upstream.
9
10 The WM8741 DAC supports the following typical audio sampling rates:
11 44.1kHz, 88.2kHz, 176.4kHz (eg: with a master clock of 22.5792MHz)
12 32kHz, 48kHz, 96kHz, 192kHz (eg: with a master clock of 24.576MHz)
13
14 For the rates lists, we should use 82000 instead of 88235, 176400
15 instead of 1764000 and 192000 instead of 19200 (seems to be a typo).
16
17 Signed-off-by: Sergej Sawazki <ce3a@gmx.de>
18 Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
19 Signed-off-by: Mark Brown <broonie@kernel.org>
20 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
21
22 ---
23 sound/soc/codecs/wm8741.c | 8 ++++----
24 1 file changed, 4 insertions(+), 4 deletions(-)
25
26 --- a/sound/soc/codecs/wm8741.c
27 +++ b/sound/soc/codecs/wm8741.c
28 @@ -123,7 +123,7 @@ static struct {
29 };
30
31 static const unsigned int rates_11289[] = {
32 - 44100, 88235,
33 + 44100, 88200,
34 };
35
36 static const struct snd_pcm_hw_constraint_list constraints_11289 = {
37 @@ -150,7 +150,7 @@ static const struct snd_pcm_hw_constrain
38 };
39
40 static const unsigned int rates_16934[] = {
41 - 44100, 88235,
42 + 44100, 88200,
43 };
44
45 static const struct snd_pcm_hw_constraint_list constraints_16934 = {
46 @@ -168,7 +168,7 @@ static const struct snd_pcm_hw_constrain
47 };
48
49 static const unsigned int rates_22579[] = {
50 - 44100, 88235, 1764000
51 + 44100, 88200, 176400
52 };
53
54 static const struct snd_pcm_hw_constraint_list constraints_22579 = {
55 @@ -186,7 +186,7 @@ static const struct snd_pcm_hw_constrain
56 };
57
58 static const unsigned int rates_36864[] = {
59 - 48000, 96000, 19200
60 + 48000, 96000, 192000
61 };
62
63 static const struct snd_pcm_hw_constraint_list constraints_36864 = {