ASoC: msm: acquire lock in ioctl

If two ioctls are triggered with different commands,
there is a possibility to access freed confidence level
memory. To resolve this acquire lock in ioctl.
Also release mutex lock properly in error cases.

CRs-Fixed: 1103085
Change-Id: I7d6b2eff21c8297e5f0755a0c141254be32f777d
Signed-off-by: Yeleswarapu Nagaradhesh <nagaradh@codeaurora.org>

FPIIM-821

Change-Id: Id8254a6946ebd7134fa421c5d70af8e407609521
1 file changed