Browse Source

Merge "asoc: msm: assign mic gnd swap function"

Linux Build Service Account 7 years ago
parent
commit
2df0d1fedc
1 changed files with 4 additions and 0 deletions
  1. 4 0
      asoc/sdm855.c

+ 4 - 0
asoc/sdm855.c

@@ -7304,6 +7304,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)