Commit d99e424a authored by Brian Austin's avatar Brian Austin Committed by Jiri Slaby

ASoC: cs42l73: Fix mask bits for SOC_VALUE_ENUM_SINGLE

commit 1555b652 upstream.

The mask bits values were wrong for the SOC_VALUE_ENUM_SINGLE for the mono mix controls.
Reported-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarBrian Austin <brian.austin@cirrus.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
parent 5cfa0556
...@@ -325,7 +325,7 @@ static const char * const cs42l73_mono_mix_texts[] = { ...@@ -325,7 +325,7 @@ static const char * const cs42l73_mono_mix_texts[] = {
static const unsigned int cs42l73_mono_mix_values[] = { 0, 1, 2 }; static const unsigned int cs42l73_mono_mix_values[] = { 0, 1, 2 };
static const struct soc_enum spk_asp_enum = static const struct soc_enum spk_asp_enum =
SOC_VALUE_ENUM_SINGLE(CS42L73_MMIXCTL, 6, 1, SOC_VALUE_ENUM_SINGLE(CS42L73_MMIXCTL, 6, 3,
ARRAY_SIZE(cs42l73_mono_mix_texts), ARRAY_SIZE(cs42l73_mono_mix_texts),
cs42l73_mono_mix_texts, cs42l73_mono_mix_texts,
cs42l73_mono_mix_values); cs42l73_mono_mix_values);
...@@ -343,7 +343,7 @@ static const struct snd_kcontrol_new spk_xsp_mixer = ...@@ -343,7 +343,7 @@ static const struct snd_kcontrol_new spk_xsp_mixer =
SOC_DAPM_ENUM("Route", spk_xsp_enum); SOC_DAPM_ENUM("Route", spk_xsp_enum);
static const struct soc_enum esl_asp_enum = static const struct soc_enum esl_asp_enum =
SOC_VALUE_ENUM_SINGLE(CS42L73_MMIXCTL, 2, 5, SOC_VALUE_ENUM_SINGLE(CS42L73_MMIXCTL, 2, 3,
ARRAY_SIZE(cs42l73_mono_mix_texts), ARRAY_SIZE(cs42l73_mono_mix_texts),
cs42l73_mono_mix_texts, cs42l73_mono_mix_texts,
cs42l73_mono_mix_values); cs42l73_mono_mix_values);
...@@ -352,7 +352,7 @@ static const struct snd_kcontrol_new esl_asp_mixer = ...@@ -352,7 +352,7 @@ static const struct snd_kcontrol_new esl_asp_mixer =
SOC_DAPM_ENUM("Route", esl_asp_enum); SOC_DAPM_ENUM("Route", esl_asp_enum);
static const struct soc_enum esl_xsp_enum = static const struct soc_enum esl_xsp_enum =
SOC_VALUE_ENUM_SINGLE(CS42L73_MMIXCTL, 0, 7, SOC_VALUE_ENUM_SINGLE(CS42L73_MMIXCTL, 0, 3,
ARRAY_SIZE(cs42l73_mono_mix_texts), ARRAY_SIZE(cs42l73_mono_mix_texts),
cs42l73_mono_mix_texts, cs42l73_mono_mix_texts,
cs42l73_mono_mix_values); cs42l73_mono_mix_values);
......
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