浏览代码

asoc: wcd937x: disable TX CH2 after power down

TX channel2 is not disabled after power down. It leads to
noise at the beginning of next recording on CH2.
Disable it after power down.

Change-Id: If12a84df52b9c8cd55de2bdcb91f950b054898b8
Signed-off-by: Xiaojun Sang <[email protected]>
Xiaojun Sang 6 年之前
父节点
当前提交
80eb5ddfdd
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      asoc/codecs/wcd937x/wcd937x.c

+ 1 - 0
asoc/codecs/wcd937x/wcd937x.c

@@ -1086,6 +1086,7 @@ static int wcd937x_enable_req(struct snd_soc_dapm_widget *w,
 		break;
 	case SND_SOC_DAPM_POST_PMD:
 		snd_soc_update_bits(codec, WCD937X_ANA_TX_CH1, 0x80, 0x00);
+		snd_soc_update_bits(codec, WCD937X_ANA_TX_CH2, 0x80, 0x00);
 		snd_soc_update_bits(codec, WCD937X_DIGITAL_CDC_DIG_CLK_CTL,
 				    0x10, 0x00);
 		snd_soc_update_bits(codec, WCD937X_DIGITAL_CDC_ANA_CLK_CTL,