msm: audio: qdsp6v2: Fix command sequence issue in Non-tunnel player

The CMD_CLOSE and CMD_UNMAP needs to be sequentially sent to dsp.
Avoid sending CMD_UNMAP if CMD_CLOSE is not sent.

CRs-Fixed: 485051
Change-Id: Ic6dd9775b0aea218874161b8a44dc0286608616c
Signed-off-by: Asish Bhattacharya <asishb@codeaurora.org>
ASoC: msm: qdsp6: Add error check for memory commands

- Write failures observed during audio playback.
- Error checks are missing for memory map and memory unmap cmds,
  we are proceeding to write data even if memory map is failed. Due
  to this pcm_out_write failures are observed.
- Add proper error handling for memory map and unmap cmds.

CRs-Fixed: 485051
Change-Id: Iedd369fcd655b02a213277e973059612c040fe34
Signed-off-by: Deepa Madiregama <dmadireg@codeaurora.org>
msm: kgsl: Protect the mem_entry list during deletion

Use the spinlock to prevent corruption of the mem_entry list during
deletion. Otherwise the mem_entry list may be modified by another
thread at the same time resulting in memory corruption.

Change-Id: I5728a8b925753d5fda82413615e5ebaf0366dfd8
CRs-fixed: 489224
Signed-off-by: Lynus Vaz <lvaz@codeaurora.org>
u_ether: Handle memory allocation failure case on tx path

With multipacket feature enabled, if the memory allocation for
tx request buffer fails, accessing the req->buf leads to null pointer
dereference crash.

Hence, handle memory alloction failure case and return -ENOMEM.

CRs-Fixed: 490085
Change-Id: Ic5faac8ea7eb056755b03007c48ff085f10afa20
Signed-off-by: Rajkumar Raghupathy <raghup@codeaurora.org>
Merge "msm: audio: qdsp6v2: Fix command sequence issue in Non-tunnel player"
Merge "ASoC: msm: qdsp6: Add error check for memory commands"
Merge "msm: kgsl: Protect the mem_entry list during deletion"
Merge "u_ether: Handle memory allocation failure case on tx path"