ASoC: tegra: setup DAP3<->DAC3 connection by default
authorLucas Stach <dev@lynxeye.de>
Wed, 19 Dec 2012 23:17:32 +0000 (00:17 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 24 Dec 2012 16:01:08 +0000 (16:01 +0000)
This connection is used by the AC97 controller.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Acked-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/tegra/tegra20_das.c

index 6543184..e723929 100644 (file)
@@ -191,6 +191,19 @@ static int tegra20_das_probe(struct platform_device *pdev)
                goto err;
        }
 
+       ret = tegra20_das_connect_dap_to_dac(TEGRA20_DAS_DAP_ID_3,
+                                            TEGRA20_DAS_DAP_SEL_DAC3);
+       if (ret) {
+               dev_err(&pdev->dev, "Can't set up DAS DAP connection\n");
+               goto err;
+       }
+       ret = tegra20_das_connect_dac_to_dap(TEGRA20_DAS_DAC_ID_3,
+                                            TEGRA20_DAS_DAC_SEL_DAP3);
+       if (ret) {
+               dev_err(&pdev->dev, "Can't set up DAS DAC connection\n");
+               goto err;
+       }
+
        platform_set_drvdata(pdev, das);
 
        return 0;