Prechádzať zdrojové kódy

asoc: msm: assign mic gnd swap function

Assign mic gnd swap function if usbc analog is
enabled. This is irrespective of whether us_euro
gpio is defined.

Change-Id: I6cf5beadca18682a7488db2286986883dbbcdf3d
Signed-off-by: Karthikeyan Mani <[email protected]>
Karthikeyan Mani 7 rokov pred
rodič
commit
24be60db0c
1 zmenil súbory, kde vykonal 4 pridanie a 0 odobranie
  1. 4 0
      asoc/sdm855.c

+ 4 - 0
asoc/sdm855.c

@@ -7302,6 +7302,10 @@ static int msm_asoc_machine_probe(struct platform_device *pdev)
 			"qcom,us-euro-gpios");
 		wcd_mbhc_cfg.swap_gnd_mic = msm_swap_gnd_mic;
 	}
+
+	if (wcd_mbhc_cfg.enable_usbc_analog)
+		wcd_mbhc_cfg.swap_gnd_mic = msm_usbc_swap_gnd_mic;
+
 	pdata->fsa_handle = of_parse_phandle(pdev->dev.of_node,
 					     "fsa4480-i2c-handle", 0);
 	if (!pdata->fsa_handle)