Przeglądaj źródła

asoc: update the gnd mic swap for hsj connection

update the gnd mic swap for hsj connection in machine driver.

Change-Id: I673a46bf4491140774c45fd4eacd12c0ee4b6bac
Signed-off-by: Prasad Kumpatla <[email protected]>
Prasad Kumpatla 1 rok temu
rodzic
commit
e15c354e0b
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      asoc/pineapple.c

+ 2 - 1
asoc/pineapple.c

@@ -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,