Prechádzať zdrojové kódy

asoc: pineapple: return true when GND/MIC Swap switch happens

Return true when GND/MIC swap switch happens for EU plug
types.

Change-Id: Ie6d1d78a0bb179bc25aa80e46735db5a768812ba
Signed-off-by: Phani Kumar Uppalapati <[email protected]>
Phani Kumar Uppalapati 2 rokov pred
rodič
commit
741f2dbb23
1 zmenil súbory, kde vykonal 2 pridanie a 0 odobranie
  1. 2 0
      asoc/pineapple.c

+ 2 - 0
asoc/pineapple.c

@@ -138,6 +138,8 @@ static bool msm_usbc_swap_gnd_mic(struct snd_soc_component *component, bool acti
 #if IS_ENABLED(CONFIG_QCOM_WCD_USBSS_I2C)
 	ret = wcd_usbss_switch_update(WCD_USBSS_GND_MIC_SWAP_AATC,
 								WCD_USBSS_CABLE_CONNECT);
+	if (ret == 0)
+		return true;
 #endif
 	return ret;
 }