msm:crypto: Add validation checks for memory cleanup

Add validation checks to handle memory freeing &
prevent NULL pointer access.

Change-Id: I6e82ea56754fb12b467d5ecb642411017c1e18c6
Signed-off-by: Hariprasad Dhalinarasimha <hnamgund@codeaurora.org>
msm_fb: hdmi: proper vic for 576p

Corrected the AVI info data with right VIC for 576p@50 16:9

CRs-Fixed: 457252
Change-Id: I8536c141823e9d8436bdd8df0038d3e203ec0c4b
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
ASoc: msm: Add support for VoLTE

- Add VoLTE_STUB FE for VoLTE stub session
- Add routing controls for VoLTE stub session

Change-Id: If2de711422320425dbb71ffcca88d78e354322bc
Signed-off-by: Helen Zeng <xiaoyunz@codeaurora.org>
msm: sps: Fix BAM ISR race with pipe disconnect

Pipe EOT can occur while SPS pipe disconnect is being done.
The pipe disconnect can free up resources and pointers that
are used by bam_isr() in parallel in SMP environment and can
cause null pointer dereference.

Fix this by calling synchronize_irq() before freeing up resources
and by spin_lock to avoid race conditions.

Change-Id: I51eb88e1d68123d13d4aaf654e729236a4a3f144
Signed-off-by: Dipen Parmar <dipenp@codeaurora.org>
msm: pm: Add support for retention on each core

Allow each core on 8974 to enter retention and retain
the state of the CPU. On 8960 as hardware restriction does
not permit all cores to enter retention at the same time,
allow only core 0 to enter retention when all other cores
are offline to maintain backward compatibility.

CRs-fixed: 437281
Change-Id: I6690e901afc9fa3a27010c264fa3acc9a0722c1a
Signed-off-by: Priyanka Mathur <pmathur@codeaurora.org>
Signed-off-by: Venkat Devarasetty <vdevaras@codeaurora.org>
msm: pm: Update spm retention sequence to support per core retention

On krait revision < 3, power driver is not using full spm sequence and
calling into trustzone as a part of executing krait retention.
Also krait retention is not supported on secondary cores.

krait pass3 is upgraded to use full spm sequence, hence add support
for per core retention and avoid calling into trustzone
while executing retention.

CRs-fixed: 437281
Change-Id: I6a2b3d7c4d0fd5b9a340957b16b940b7a09bbd91
Signed-off-by: Anji Jonnala <anjir@codeaurora.org>
Signed-off-by: Venkat Devarasetty <vdevaras@codeaurora.org>
ASoC: msm: Fix for improper volume ramp up in tunnel playback

A disturbance is heard when resuming the playback after
switching from headset to speaker and back to headset with the
music paused for more than 3 sec. This is due to, data getting
rendered with the speaker volume where it had to played with headset
volume. Fix is to set the '0' as the initial volume.

Change-Id: Ie4726a7898620fb912279270e24fa15a45a437f9
CRs-fixed: 453704
Signed-off-by: Amal Paul <amal@codeaurora.org>
msm: sglte2: change the soft reset gpio for the qsc modem

It was found that pmic gpio 2 has a conflict so the
soft reset gpio is now changed to pmic gpio 23.

Change-Id: I550769278de4112cdf7d3b67e9173a2d7a19f105
Signed-off-by: Joel King <joelking@codeaurora.org>
ASoC: msm: Change SGLTE to Voice2 for reusability of code

-Use Voice2/VOICE2 instead of sglte/SGLTE in function and variable names
-Voice2 call can represent SGLTE call or DSDA call

Change-Id: I0a5ce71cb1042bfbc08159f01aeab26a030b86dc
Signed-off-by: Helen Zeng <xiaoyunz@codeaurora.org>
ASoC: apq8064 : Fix for voice over USB in Fusion target

- currently APQ assumes 8k and mono as USB parameters for
  voice over USB but MDM configures with 48k and stereo
  as USB parameters which results a mismatch between APQ
  and MDM configurations
- Set the APQ parameters in sync with MDM

Change-Id: Ibbdf6bb620b4fd2c25ba6879477488c85c5defc9
Signed-off-by: VidyaKumar Athota <vathota@codeaurora.org>
CRs-Fixed: 415079
ASoC: msm: Add support for Voice2

- Add FE VOICE2_STUB for Voice2 session
- Add routing controls for Voice2 session

Change-Id: I8175b3cbbff33a56b83cc953451506f123abd231
Signed-off-by: Helen Zeng <xiaoyunz@codeaurora.org>
power: pm8921-charger: Add error handling logic

Handle return errors at multiple locations and report them
appropriately. While at it, fix functions which can report
valid negative values.

CRs-Fixed: 389633
Change-Id: Ib3b8121d721d17bc9086decd94ee10239a2ec5f4
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
Merge "msm: sps: Fix BAM ISR race with pipe disconnect"
Merge "msm: pm: Add support for retention on each core"
Merge "msm: pm: Update spm retention sequence to support per core retention"
Merge "msm_fb: hdmi: proper vic for 576p"
Merge "ASoC: msm: Fix for improper volume ramp up in tunnel playback"
msm: kgsl: Delete the context event while the context is still valid

Make sure that the context is freed only after the event is deleted
from the list to avoid accessing invalid list pointers. This makes
sure that the context memory is not accessed after being freed.

Change-Id: I9196219f1472396c0063dbeaa5351f66e6e5648f
Signed-off-by: Lynus Vaz <lvaz@codeaurora.org>
Signed-off-by: Uma Maheshwari Bhiram <ubhira@codeaurora.org>
Merge "ASoC: apq8064 : Fix for voice over USB in Fusion target"
Merge "power: pm8921-charger: Add error handling logic"