OSDN Git Service

ASoC: sdm660: fix clock refcount for MI2S shutdown
authorSoumya Managoli <smanag@codeaurora.org>
Wed, 7 Mar 2018 11:28:18 +0000 (16:58 +0530)
committerGerrit - the friendly Code Review server <code-review@localhost>
Fri, 16 Mar 2018 11:58:47 +0000 (04:58 -0700)
commit44454d128abc26b3507619f59a6bdcb8dd197c8c
tree06e6be2bfce933770047ef6f8dec2e57a9872d60
parent56fe93b3ca621436240ed166cee57fdf3461f797
ASoC: sdm660: fix clock refcount for MI2S shutdown

For MI2S shutdown, if clock disable fails,
do not increment clock reference. Otherwise,
next time when startup is called, clock enable will not
be called again, so use case will not work.

CRs-Fixed: 2200021
Change-Id: Ic1b6f238e55a58ca1993049468cf13f13d80b9f4
Signed-off-by: Soumya Managoli <smanag@codeaurora.org>
sound/soc/msm/sdm660-common.c