]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: tlv320aic32x4: Kernel OOPS while entering DAPM standby mode
authorb-ak <anur.bhargav@gmail.com>
Mon, 7 Jan 2019 17:00:22 +0000 (22:30 +0530)
committerMark Brown <broonie@kernel.org>
Mon, 7 Jan 2019 17:02:44 +0000 (17:02 +0000)
commit3a7a1ba110c79cda6d9b14a42c13c1a61740440f
tree6a9e995b461ce79499891191e6fd338e2c110d4b
parent0992bac2ad35e5d6202dcad0e366244163c3aad2
ASoC: tlv320aic32x4: Kernel OOPS while entering DAPM standby mode

During the bootup of the kernel, the DAPM bias level is in the OFF
state. As soon as the DAPM framework kicks in it pushes the codec
into STANDBY state.

The probe function doesn't prepare the clock, and STANDBY state
does a clk_disable_unprepare() without checking the previous state.
This leads to an OOPS.

Not transitioning from an OFF state to the STANDBY state fixes the
problem.

Signed-off-by: b-ak <anur.bhargav@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
sound/soc/codecs/tlv320aic32x4.c