Revert "[Feature][T106_eSDK]update from T106-V2.01.01.02P56U06.AP.15.11_CAP.15.11.01 to T106-V2.01.01.02P56U06.AP.16.08_CAP.16.08.01 -- code"

This reverts commit 39d99118f249054d01992819702e0612dfdfe3b9.

Reason for revert:revert 16.08_patch

Change-Id: Ib9848be6d113db9be3378524981a30d0c3a0c1a5
diff --git a/upstream/linux-5.10/sound/soc/codecs/es8311.c b/upstream/linux-5.10/sound/soc/codecs/es8311.c
index 34410ce..fef445f 100755
--- a/upstream/linux-5.10/sound/soc/codecs/es8311.c
+++ b/upstream/linux-5.10/sound/soc/codecs/es8311.c
@@ -766,38 +766,35 @@
 		/* set iface */

 		snd_soc_component_write(component, ES8311_SDPOUT_REG0A, iface);

 	}

-/* yu.dong@20240816[ZXW-277]Disable soft ramp, optimize playback 44.1k noise issue start */
-#if defined(CONFIG_USE_TOP_TDM)
-    snd_soc_component_write(component, ES8311_CLK_MANAGER_REG02, 0x1a);
+/* yu.dong@20240508[ZXW-277]Modified Platform CODEC ES8311 Compatible with I2S and TDM Modes start */
+#ifdef CONFIG_USE_TOP_TDM
 #else
-    snd_soc_component_write(component, ES8311_CLK_MANAGER_REG02, 0x98);
-#endif
+	snd_soc_component_write(component, ES8311_CLK_MANAGER_REG02, 0x98);
 	snd_soc_component_write(component, ES8311_CLK_MANAGER_REG03, 0x1b);
 	snd_soc_component_write(component, ES8311_CLK_MANAGER_REG04, 0x1b);
-
+	/*
 	if(rate == 8000){
-#if defined(CONFIG_USE_TOP_TDM)
-        snd_soc_component_write(component, ES8311_CLK_MANAGER_REG05, 0x00);
-#else
-        snd_soc_component_write(component, ES8311_CLK_MANAGER_REG05, 0xbb);
-#endif
-		pr_info("%s rate:%d\n",__FUNCTION__,rate);
+	snd_soc_component_write(component, ES8311_CLK_MANAGER_REG05, 0xbb);
+		  pr_info("%s rate:%d\n",__FUNCTION__,rate);
 
-	}
-
+		}
 	if(rate == 16000){
-        snd_soc_component_write(component, ES8311_CLK_MANAGER_REG05, 0x55);
-        pr_info("%s rate:%d\n",__FUNCTION__,rate);
-	}
+	snd_soc_component_write(component, ES8311_CLK_MANAGER_REG05, 0x55);
+			  pr_info("%s rate:%d\n",__FUNCTION__,rate);
 
+		}
+	*/
 	if(rate == 44100){
-        snd_soc_component_write(component, ES8311_CLK_MANAGER_REG02, 0x00);
-        snd_soc_component_write(component, ES8311_CLK_MANAGER_REG03, 0x10);
-        snd_soc_component_write(component, ES8311_CLK_MANAGER_REG04, 0x20);
-        snd_soc_component_write(component, ES8311_CLK_MANAGER_REG05, 0x00);
-        pr_info("%s rate:%d\n",__FUNCTION__,rate);
-	}
-/* yu.dong@20240816[ZXW-277]Disable soft ramp, optimize playback 44.1k noise issue end */
+
+	snd_soc_component_write(component, ES8311_CLK_MANAGER_REG02, 0x90);
+	snd_soc_component_write(component, ES8311_CLK_MANAGER_REG03, 0x1d);
+	snd_soc_component_write(component, ES8311_CLK_MANAGER_REG04, 0x1d);
+	snd_soc_component_write(component, ES8311_CLK_MANAGER_REG05, 0x00);
+			  pr_info("%s rate:%d\n",__FUNCTION__,rate);
+
+		}
+#endif
+/* yu.dong@20240508[ZXW-277]Modified Platform CODEC ES8311 Compatible with I2S and TDM Modes end */
 	snd_soc_component_write(component, ES8311_CLK_MANAGER_REG06, 0x18);
 	snd_soc_component_write(component, ES8311_CLK_MANAGER_REG07, 0x06);
 
@@ -896,7 +893,7 @@
 		snd_soc_component_write(component, ES8311_ADC_REG15, 0x40);

 		snd_soc_component_write(component, ES8311_ADC_REG1B, 0x0A);

 		snd_soc_component_write(component, ES8311_ADC_REG1C, 0x6A);

-		snd_soc_component_write(component, ES8311_DAC_REG37, 0x08); //0 – disable soft ramp
+		snd_soc_component_write(component, ES8311_DAC_REG37, 0x48);

 /* yu.dong@20240718[ZXW-277]Optimizing Recording in CODEC 8311 TDM Mode start*/
 #if defined(CONFIG_USE_TOP_TDM)
         snd_soc_component_write(component, ES8311_CLK_MANAGER_REG01, 0x9f);