diff options
author | Brian Austin <brian.austin@cirrus.com> | 2014-03-18 15:01:47 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-05-06 10:55:26 -0400 |
commit | 616bdd72f704aec7612dfc8da5e41a894a03b62d (patch) | |
tree | a33eb66fd3f0cd1fce01346bf2807fec15fb784f /sound | |
parent | c5ac6ad514fcec926a204051d8a66d7a78a8a737 (diff) |
ASoC: cs42l52: Fix mask bits for SOC_VALUE_ENUM_SINGLE
commit d31a33dd7792c7d6c11fda226a3b9e4fb7f86f95 upstream.
The mask bits values were wrong for the SOC_VALUE_ENUM_SINGLE for the PCM/ADC Swap 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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/cs42l52.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/soc/codecs/cs42l52.c b/sound/soc/codecs/cs42l52.c index ee25f325d65c..b99af6362de6 100644 --- a/sound/soc/codecs/cs42l52.c +++ b/sound/soc/codecs/cs42l52.c | |||
@@ -350,7 +350,7 @@ static const char * const right_swap_text[] = { | |||
350 | static const unsigned int swap_values[] = { 0, 1, 3 }; | 350 | static const unsigned int swap_values[] = { 0, 1, 3 }; |
351 | 351 | ||
352 | static const struct soc_enum adca_swap_enum = | 352 | static const struct soc_enum adca_swap_enum = |
353 | SOC_VALUE_ENUM_SINGLE(CS42L52_ADC_PCM_MIXER, 2, 1, | 353 | SOC_VALUE_ENUM_SINGLE(CS42L52_ADC_PCM_MIXER, 2, 3, |
354 | ARRAY_SIZE(left_swap_text), | 354 | ARRAY_SIZE(left_swap_text), |
355 | left_swap_text, | 355 | left_swap_text, |
356 | swap_values); | 356 | swap_values); |
@@ -359,7 +359,7 @@ static const struct snd_kcontrol_new adca_mixer = | |||
359 | SOC_DAPM_ENUM("Route", adca_swap_enum); | 359 | SOC_DAPM_ENUM("Route", adca_swap_enum); |
360 | 360 | ||
361 | static const struct soc_enum pcma_swap_enum = | 361 | static const struct soc_enum pcma_swap_enum = |
362 | SOC_VALUE_ENUM_SINGLE(CS42L52_ADC_PCM_MIXER, 6, 1, | 362 | SOC_VALUE_ENUM_SINGLE(CS42L52_ADC_PCM_MIXER, 6, 3, |
363 | ARRAY_SIZE(left_swap_text), | 363 | ARRAY_SIZE(left_swap_text), |
364 | left_swap_text, | 364 | left_swap_text, |
365 | swap_values); | 365 | swap_values); |
@@ -368,7 +368,7 @@ static const struct snd_kcontrol_new pcma_mixer = | |||
368 | SOC_DAPM_ENUM("Route", pcma_swap_enum); | 368 | SOC_DAPM_ENUM("Route", pcma_swap_enum); |
369 | 369 | ||
370 | static const struct soc_enum adcb_swap_enum = | 370 | static const struct soc_enum adcb_swap_enum = |
371 | SOC_VALUE_ENUM_SINGLE(CS42L52_ADC_PCM_MIXER, 0, 1, | 371 | SOC_VALUE_ENUM_SINGLE(CS42L52_ADC_PCM_MIXER, 0, 3, |
372 | ARRAY_SIZE(right_swap_text), | 372 | ARRAY_SIZE(right_swap_text), |
373 | right_swap_text, | 373 | right_swap_text, |
374 | swap_values); | 374 | swap_values); |
@@ -377,7 +377,7 @@ static const struct snd_kcontrol_new adcb_mixer = | |||
377 | SOC_DAPM_ENUM("Route", adcb_swap_enum); | 377 | SOC_DAPM_ENUM("Route", adcb_swap_enum); |
378 | 378 | ||
379 | static const struct soc_enum pcmb_swap_enum = | 379 | static const struct soc_enum pcmb_swap_enum = |
380 | SOC_VALUE_ENUM_SINGLE(CS42L52_ADC_PCM_MIXER, 4, 1, | 380 | SOC_VALUE_ENUM_SINGLE(CS42L52_ADC_PCM_MIXER, 4, 3, |
381 | ARRAY_SIZE(right_swap_text), | 381 | ARRAY_SIZE(right_swap_text), |
382 | right_swap_text, | 382 | right_swap_text, |
383 | swap_values); | 383 | swap_values); |