sound: soc: fix codec refcount issue
authorMohan Kumar <mkumard@nvidia.com>
Thu, 28 Nov 2013 07:48:59 +0000 (12:48 +0530)
committerBharat Nihalani <bnihalani@nvidia.com>
Mon, 23 Dec 2013 18:45:46 +0000 (10:45 -0800)
commit44e7ca00933348084d2aecc8e40decfc72f703ad
treecf4abf289139479cad26f761931530786ee38552
parent2df6487fd8996695ce0a22644961bdc89e9e2c9d
sound: soc: fix codec refcount issue

warn_on message is shown for rt5639 dev when usage count for it goes
negative, so if any case the refcount count goes negative we will see
the warn_on message on particular dev, this change will increment the
usage count when the dev changes from SND_SOC_BIAS_OFF to
SND_SOC_BIAS_STANDBY or during LP0 were the resume will set the bias
to SND_SOC_BIAS_STANDBY, so need to increment refcount based on it.

Bug 1410313

Change-Id: Ie2326cffe406d1a3d61905ecba1437445cd350ad
Signed-off-by: Mohan Kumar <mkumard@nvidia.com>
Reviewed-on: http://git-master/r/336540
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
sound/soc/soc-dapm.c