]> 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, 2 Mar 2015 16:19:46 +0000 (16:19 +0000)
commitfca1cfaf400dcacae9754d0676764accac2f95a0
tree3111f0391fb30f9c08e87d30bcd7a4539c7df134
parent25080bb136bac33b741089551ce0554096234e7b
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