aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/soc/tegra/tegra_das.c13
-rw-r--r--sound/soc/tegra/tegra_wm8903.c13
-rw-r--r--sound/soc/tegra/trimslice.c23
3 files changed, 13 insertions, 36 deletions
diff --git a/sound/soc/tegra/tegra_das.c b/sound/soc/tegra/tegra_das.c
index 5b82b4e79231..3b3c1ba4d235 100644
--- a/sound/soc/tegra/tegra_das.c
+++ b/sound/soc/tegra/tegra_das.c
@@ -202,6 +202,19 @@ static int __devinit tegra_das_probe(struct platform_device *pdev)
202 goto err; 202 goto err;
203 } 203 }
204 204
205 ret = tegra_das_connect_dap_to_dac(TEGRA_DAS_DAP_ID_1,
206 TEGRA_DAS_DAP_SEL_DAC1);
207 if (ret) {
208 dev_err(&pdev->dev, "Can't set up DAS DAP connection\n");
209 goto err;
210 }
211 ret = tegra_das_connect_dac_to_dap(TEGRA_DAS_DAC_ID_1,
212 TEGRA_DAS_DAC_SEL_DAP1);
213 if (ret) {
214 dev_err(&pdev->dev, "Can't set up DAS DAC connection\n");
215 goto err;
216 }
217
205 tegra_das_debug_add(das); 218 tegra_das_debug_add(das);
206 219
207 platform_set_drvdata(pdev, das); 220 platform_set_drvdata(pdev, das);
diff --git a/sound/soc/tegra/tegra_wm8903.c b/sound/soc/tegra/tegra_wm8903.c
index 2f5b1074a8d9..ba2d23ea6424 100644
--- a/sound/soc/tegra/tegra_wm8903.c
+++ b/sound/soc/tegra/tegra_wm8903.c
@@ -249,19 +249,6 @@ 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
265 if (gpio_is_valid(pdata->gpio_spkr_en)) { 252 if (gpio_is_valid(pdata->gpio_spkr_en)) {
266 ret = gpio_request(pdata->gpio_spkr_en, "spkr_en"); 253 ret = gpio_request(pdata->gpio_spkr_en, "spkr_en");
267 if (ret) { 254 if (ret) {
diff --git a/sound/soc/tegra/trimslice.c b/sound/soc/tegra/trimslice.c
index 043eb7c7eb73..7d95b7697a73 100644
--- a/sound/soc/tegra/trimslice.c
+++ b/sound/soc/tegra/trimslice.c
@@ -115,28 +115,6 @@ static const struct snd_soc_dapm_route trimslice_audio_map[] = {
115 {"RLINEIN", NULL, "Line In"}, 115 {"RLINEIN", NULL, "Line In"},
116}; 116};
117 117
118static int trimslice_asoc_init(struct snd_soc_pcm_runtime *rtd)
119{
120 struct snd_soc_codec *codec = rtd->codec;
121 struct snd_soc_card *card = codec->card;
122 int ret;
123
124 ret = tegra_das_connect_dap_to_dac(TEGRA_DAS_DAP_ID_1,
125 TEGRA_DAS_DAP_SEL_DAC1);
126 if (ret) {
127 dev_err(card->dev, "Can't set up DAS DAP connection\n");
128 return ret;
129 }
130 ret = tegra_das_connect_dac_to_dap(TEGRA_DAS_DAC_ID_1,
131 TEGRA_DAS_DAC_SEL_DAP1);
132 if (ret) {
133 dev_err(card->dev, "Can't set up DAS DAC connection\n");
134 return ret;
135 }
136
137 return 0;
138}
139
140static struct snd_soc_dai_link trimslice_tlv320aic23_dai = { 118static struct snd_soc_dai_link trimslice_tlv320aic23_dai = {
141 .name = "TLV320AIC23", 119 .name = "TLV320AIC23",
142 .stream_name = "AIC23", 120 .stream_name = "AIC23",
@@ -144,7 +122,6 @@ static struct snd_soc_dai_link trimslice_tlv320aic23_dai = {
144 .platform_name = "tegra-pcm-audio", 122 .platform_name = "tegra-pcm-audio",
145 .cpu_dai_name = "tegra-i2s.0", 123 .cpu_dai_name = "tegra-i2s.0",
146 .codec_dai_name = "tlv320aic23-hifi", 124 .codec_dai_name = "tlv320aic23-hifi",
147 .init = trimslice_asoc_init,
148 .ops = &trimslice_asoc_ops, 125 .ops = &trimslice_asoc_ops,
149}; 126};
150 127