Browse Source

asoc: codecs: lpass-cdc: reset the decimator sampling rate to default

While disabling the Decimator, reset the sampling rate to default value.

Change-Id: If07aeb69ddff459d0fdf8dfd4ccb7b3d8ed97743
Signed-off-by: Vangala, Amarnath <[email protected]>
Vangala, Amarnath 1 year ago
parent
commit
c2e7e60fde

+ 2 - 0
asoc/codecs/lpass-cdc/lpass-cdc-tx-macro.c

@@ -1072,6 +1072,8 @@ static int lpass_cdc_tx_macro_enable_dec(struct snd_soc_dapm_widget *w,
 			dec_cfg_reg, 0x06, 0x00);
 		snd_soc_component_update_bits(component, tx_vol_ctl_reg,
 						0x10, 0x00);
+		snd_soc_component_update_bits(component, tx_fs_reg,
+						0x0F, 0x04);
 		if (tx_priv->bcs_enable) {
 			snd_soc_component_update_bits(component, dec_cfg_reg,
 					0x01, 0x00);

+ 2 - 0
asoc/codecs/lpass-cdc/lpass-cdc-va-macro.c

@@ -1392,6 +1392,8 @@ static int lpass_cdc_va_macro_enable_dec(struct snd_soc_dapm_widget *w,
 					0x40, 0x00);
 		snd_soc_component_update_bits(component, tx_vol_ctl_reg,
 					0x10, 0x00);
+		snd_soc_component_update_bits(component, tx_fs_reg,
+					0x0F, 0x04);
 		break;
 	}
 	return 0;