aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/cs42l52.c
diff options
context:
space:
mode:
authorBrian Austin <brian.austin@cirrus.com>2014-03-18 15:01:47 -0400
committerMark Brown <broonie@linaro.org>2014-03-18 15:44:40 -0400
commitd31a33dd7792c7d6c11fda226a3b9e4fb7f86f95 (patch)
tree4e4a3f91c6b50aeb35527448cec9be05c6859507 /sound/soc/codecs/cs42l52.c
parent38dbfb59d1175ef458d006556061adeaa8751b72 (diff)
ASoC: cs42l52: Fix mask bits for SOC_VALUE_ENUM_SINGLE
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> Cc: stable@vger.kernel.org
Diffstat (limited to 'sound/soc/codecs/cs42l52.c')
-rw-r--r--sound/soc/codecs/cs42l52.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/soc/codecs/cs42l52.c b/sound/soc/codecs/cs42l52.c
index 0bac6d5a4ac8..1102ced9b20e 100644
--- a/sound/soc/codecs/cs42l52.c
+++ b/sound/soc/codecs/cs42l52.c
@@ -347,7 +347,7 @@ static const char * const right_swap_text[] = {
347static const unsigned int swap_values[] = { 0, 1, 3 }; 347static const unsigned int swap_values[] = { 0, 1, 3 };
348 348
349static const struct soc_enum adca_swap_enum = 349static const struct soc_enum adca_swap_enum =
350 SOC_VALUE_ENUM_SINGLE(CS42L52_ADC_PCM_MIXER, 2, 1, 350 SOC_VALUE_ENUM_SINGLE(CS42L52_ADC_PCM_MIXER, 2, 3,
351 ARRAY_SIZE(left_swap_text), 351 ARRAY_SIZE(left_swap_text),
352 left_swap_text, 352 left_swap_text,
353 swap_values); 353 swap_values);
@@ -356,7 +356,7 @@ static const struct snd_kcontrol_new adca_mixer =
356 SOC_DAPM_ENUM("Route", adca_swap_enum); 356 SOC_DAPM_ENUM("Route", adca_swap_enum);
357 357
358static const struct soc_enum pcma_swap_enum = 358static const struct soc_enum pcma_swap_enum =
359 SOC_VALUE_ENUM_SINGLE(CS42L52_ADC_PCM_MIXER, 6, 1, 359 SOC_VALUE_ENUM_SINGLE(CS42L52_ADC_PCM_MIXER, 6, 3,
360 ARRAY_SIZE(left_swap_text), 360 ARRAY_SIZE(left_swap_text),
361 left_swap_text, 361 left_swap_text,
362 swap_values); 362 swap_values);
@@ -365,7 +365,7 @@ static const struct snd_kcontrol_new pcma_mixer =
365 SOC_DAPM_ENUM("Route", pcma_swap_enum); 365 SOC_DAPM_ENUM("Route", pcma_swap_enum);
366 366
367static const struct soc_enum adcb_swap_enum = 367static const struct soc_enum adcb_swap_enum =
368 SOC_VALUE_ENUM_SINGLE(CS42L52_ADC_PCM_MIXER, 0, 1, 368 SOC_VALUE_ENUM_SINGLE(CS42L52_ADC_PCM_MIXER, 0, 3,
369 ARRAY_SIZE(right_swap_text), 369 ARRAY_SIZE(right_swap_text),
370 right_swap_text, 370 right_swap_text,
371 swap_values); 371 swap_values);
@@ -374,7 +374,7 @@ static const struct snd_kcontrol_new adcb_mixer =
374 SOC_DAPM_ENUM("Route", adcb_swap_enum); 374 SOC_DAPM_ENUM("Route", adcb_swap_enum);
375 375
376static const struct soc_enum pcmb_swap_enum = 376static const struct soc_enum pcmb_swap_enum =
377 SOC_VALUE_ENUM_SINGLE(CS42L52_ADC_PCM_MIXER, 4, 1, 377 SOC_VALUE_ENUM_SINGLE(CS42L52_ADC_PCM_MIXER, 4, 3,
378 ARRAY_SIZE(right_swap_text), 378 ARRAY_SIZE(right_swap_text),
379 right_swap_text, 379 right_swap_text,
380 swap_values); 380 swap_values);