ASoc: msm: Fix the kernel panic issue in dapm

- Widget list in dapm is getting corrupted during concurrent
use cases where dapm_power_widget is accessed from core,
machine driver, codec driver and soc-dsp. This corruption
is resulting in kernel crash in dapm.
- Fix the issue by adding protection in dapm_power_widgets
API.

CRs-fixed: 351250
Change-Id: Ia977770b2c4081353918a40919aafd468bf3c4ed
Signed-off-by: Jayasena Sangaraboina <jsanga@codeaurora.org>
4 files changed