瀏覽代碼

asoc: disconnect comp_l port when hph widget power down

when we enable compander for headphones, the quality
of hph playback is bad, since we have not disconnect
the right port, correct it.

Change-Id: I63ab0734870027109a7f032c47f8865083374a5b
Signed-off-by: Yuhui Zhao <[email protected]>
Yuhui Zhao 1 年之前
父節點
當前提交
6f212f3573
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      asoc/codecs/wcd9378/wcd9378.c

+ 1 - 1
asoc/codecs/wcd9378/wcd9378.c

@@ -1508,7 +1508,7 @@ static int wcd9378_codec_hphl_dac_event(struct snd_soc_dapm_widget *w,
 		if (wcd9378->comp1_enable) {
 			snd_soc_component_update_bits(component, WCD9378_CDC_COMP_CTL_0,
 				WCD9378_CDC_COMP_CTL_0_HPHL_COMP_EN_MASK, 0x00);
-			wcd9378_rx_connect_port(component, COMP_R, false);
+			wcd9378_rx_connect_port(component, COMP_L, false);
 		}
 		break;
 	default: