mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 14:19:09 -04:00
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:
parent
257abe3e99
commit
24be60db0c
1 changed files with 4 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue