]> 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)
commita5126fd1da6ae7b54c88a6337c661a564fcdd49f
tree3111f0391fb30f9c08e87d30bcd7a4539c7df134
parent043a1896926c9041bea4274188ed02bcd945c73e
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