Patchwork [3/7] ASoC: tegra: setup DAP3<->DAC3 connection by default

login
register
mail settings
Submitter Lucas Stach
Date Dec. 19, 2012, 11:17 p.m.
Message ID <1355959056-6009-3-git-send-email-dev@lynxeye.de>
Download mbox | patch
Permalink /patch/207543/
State Not Applicable, archived
Headers show

Comments

Lucas Stach - Dec. 19, 2012, 11:17 p.m.
This connection is used by the AC97 controller.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
---
 sound/soc/tegra/tegra20_das.c | 13 +++++++++++++
 1 Datei geändert, 13 Zeilen hinzugefügt(+)
Stephen Warren - Dec. 20, 2012, 7:20 p.m.
On 12/19/2012 04:17 PM, Lucas Stach wrote:
> This connection is used by the AC97 controller.

Acked-by: Stephen Warren <swarren@nvidia.com>

--
To unsubscribe from this list: send the line "unsubscribe linux-tegra" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Mark Brown - Dec. 24, 2012, 4:01 p.m.
On Thu, Dec 20, 2012 at 12:17:32AM +0100, Lucas Stach wrote:
> This connection is used by the AC97 controller.

Applied, thanks.

Patch

diff --git a/sound/soc/tegra/tegra20_das.c b/sound/soc/tegra/tegra20_das.c
index 6543184..e723929 100644
--- a/sound/soc/tegra/tegra20_das.c
+++ b/sound/soc/tegra/tegra20_das.c
@@ -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;