]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: da7219: MCLK should be enabled before DAI clocks
authorAdam Thomson <Adam.Thomson.Opensource@diasemi.com>
Mon, 7 Jan 2019 16:11:46 +0000 (16:11 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 9 Jan 2019 14:37:21 +0000 (14:37 +0000)
commit631846e2890b23c015fd16d179a998a669bfc788
tree4e5fa4da3d8e557885748f203a7a81bb731ac6cc
parentc495a828e7dabb04023d6de840cbd0bf3231ea58
ASoC: da7219: MCLK should be enabled before DAI clocks

For platforms using the Common Clock Framework to control the
codec's DAI clocks, MCLK should be enabled prior to DAI clocks
being turned on. For some platforms the codec is already
provided with an MCLK reference and can therefore control MCLK
itself as it needs to.

To improve functionality MCLK is now added as a parent to the
DAI clocks, if MCLK was provided, so that if they are enabled MCLK
will automatically be enabled as a prerequisite by the CCF.

Signed-off-by: Adam Thomson <Adam.Thomson.Opensource@diasemi.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/da7219.c