UPSTREAM: ASoC: rt5616: add the mclk for the codec driver
authorJacob Chen <jacob2.chen@rock-chips.com>
Fri, 15 Jul 2016 01:43:39 +0000 (09:43 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Mon, 18 Jul 2016 03:58:41 +0000 (11:58 +0800)
commit5016ece3a180981fab08df54f44cf7509b893c8b
tree5b9e420aedc11bc5d753d31150a951d1447619c1
parentb140453d8543b66127b0d7c4942a8e8ae5324aab
UPSTREAM: 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>
Bug: 27307957
Patchset: fetch the upstream ASoC for rk3036 kylin board.

(cherry picked from git.kernel.org broonie/sound.git for-next
 commit 76d3204eaa9364a662f0fe0f075dfe61e6bd14fe)
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Change-Id: Iaa1b07a1ff729f3b84c1e32cd0fdd0f36d9a8889
Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
sound/soc/codecs/rt5616.c