summaryrefslogtreecommitdiff
path: root/sound/soc/tegra/tegra30_dam.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/tegra/tegra30_dam.c')
-rw-r--r--sound/soc/tegra/tegra30_dam.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sound/soc/tegra/tegra30_dam.c b/sound/soc/tegra/tegra30_dam.c
index 4ac81266e7cf..d308179110c9 100644
--- a/sound/soc/tegra/tegra30_dam.c
+++ b/sound/soc/tegra/tegra30_dam.c
@@ -529,6 +529,7 @@ static int __devinit tegra30_dam_probe(struct platform_device *pdev)
#ifdef CONFIG_PM
int i;
#endif
+ int clkm_rate;
if ((pdev->id < 0) ||
(pdev->id >= TEGRA30_NR_DAM_IFC)) {
@@ -552,6 +553,11 @@ static int __devinit tegra30_dam_probe(struct platform_device *pdev)
ret = PTR_ERR(dam->dam_clk);
goto err_free;
}
+ clkm_rate = clk_get_rate(clk_get_parent(dam->dam_clk));
+ while (clkm_rate > 12000000)
+ clkm_rate >>= 1;
+
+ clk_set_rate(dam->dam_clk,clkm_rate);
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
if (!res) {