]> asedeno.scripts.mit.edu Git - linux.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)
commit77e3ea2801c8ca4700e6b17053b625b8a981ac77
tree3111f0391fb30f9c08e87d30bcd7a4539c7df134
parent64e89e5f55484d289c8b326521e5a12291e2283e
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