OSDN Git Service

ASoC: wcd-spi: fix clock disable
authorBhalchandra Gajare <gajare@codeaurora.org>
Tue, 27 Sep 2016 05:12:46 +0000 (22:12 -0700)
committerGerrit - the friendly Code Review server <code-review@localhost>
Tue, 4 Oct 2016 19:43:02 +0000 (12:43 -0700)
commitacaf2a7f798cffd9007fada98865449aeb010f63
treee0d0a54000a126c6a2d4b19f1450f823eefd5a02
parentd728aa90314f66b19616df559c67d1f76bbb51bd
ASoC: wcd-spi: fix clock disable

Currently, the clock request is performed during init and the clock
is kept on assuming that there will be code download event followed
by init. This assumption may not always be true and might cause the
clock to be enabled when it is really not needed. Change fixes clock
disable such that clock is disabled right after init and re-enabled
again if code download event is raised.

CRs-fixed: 1071949
Change-Id: Icc415e911653012726e5b81b4fc09199560d5691
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
sound/soc/codecs/wcd-spi.c