Pārlūkot izejas kodu

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 gadu atpakaļ
vecāks
revīzija
6f212f3573
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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: