Merge "asoc: update the gnd mic swap for hsj connection"

This commit is contained in:
QCTECMDR Service 2024-06-20 08:31:32 -07:00 committed by Gerrit - the friendly Code Review server
commit 0d143ad36a

View File

@ -2472,7 +2472,8 @@ static int msm_asoc_machine_probe(struct platform_device *pdev)
dev_info(&pdev->dev, "%s: Sound card %s registered\n",
__func__, card->name);
if (wcd_mbhc_cfg.enable_usbc_analog)
if (wcd_mbhc_cfg.enable_usbc_analog ||
wcd_mbhc_cfg.usbss_hsj_connect_enable)
wcd_mbhc_cfg.swap_gnd_mic = msm_usbc_swap_gnd_mic;
pdata->fsa_handle = of_parse_phandle(pdev->dev.of_node,