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)
commita6028cc60aad18d5d7c25d99b5cb8c24399387c3
tree4e5fa4da3d8e557885748f203a7a81bb731ac6cc
parent4a8191aa9e057ea38279ef9e809265ba3966be40
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