OSDN Git Service

ASoC: tegra: Add audio mclk parent configuration
authorSowjanya Komatineni <skomatineni@nvidia.com>
Tue, 14 Jan 2020 07:24:23 +0000 (23:24 -0800)
committerThierry Reding <treding@nvidia.com>
Tue, 21 Apr 2020 14:53:14 +0000 (16:53 +0200)
commit1e4e0bf136aa4b4aa59c1e6af19844bd6d807794
tree5155474c71ee2c5bff29d3f2d943ad4d15b190bc
parentfacb0f4bb35c05fbda41bcd1ef1ddeb41ced4e9f
ASoC: tegra: Add audio mclk parent configuration

Tegra PMC clock clk_out_1 is dedicated for audio mclk from Tegra30
through Tegra210 and currently Tegra clock driver does the initial
parent configuration for audio mclk and keeps it enabled by default.

With the move of PMC clocks from clock driver into PMC driver, audio
clocks parent configuration can be specified through the device tree
using assigned-clock-parents property and audio mclk control should be
taken care of by the audio driver.

This patch has implementation for parent configuration when default
parent configuration through assigned-clock-parents property is not
specified in the device tree.

Tested-by: Dmitry Osipenko <digetx@gmail.com>
Reviewed-by: Dmitry Osipenko <digetx@gmail.com>
Reviewed-by: Sameer Pujar <spujar@nvidia.com>
Signed-off-by: Sowjanya Komatineni <skomatineni@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
sound/soc/tegra/tegra_asoc_utils.c