ASoc: msm: Improve error checking in code

Improve code by adding more error checking,
fixing case statments and removing unnecessary
logic.

Change-Id: Ic4d07f5dd9a7079248d8320fab95ee6f4d150b88
CRs-fixed: 344634
Signed-off-by: Ben Romberger <bromberg@codeaurora.org>

Conflicts:
	sound/soc/msm/qdsp6/q6adm.c

Conflicts:
	arch/arm/mach-msm/qdsp6v2/amrwb_in.c
	arch/arm/mach-msm/qdsp6v2/audio_utils_aio.c
	arch/arm/mach-msm/qdsp6v2/rtac.c
	sound/soc/msm/msm-dai-q6.c
	sound/soc/msm/qdsp6/q6adm.c