tegra:fairfax Avoid EDP effect for Headset
ericz [Tue, 11 Mar 2014 07:39:37 +0000 (15:39 +0800)]
For Fairfax, when EDP disable, headset interface
still need exported.

Change-Id: Ib614c2940f67e18e95dcb2db4479ca841e6deb5d
Signed-off-by: ericz <ericz@nvidia.com>
Reviewed-on: http://git-master/r/379869
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

sound/soc/tegra/tegra_rt5640.c

index 18cb653..9780b91 100644 (file)
@@ -1928,6 +1928,10 @@ static __devinit int tegra_rt5640_driver_probe(struct platform_device *pdev)
        }
 #endif
 
+#ifdef CONFIG_SND_SOC_TI_TPA6130A2
+       tpa6130a2_add_controls(card->rtd[DAI_LINK_HIFI].codec);
+#endif
+
        if (!pdata->edp_support)
                return 0;
 
@@ -1975,9 +1979,6 @@ static __devinit int tegra_rt5640_driver_probe(struct platform_device *pdev)
                        machine->spk_edp_client = NULL;
                }
        }
-#ifdef CONFIG_SND_SOC_TI_TPA6130A2
-       tpa6130a2_add_controls(card->rtd[DAI_LINK_HIFI].codec);
-#endif
        return 0;
 
 err_unregister_card: