msm: audio: qdsp6v2: Fix for resetting the copp list.

This gerrit resets the copp list to a 32 bit value.

Signed-off-by: Bharath Ramachandramurthy <bramacha@codeaurora.org>
msm: 8660: audio: Fix check for out of bound exception

Fix upper limit check for out of bound exceptions

Signed-off-by: Vasudeva Rao Thumati <vthuma@codeaurora.org>
Signed-off-by: Deepa Madiregama <dmadireg@codeaurora.org>
msm: audio: qdsp6v2: Block write to dsp till buffers are available.

Signed-off-by: Panneer Arumugam <panneera@codeaurora.org>
msm: audio: qdsp6v2: Add PCM-WB support for VoIP.

CRs-fixed: 297579
Signed-off-by: Neema Shetty <nshetty@codeaurora.org>
audio: qdsp6v3: handle flush and eos in encoder driver

Updated encoder driver to handle the flush and eos.

CRs-fixed: 283541
Signed-off-by: Rajesha Kini <rkini@codeaurora.org>
msm: audio: qdsp6v3: Acquire wakelocks during record.

Acquire wakelocks during recording usecase to prevent apps
proc from freezing.

CRs-fixed: 303049
Signed-off-by: Bharath Ramachandramurthy <bramacha@codeaurora.org>
msm: audio: qdsp6v3: Support VOIP & Widevoice calibration

Adds support for the VOIP network and Widevoice calibration
for all networks.

Signed-off-by: Ben Romberger <bromberg@codeaurora.org>
msm: audio: qdsp6v3: Wait indefinitely for subsystems to be loaded.

Wait indefinitely for lpass or modem to be loaded instead of waiting
for a timeout of 5secs. The reason being downloading of images might
take long time.

CRs-fixed: 302002
Signed-off-by: Bharath Ramachandramurthy <bramacha@codeaurora.org>
msm: audio: qdsp6v3: Close smd ports upon failure to open.

The smd port acqusition is failing as the port is not
populated from modem . But apr driver was not releasing
the apr handle on failure.
This was resulting in failure for subsequent calls.
With this change, the smd ports will be released upon
encountering failure.

CRs-fixed: 309413
Signed-off-by: Bharath Ramachandramurthy <bramacha@codeaurora.org>

Conflicts:

	arch/arm/mach-msm/qdsp6v3/q6voice.c
msm: audio: qdsp6v3: Modify the wait timer for apr registration

As part of subsystem restart, there was a  deadlock where
the kernel acquires a mutex as part of misc device open for
the pcm out driver and the kickstart thread also tries to
acquire the same mutex before restarting the modem
as the apr register was a blocking call.

Instead of waiting indefinitely for lpass or modem to be restarted
the apr register will wait for one second timeout and if the
subsystems are not up, return failure to userspace.
This will release the mutex acquired as part of misc device open
and kickstart thread can reload the modem.

Change-Id: I21a078314ce5fff24bb0cd43fe419dd5a2580ac5
CRs-fixed: 312818
Signed-off-by: Bharath Ramachandramurthy <bramacha@codeaurora.org>
Signed-off-by: Swaminathan Sathappan <Swami@codeaurora.org>
msm: audio: qdsp6v3: Add delay in speaker device profile to reduce pop

Add delay in the power up sequence of speaker stereo device profile
To reduce the pops.

CRs-Fixed: 327943
CRs-Fixed: 329707
Signed-off-by: Santosh Mardi <gsantosh@codeaurora.org>
(cherry picked from commit 83cda7be04d041c6c003e8cf5fa8d7add91548d4)

Change-Id: Ice03506ce1f8d9c87da812c93a94da0ee6d617b2
Signed-off-by: Gopal G Goberu <ggober@codeaurora.org>
msm: audio: qdsp6v3: Fix memory leak and error handling

The error handling of apr_reset_workqueue and apr_reset_worker when
NULL should be two seperate checks and hence should have corresponding
appropriate log msgs.

Also there is no need to allocate memory for apr_reset_worker if
apr_reset_workqueue is NULL.

Signed-off-by: Shiv Maliyappanahalli <smaliyap@codeaurora.org>
Change-Id: I220a23729d0fc6dadce144e476a8b2af727fc6b6
(cherry picked from commit 1abc51555a2b51614682cec1e0c8959d5ed47d8d)
Merge branch 'cm-11.0' of https://github.com/johnnyslt/android_kernel_shooter into cm-11.0