diff options
author | Brian Austin <brian.austin@cirrus.com> | 2014-03-18 14:56:21 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-03-18 15:40:51 -0400 |
commit | 1555b652970e541fa1cb80c61ffc696bbfb92bb7 (patch) | |
tree | b4dc0cd78e618e38dd608d62423f38768267d7ee /sound/soc/codecs/cs42l73.c | |
parent | 38dbfb59d1175ef458d006556061adeaa8751b72 (diff) |
ASoC: cs42l73: Fix mask bits for SOC_VALUE_ENUM_SINGLE
The mask bits values were wrong for the SOC_VALUE_ENUM_SINGLE for the mono mix controls.
Reported-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Brian Austin <brian.austin@cirrus.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Cc: stable@vger.kernel.org
Diffstat (limited to 'sound/soc/codecs/cs42l73.c')
-rw-r--r-- | sound/soc/codecs/cs42l73.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/soc/codecs/cs42l73.c b/sound/soc/codecs/cs42l73.c index 549d5d6a3fef..7b95f7cbc515 100644 --- a/sound/soc/codecs/cs42l73.c +++ b/sound/soc/codecs/cs42l73.c | |||
@@ -319,7 +319,7 @@ static const char * const cs42l73_mono_mix_texts[] = { | |||
319 | static const unsigned int cs42l73_mono_mix_values[] = { 0, 1, 2 }; | 319 | static const unsigned int cs42l73_mono_mix_values[] = { 0, 1, 2 }; |
320 | 320 | ||
321 | static const struct soc_enum spk_asp_enum = | 321 | static const struct soc_enum spk_asp_enum = |
322 | SOC_VALUE_ENUM_SINGLE(CS42L73_MMIXCTL, 6, 1, | 322 | SOC_VALUE_ENUM_SINGLE(CS42L73_MMIXCTL, 6, 3, |
323 | ARRAY_SIZE(cs42l73_mono_mix_texts), | 323 | ARRAY_SIZE(cs42l73_mono_mix_texts), |
324 | cs42l73_mono_mix_texts, | 324 | cs42l73_mono_mix_texts, |
325 | cs42l73_mono_mix_values); | 325 | cs42l73_mono_mix_values); |
@@ -337,7 +337,7 @@ static const struct snd_kcontrol_new spk_xsp_mixer = | |||
337 | SOC_DAPM_ENUM("Route", spk_xsp_enum); | 337 | SOC_DAPM_ENUM("Route", spk_xsp_enum); |
338 | 338 | ||
339 | static const struct soc_enum esl_asp_enum = | 339 | static const struct soc_enum esl_asp_enum = |
340 | SOC_VALUE_ENUM_SINGLE(CS42L73_MMIXCTL, 2, 5, | 340 | SOC_VALUE_ENUM_SINGLE(CS42L73_MMIXCTL, 2, 3, |
341 | ARRAY_SIZE(cs42l73_mono_mix_texts), | 341 | ARRAY_SIZE(cs42l73_mono_mix_texts), |
342 | cs42l73_mono_mix_texts, | 342 | cs42l73_mono_mix_texts, |
343 | cs42l73_mono_mix_values); | 343 | cs42l73_mono_mix_values); |
@@ -346,7 +346,7 @@ static const struct snd_kcontrol_new esl_asp_mixer = | |||
346 | SOC_DAPM_ENUM("Route", esl_asp_enum); | 346 | SOC_DAPM_ENUM("Route", esl_asp_enum); |
347 | 347 | ||
348 | static const struct soc_enum esl_xsp_enum = | 348 | static const struct soc_enum esl_xsp_enum = |
349 | SOC_VALUE_ENUM_SINGLE(CS42L73_MMIXCTL, 0, 7, | 349 | SOC_VALUE_ENUM_SINGLE(CS42L73_MMIXCTL, 0, 3, |
350 | ARRAY_SIZE(cs42l73_mono_mix_texts), | 350 | ARRAY_SIZE(cs42l73_mono_mix_texts), |
351 | cs42l73_mono_mix_texts, | 351 | cs42l73_mono_mix_texts, |
352 | cs42l73_mono_mix_values); | 352 | cs42l73_mono_mix_values); |