ASoC: msm: Fix the race condition between the data packet writes to DSP.

Due to the distributed writes from the CMD_RUN response and the
playback_copy, there are race conditions which cause the data buffers
to be missed.
Also there can unwanted writes which can cause the target crashes.
Further there cannot be locks as the CMD_RUN response is in the
interrupt context.

Merge the data writes as the CMD_WRITE is independent on the
stream running status.

Change-Id: Ia3dc5d46745f6bf0bcbc3ec05418f188ebe5fad6
Signed-off-by: Aviral Gupta <aviralg@codeaurora.org>
msm_fb:hdmi:select native mode from EDID

Instead of selecting best mode, give preference to
native mode in the EDID.

Change-Id: I518905701c8c7699e7f30c5af8689874c47ab47d
Signed-off-by: Sandeep Panda <spanda@codeaurora.org>
Merge "ASoC: msm: Fix the race condition between the data packet writes to DSP."
Merge "msm_fb:hdmi:select native mode from EDID"
msm: audio: qdsp6v2: Add size safety check to ACDB driver

Check that the size sent by userspace is not larger
then the internal amount allowed. This protects
against overflowing the stack due to an invalid size.

Change-Id: I8230fdb00a7b57d398929e8ab0eb6587476f3db1
CRs-fixed: 470222
Signed-off-by: Ben Romberger <bromberg@codeaurora.org>
Merge "msm: audio: qdsp6v2: Add size safety check to ACDB driver"
ASoC: msm: Fixed klockwork issue

Change-Id: Ic0a4faef8b4b483b4598fd2933afd9b9faba652b
Signed-off-by: Vivek Veenam <vveenam@codeaurora.org>
Merge "ASoC: msm: Fixed klockwork issue"