瀏覽代碼

ASoC: wcd937x: Add alias for in2p clamp register

Add alias for in2p clamp register to check in2p
clamp state in insertion irq and ignore the interrupt
if the clamp is already set.

Change-Id: Ibd4ff2cef8690894a01072e74ce130f824656f5d
Signed-off-by: Vatsal Bucha <[email protected]>
Vatsal Bucha 6 年之前
父節點
當前提交
9bdadace52
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      asoc/codecs/wcd937x/wcd937x-mbhc.c

+ 2 - 0
asoc/codecs/wcd937x/wcd937x-mbhc.c

@@ -79,6 +79,8 @@ static struct wcd_mbhc_register
 			  WCD937X_MBHC_NEW_CTL_2, 0x03, 0, 0),
 			  WCD937X_MBHC_NEW_CTL_2, 0x03, 0, 0),
 	WCD_MBHC_REGISTER("WCD_MBHC_HS_COMP_RESULT",
 	WCD_MBHC_REGISTER("WCD_MBHC_HS_COMP_RESULT",
 			  WCD937X_ANA_MBHC_RESULT_3, 0x08, 3, 0),
 			  WCD937X_ANA_MBHC_RESULT_3, 0x08, 3, 0),
+	WCD_MBHC_REGISTER("WCD_MBHC_IN2P_CLAMP_STATE",
+			  WCD937X_ANA_MBHC_RESULT_3, 0x10, 4, 0),
 	WCD_MBHC_REGISTER("WCD_MBHC_MIC_SCHMT_RESULT",
 	WCD_MBHC_REGISTER("WCD_MBHC_MIC_SCHMT_RESULT",
 			  WCD937X_ANA_MBHC_RESULT_3, 0x20, 5, 0),
 			  WCD937X_ANA_MBHC_RESULT_3, 0x20, 5, 0),
 	WCD_MBHC_REGISTER("WCD_MBHC_HPHL_SCHMT_RESULT",
 	WCD_MBHC_REGISTER("WCD_MBHC_HPHL_SCHMT_RESULT",