ASoC: Tegra: Enable ahub clock during dumping DAM REGs
Lei Fan [Mon, 22 Jul 2013 09:18:08 +0000 (17:18 +0800)]
The Ahub clock should be enabled during dumping DAM REGs as like as
dumping I2S REGs, otherwise the system will be blocked if there is no
playback, capture or voice calling.

Bug 1300176

change-Id: I062ad70842094ef6cc28164d84b4205ea0107bf6
Signed-off-by: Lei Fan <leif@nvidia.com>
Reviewed-on: http://git-master/r/251874
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>

sound/soc/tegra/tegra30_dam.c

index 424fa9c..4dfcd11 100644 (file)
@@ -3,7 +3,7 @@
  *
  * Author: Nikesh Oswal <noswal@nvidia.com>
  * Copyright (C) 2011 - NVIDIA, Inc.
- * Copyright (C) 2012, NVIDIA CORPORATION. All rights reserved.
+ * Copyright (C) 2012-2013, NVIDIA CORPORATION. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
@@ -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;
 }