arizona: anc: Correct setting of FCx_MIC_MODE_SEL
Subsystems (3)
PATCH 1/1 arizona: anc: Correct setting of FCx_MIC_MODE_SEL
From: Sapthagiri Baratam <[email protected]>
The mask rather than the shift is accidentally passed to the SOC_ENUM_SINGLE macro which results in the wrong bits being set for this control, change to using the shift to correct this.
Signed-off-by Sapthagiri Baratam <[email protected]>
Signed-off-by Charles Keepax <[email protected]>
--- sound/soc/codecs/arizona.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
sound/soc/codecs/arizona.c +2 -2
@@ -710,7 +710,7 @@ const struct soc_enum arizona_anc_input_src[] = { ARRAY_SIZE(arizona_anc_input_src_text), arizona_anc_input_src_text),SOC_ENUM_SINGLE (ARIZONA_FCL_ADC_REFORMATTER_CONTROL , -ARIZONA_FCL_MIC_MODE_SEL , +ARIZONA_FCL_MIC_MODE_SEL_SHIFT ,ARRAY_SIZE (arizona_anc_channel_src_text), arizona_anc_channel_src_text), SOC_ENUM_SINGLE(ARIZONA_ANC_SRC,
@@ -718,7 +718,7 @@ const struct soc_enum arizona_anc_input_src[] = {ARRAY_SIZE (arizona_anc_input_src_text), arizona_anc_input_src_text),SOC_ENUM_SINGLE (ARIZONA_FCR_ADC_REFORMATTER_CONTROL , -ARIZONA_FCR_MIC_MODE_SEL , +ARIZONA_FCR_MIC_MODE_SEL_SHIFT ,ARRAY_SIZE (arizona_anc_channel_src_text ), arizona_anc_channel_src_text), };
Signature · 1 line
2.11.0