]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: rt5670: Keep sysclk on if JD func is used
authorBard Liao <bardliao@realtek.com>
Mon, 15 Dec 2014 07:42:34 +0000 (15:42 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 22 Dec 2014 18:44:14 +0000 (18:44 +0000)
commitc0a79958d0faed8037e801599be6f1feab260933
tree2ba7cb72330c6be77f901db510b27a7d393d7d01
parent07c267ce18ae15cce28446873793f7f5decf809d
ASoC: rt5670: Keep sysclk on if JD func is used

System clock is necessary for rt5670 JD function. We assume system
clock source will be set in machine driver. So there are two things
left we should do in codec driver.
1. Set sysclk to codec internal clock in probe since machine driver
   may not do that before JD function is registered.
2. Power up PLL once sysclk source is switched to PLL.

Signed-off-by: Bard Liao <bardliao@realtek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5670.c