Commit 124cb78d authored by Sergej Sawazki's avatar Sergej Sawazki Committed by Luis Henriques

ASoC: wm8741: Fix rates constraints values

commit 8787041d upstream.

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: default avatarSergej Sawazki <ce3a@gmx.de>
Acked-by: default avatarCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
Signed-off-by: default avatarLuis Henriques <luis.henriques@canonical.com>
parent 1c6881f6
...@@ -123,7 +123,7 @@ static struct { ...@@ -123,7 +123,7 @@ static struct {
}; };
static const unsigned int rates_11289[] = { static const unsigned int rates_11289[] = {
44100, 88235, 44100, 88200,
}; };
static const struct snd_pcm_hw_constraint_list constraints_11289 = { 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,7 +150,7 @@ static const struct snd_pcm_hw_constraint_list constraints_16384 = {
}; };
static const unsigned int rates_16934[] = { static const unsigned int rates_16934[] = {
44100, 88235, 44100, 88200,
}; };
static const struct snd_pcm_hw_constraint_list constraints_16934 = { 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,7 +168,7 @@ static const struct snd_pcm_hw_constraint_list constraints_18432 = {
}; };
static const unsigned int rates_22579[] = { static const unsigned int rates_22579[] = {
44100, 88235, 1764000 44100, 88200, 176400
}; };
static const struct snd_pcm_hw_constraint_list constraints_22579 = { 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,7 +186,7 @@ static const struct snd_pcm_hw_constraint_list constraints_24576 = {
}; };
static const unsigned int rates_36864[] = { static const unsigned int rates_36864[] = {
48000, 96000, 19200 48000, 96000, 192000
}; };
static const struct snd_pcm_hw_constraint_list constraints_36864 = { static const struct snd_pcm_hw_constraint_list constraints_36864 = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment