ASoC: rt5616: add the mclk for the codec driver
authorCaesar Wang <wxt@rock-chips.com>
Thu, 28 Jan 2016 08:43:37 +0000 (16:43 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 28 Jan 2016 21:54:19 +0000 (22:54 +0100)
commit76d3204eaa9364a662f0fe0f075dfe61e6bd14fe
tree619b83d05a6841ad6ffbb5c09bd069021c3f2ff9
parent99081589c5ad590e9828ae9febc384612f241164
ASoC: rt5616: add the mclk for the codec driver

This patch adds the code to enable the clock to the CODEC driver
if it needs the clock enabled.

In some case, We need to claim the clock which is driving the codec
so that when we enable clock gating, we continue to clock the codec
when needed.

if mclk provided, to enable and disable the clock source.

Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5616.c