summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorScott Peterson <speterson@nvidia.com>2013-05-17 10:49:03 -0700
committerRiham Haidar <rhaidar@nvidia.com>2013-05-21 16:31:38 -0700
commit9e16a9fde778f54aa5dc258da5d6f271e5e77f19 (patch)
tree0f209136a4a007f30bbfd8fd780ed854f8d2631b /sound
parent6147573414026a4ff978885f38e4842de55fb4fe (diff)
ARM: Tegra: Roth: Fix asoc debugfs hang
Fix a hang when using debugfs commands to read the tegra audio device registers. A needed clock was not turned on causing the hardware to hang. Bug 1236039 Change-Id: I1535b87add4d1f142731e7451447a974f90436c2 Signed-off-by: Scott Peterson <speterson@nvidia.com> Reviewed-on: http://git-master/r/229845 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/tegra/tegra30_dam.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/soc/tegra/tegra30_dam.c b/sound/soc/tegra/tegra30_dam.c
index 26b65df95474..573789ea3397 100644
--- a/sound/soc/tegra/tegra30_dam.c
+++ b/sound/soc/tegra/tegra30_dam.c
@@ -415,6 +415,7 @@ static int tegra30_dam_show(struct seq_file *s, void *unused)
struct tegra30_dam_context *dam = s->private;
int i;
+ tegra30_ahub_enable_clocks();
clk_enable(dam->dam_clk);
for (i = 0; i < ARRAY_SIZE(regs); i++) {
@@ -423,6 +424,7 @@ static int tegra30_dam_show(struct seq_file *s, void *unused)
}
clk_disable(dam->dam_clk);
+ tegra30_ahub_disable_clocks();
return 0;
}
@@ -773,7 +775,7 @@ void tegra30_dam_write_coeff_ram(int ifc, int fsin, int fsout)
TEGRA30_DAM_AUDIORAMCTL_DAM_CTRL_0);
for (i = 0; i < 64; i++) {
- val = coefRam[i];
+ val = coefRam[i];
tegra30_dam_writel(dams_cont_info[ifc], val,
TEGRA30_DAM_AUDIORAMCTL_DAM_DATA_0);
}