Commit a9005b67 authored by Stephen Warren's avatar Stephen Warren Committed by Mark Brown

ASoC: tegra: set a sensible initial clock rate

Initialize the audio clock tree appropriately for some reasonable rate.
This makes sure the PLLs etc. are actually programmed to something
reasonable when the audio driver is loaded.
Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 17933db2
...@@ -133,8 +133,14 @@ int tegra_asoc_utils_init(struct tegra_asoc_utils_data *data, ...@@ -133,8 +133,14 @@ int tegra_asoc_utils_init(struct tegra_asoc_utils_data *data,
goto err_put_pll_a_out0; goto err_put_pll_a_out0;
} }
ret = tegra_asoc_utils_set_rate(data, 44100, 256 * 44100);
if (ret)
goto err_put_cdev1;
return 0; return 0;
err_put_cdev1:
clk_put(data->clk_cdev1);
err_put_pll_a_out0: err_put_pll_a_out0:
clk_put(data->clk_pll_a_out0); clk_put(data->clk_pll_a_out0);
err_put_pll_a: err_put_pll_a:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment