mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
ASoC: tegra: avoid enabling aud_mclk during init
Enabling the aud_mclk clock during initialization of drivers
was done for T30 chip due to some external dependencies, now
it is not required for latest version of chips and also due
to this aud_mclk is kept always ON. Add check to avoid enabling
aud_mclk clock other than T30
Bug 4373898
Change-Id: If341b1b73051c5572c5551bf6d4659fab7a116d2
Signed-off-by: Mohan Kumar <mkumard@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3015891
(cherry picked from commit 7ffd0c9cfa)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3019203
Reviewed-by: Amulya Yarlagadda <ayarlagadda@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
Amulya Yarlagadda
parent
4e63d195c6
commit
4212fbd97f
@@ -434,11 +434,13 @@ int tegra_asoc_utils_init(struct tegra_asoc_utils_data *data,
|
|||||||
* and suspend-resume functionality on Tegra30, although audio mclk is
|
* and suspend-resume functionality on Tegra30, although audio mclk is
|
||||||
* only needed for audio.
|
* only needed for audio.
|
||||||
*/
|
*/
|
||||||
|
if (data->soc == TEGRA_ASOC_UTILS_SOC_TEGRA30) {
|
||||||
ret = clk_prepare_enable(data->clk_cdev1);
|
ret = clk_prepare_enable(data->clk_cdev1);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
dev_err(data->dev, "Can't enable cdev1: %d\n", ret);
|
dev_err(data->dev, "Can't enable cdev1: %d\n", ret);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user