summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorLei Fan <leif@nvidia.com>2014-01-04 20:53:55 +0800
committerMartin Chi <mchi@nvidia.com>2014-01-12 21:18:30 -0800
commite2f1676b53b198bfb568443b7fb935c905100ab3 (patch)
tree7249b01ecafd1f06b7e6ee66f76257e3fe3fdd1d /sound
parentace670ba3e3d87e236e60ff2b98b4be4eab28527 (diff)
ASoC:Tegra: Fix DAM num to a specific DAP
DAM should fix to a specific DAP, otherwise voice call cannot be ended normally. Change-Id: I60553e903a2f425bc9e9e1c245f77dfd5d3058b4 Signed-off-by: Lei Fan <leif@nvidia.com> Reviewed-on: http://git-master/r/351993 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Vijay Mali <vmali@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Martin Chi <mchi@nvidia.com>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/tegra/tegra30_i2s.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/sound/soc/tegra/tegra30_i2s.c b/sound/soc/tegra/tegra30_i2s.c
index 2f7470526744..b7ec64f31390 100644
--- a/sound/soc/tegra/tegra30_i2s.c
+++ b/sound/soc/tegra/tegra30_i2s.c
@@ -1004,7 +1004,7 @@ int tegra30_i2s_resume(struct snd_soc_dai *cpu_dai)
tegra30_i2s_disable_clocks(i2s);
- if (i2s->dam_ch_refcount)
+ if (i2s->dam_ch_refcount > 1)
ret = tegra30_dam_resume(i2s->dam_ifc);
return ret;
@@ -1787,6 +1787,22 @@ static __devinit int tegra30_i2s_platform_probe(struct platform_device *pdev)
i2s = &i2scont[pdev->id];
dev_set_drvdata(&pdev->dev, i2s);
i2s->id = pdev->id;
+ switch (i2s->id) {
+ case 0:
+ i2s->dam_ifc = 1;
+ break;
+ case 1:
+ i2s->dam_ifc = 0;
+ break;
+ case 2:
+ break;
+ case 3:
+ i2s->dam_ifc = 2;
+ break;
+ default:
+ break;
+ }
+ i2s->dam_ch_refcount++;
i2s->clk_i2s = clk_get(&pdev->dev, "i2s");
if (IS_ERR(i2s->clk_i2s)) {