ASoC: cs42l52: Fix mask bits for SOC_VALUE_ENUM_SINGLE
Subsystems (3)
PATCH 1/1 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 <[email protected]>
Signed-off-by Brian Austin <[email protected]>
--- sound/soc/codecs/cs42l52.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
sound/soc/codecs/cs42l52.c +4 -4
@@ -352,7 +352,7 @@ static const char * const right_swap_text[] = {static const unsigned int swap_values[] = {0 ,1 ,3 };static const struct soc_enum adca_swap_enum = -SOC_VALUE_ENUM_SINGLE (CS42L52_ADC_PCM_MIXER ,2 ,1 , +SOC_VALUE_ENUM_SINGLE (CS42L52_ADC_PCM_MIXER ,2 ,3 ,ARRAY_SIZE (left_swap_text), left_swap_text, swap_values);
@@ -361,7 +361,7 @@ static const struct snd_kcontrol_new adca_mixer =SOC_DAPM_ENUM ("Route" , adca_swap_enum);static const struct soc_enum pcma_swap_enum = -SOC_VALUE_ENUM_SINGLE (CS42L52_ADC_PCM_MIXER ,6 ,1 , +SOC_VALUE_ENUM_SINGLE (CS42L52_ADC_PCM_MIXER ,6 ,3 ,ARRAY_SIZE (left_swap_text), left_swap_text, swap_values);
@@ -370,7 +370,7 @@ static const struct snd_kcontrol_new pcma_mixer =SOC_DAPM_ENUM ("Route" , pcma_swap_enum);static const struct soc_enum adcb_swap_enum = -SOC_VALUE_ENUM_SINGLE (CS42L52_ADC_PCM_MIXER ,0 ,1 , +SOC_VALUE_ENUM_SINGLE (CS42L52_ADC_PCM_MIXER ,0 ,3 ,ARRAY_SIZE (right_swap_text), right_swap_text, swap_values);
@@ -379,7 +379,7 @@ static const struct snd_kcontrol_new adcb_mixer =SOC_DAPM_ENUM ("Route" , adcb_swap_enum);static const struct soc_enum pcmb_swap_enum = -SOC_VALUE_ENUM_SINGLE (CS42L52_ADC_PCM_MIXER ,4 ,1 , +SOC_VALUE_ENUM_SINGLE (CS42L52_ADC_PCM_MIXER ,4 ,3 ,ARRAY_SIZE (right_swap_text), right_swap_text, swap_values);
Signature · 1 line
1.7.9.5
Quoted 1 line · Brian Austin
The mask bits values were wrong for the
SOC_VALUE_ENUM_SINGLEfor the PCM/ADC Swap controls
Applied, thanks.