Explorar el Código

asoc: lpass-cdc: Fix digital volume range

Remove platform_max setting in WSA/WSA2 drivers
to correct the volume range for digital volume.

Change-Id: Ia87c9fbeacc7bbb37b02f707b5c624a4091251d9
Signed-off-by: Sam Rainey <[email protected]>
Sam Rainey hace 2 años
padre
commit
6b5e8148d4

+ 1 - 1
asoc/codecs/lpass-cdc/lpass-cdc-wsa-macro.c

@@ -212,7 +212,7 @@ static int lpass_cdc_wsa_macro_enable_vi_decimator(struct snd_soc_component *com
 	.put = lpass_cdc_wsa_macro_set_digital_volume, \
 	.private_value = (unsigned long)&(struct soc_mixer_control) \
 	{.reg = xreg, .rreg = xreg,  \
-	.min = xmin, .max = xmax, .platform_max = xmax, \
+	.min = xmin, .max = xmax, \
 	.sign_bit = 7,} }
 
 struct lpass_cdc_wsa_macro_swr_ctrl_platform_data {

+ 1 - 1
asoc/codecs/lpass-cdc/lpass-cdc-wsa2-macro.c

@@ -212,7 +212,7 @@ static int lpass_cdc_wsa2_macro_enable_vi_decimator(struct snd_soc_component *co
 	.put = lpass_cdc_wsa2_macro_set_digital_volume, \
 	.private_value = (unsigned long)&(struct soc_mixer_control) \
 	{.reg = xreg, .rreg = xreg,  \
-	.min = xmin, .max = xmax, .platform_max = xmax, \
+	.min = xmin, .max = xmax, \
 	.sign_bit = 7,} }
 
 struct lpass_cdc_wsa2_macro_swr_ctrl_platform_data {