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 <kmani@codeaurora.org>
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user