]> Pileus Git - ~andy/linux/commit
ASoC: core: giving WARN when device starting from non-off bias with idle_bias_off
authorChuansheng Liu <chuansheng.liu@intel.com>
Fri, 21 Dec 2012 10:17:12 +0000 (18:17 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 24 Dec 2012 15:35:34 +0000 (15:35 +0000)
commitff541f4b2a7546ffa8edf123f4b3b49bb24574e2
tree07d1f14b59e51119b3caf9fc1da4e815b9b32982
parenta49f0d1ea3ec94fc7cf33a7c36a16343b74bd565
ASoC: core: giving WARN when device starting from non-off bias with idle_bias_off

Just found some cases that some codec drivers set the bias to _STANDBY and
set idle_bias_off to 1 during probing.
It will cause unpaired runtime_get_sync/put() issue. Also as Mark suggested,
there is no reason to start from _STANDBY bias with idle_bias_off == 1.

So here giving one warning when detected (dapm.idle_bias_off == 1) and
(dapm.bias_level != SND_SOC_BIAS_OFF) just after driver->probe().

Signed-off-by: liu chuansheng <chuansheng.liu@intel.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/soc-core.c