ASoC: msm: Do not allow commands during gapless transition.

During gapless playback if flush is sent to the driver before EOS
acknowledgement from DSP, the playback is switched to stream one.
On EOS ack the stream one is closed resulting in no audio. The fix
is to not allow pause/resume/flush commands during transition from
one clip to other during gapless playback. Playback should move to
the second stream if the playback enters transition period.

Change-Id: I1be30956cce677e153ef5b8a362de303fec7620a

Conflicts:
	sound/soc/msm/qdsp6v2/msm-compress-q6-v2.c

Signed-off-by: Panwar Vivek <vpanwa@codeaurora.org>
msm: vidc: Disable clock gating for 8x26

There are stability issue observed on 8x26 with
inter-frame clock gating enabled so disable
interframe clock gating on 8x26.

Change-Id: I0e2b89a0ce36ed4d5f15903ffe68b7c7275719c9
Signed-off-by: Vinay Kalia <vkalia@codeaurora.org>
msm: kgsl: Force the ME off before reading the microcode.

On A3XX reading the microcode while the CP is running is dangerous
beyond words.  By setting the offset address for the read, we are
essentially changing the instruction pointer for the ME while it
is running causing opcode errors, gpu faults and/or system errors.

We do not want to stop the CP at the beginning of the snapshot
process beacuse doing so changes the RBBM status and the state of
the CP registers which may damage the debug effort.  But by the
time we get to the microcode read we no longer care about the state
of the registers so we can freely halt the ME just before starting
the read.

Change-Id: I66a6b46d9d269da5a6898f177ee1e4e8b68ebc01
CRs-fixed: 585449
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Panwar Vivek <vpanwa@codeaurora.org>
msm: kgsl: Ensure signals do not cause waits to end early.

Move to using uninterruptible (which will bail if any signal is received)
when waiting on events.  A signal was causing the wait to finish
prematurely, freeing memory while the GPU was still using it.  This caused
quite a few page faults and the device to become unstable.

Change-Id: Ied4dfc40649892ab37924cbec87a517b7bf5ef74
Signed-off-by: Carter Cooper <ccooper@codeaurora.org>
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Panwar Vivek <vpanwa@codeaurora.org>
msm: kgsl: Panic if global timestamp wait fails in context detach.

If we timeout while waiting for the last issued global timestamp for
a detaching context to expire (10 seconds!) then we are on a fast
train to crashville.  BUG_ON() so we can stand a chance of debugging
this very rare issue.

Change-Id: I3bd4cffe05127b07ede06a29b1701b65b8923706
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Panwar Vivek <vpanwa@codeaurora.org>
Revert "ASoC: msm: Do not allow commands during gapless transition."

This reverts commit e5c02e2c1888bc19605352c6341291ee7d3e90fb.
Revert "ASoC: msm: Disable gapless offload playback by default"

This reverts commit 37905dd7155af91f5a0a4f37883cb5a6909e9add.
Revert "ASoC: msm: Enable initial/trailing silence removal"

This reverts commit d5e038a6dad101354f5a6574a9ed13f9a1f11c1d.
Revert "ASoC: msm: Add support to enable audio post processing in DSP"

This reverts commit 30a9a1f83afa437e2e1cba63055d5a29147a2b69.

Conflicts:
	sound/soc/msm/qdsp6v2/Makefile

Change-Id: I66609b8dfa2efed897ded0b5ebc4d56211cfd7b0
driver: staging: prima: updated 3.2.3.172 (2c02103)

99884b7 wlan: Fix the race condition in RX Low resource recovery mechanism
1f5b60d wlan: Added supoort to age out probe requests.

Change-Id: I8cfb49b153ffad163b82308edec6bb1e1c113465