aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/tegra/tegra_wm8903.c
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2011-11-22 20:21:13 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-11-23 05:24:10 -0500
commit65713ce8442b42c6f688bd8b0950a49d8f4dcf5f (patch)
tree20d251c473ab523635cf8aa03f8f2ca00b12792e /sound/soc/tegra/tegra_wm8903.c
parentf2296d7bf19a210a462a57bb90b1c9263d18a4ee (diff)
ASoC: Tegra: Move DAS configuration into machine drivers
This removes potentially machine-specific routing knowledge from the I2S driverinto the machine drivers, which is better equipped to know what the appropriate routing configuration is. Signed-off-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/tegra/tegra_wm8903.c')
-rw-r--r--sound/soc/tegra/tegra_wm8903.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/sound/soc/tegra/tegra_wm8903.c b/sound/soc/tegra/tegra_wm8903.c
index a81cf39257bf..9b0ee1510935 100644
--- a/sound/soc/tegra/tegra_wm8903.c
+++ b/sound/soc/tegra/tegra_wm8903.c
@@ -249,6 +249,19 @@ static int tegra_wm8903_init(struct snd_soc_pcm_runtime *rtd)
249 struct tegra_wm8903_platform_data *pdata = machine->pdata; 249 struct tegra_wm8903_platform_data *pdata = machine->pdata;
250 int ret; 250 int ret;
251 251
252 ret = tegra_das_connect_dap_to_dac(TEGRA_DAS_DAP_ID_1,
253 TEGRA_DAS_DAP_SEL_DAC1);
254 if (ret) {
255 dev_err(card->dev, "Can't set up DAS DAP connection\n");
256 return ret;
257 }
258 ret = tegra_das_connect_dac_to_dap(TEGRA_DAS_DAC_ID_1,
259 TEGRA_DAS_DAC_SEL_DAP1);
260 if (ret) {
261 dev_err(card->dev, "Can't set up DAS DAC connection\n");
262 return ret;
263 }
264
252 if (gpio_is_valid(pdata->gpio_spkr_en)) { 265 if (gpio_is_valid(pdata->gpio_spkr_en)) {
253 ret = gpio_request(pdata->gpio_spkr_en, "spkr_en"); 266 ret = gpio_request(pdata->gpio_spkr_en, "spkr_en");
254 if (ret) { 267 if (ret) {