Browse Source

ASoC: wcd938x: clear digital CDC analog CLK bit 0x08

Update the bit 0x08 of WCD938X_DIGITAL_CDC_ANA_CLK_CTL
to 0 during DAPM post PMD.

Change-Id: Iea7d3878e9c56f8e219240007b8dbe30683d3161
Signed-off-by: Xiaoyu Ye <[email protected]>
Xiaoyu Ye 4 years ago
parent
commit
0cdc710d1d
1 changed files with 4 additions and 1 deletions
  1. 4 1
      asoc/codecs/wcd938x/wcd938x.c

+ 4 - 1
asoc/codecs/wcd938x/wcd938x.c

@@ -1883,9 +1883,12 @@ static int wcd938x_enable_req(struct snd_soc_dapm_widget *w,
 		default:
 			break;
 		}
-		if (wcd938x->adc_count == 0)
+		if (wcd938x->adc_count == 0) {
 			snd_soc_component_update_bits(component,
 					WCD938X_DIGITAL_CDC_ANA_CLK_CTL, 0x10, 0x00);
+			snd_soc_component_update_bits(component,
+					WCD938X_DIGITAL_CDC_ANA_CLK_CTL, 0x08, 0x00);
+		}
 		break;
 	};
 	return ret;