msm: Add krait scm driver to configure cpu

Provide sysfs access for user space to query and control krait
processor-internal settings via the secure monitor interface.

Change-Id: Id1c00596e65794267643dc7fa1f3155278e34571
Signed-off-by: Trevor Bourget <tbourget@codeaurora.org>
msm: kgsl: Print the IB causing a pagefault

If a GPU page fault occurs then store the IB information of the
of the fault and print the IB information by queueing a work item.

Change-Id: I4463305727605a65134644d22ef7f51e72740350
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
(cherry picked from commit 3e40f411dc3b67fba17e4ddcd9aff2c90bd6fbbc)
Revert "msm: Add krait scm driver to configure cpu"

This reverts commit 7bb442a30fb117c237ab86457dd4ffa4c8de9547.

Change-Id: Idc350495c57933e15b85cda356f5faaf4d8064df
Signed-off-by: Sudhir Sharma <sudsha@codeaurora.org>
ASoC: wcd9310: make CFILT adjust time as a module parameter

Some of accessories on the headset jack takes longer to settle down
voltage.  Make adjust time to be configurable so those accessories can
be detected correctly.

Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
(cherry picked from commit c1c67a9e220374ab40b3185a0b8670cc8d753967)

Conflicts:

	sound/soc/codecs/wcd9310.c

Change-Id: I9d4aa7348d67066197e35eb9ec3def8997cb4751
Signed-off-by: Sudhir Sharma <sudsha@codeaurora.org>
msm: board 8960 and 8064: Increase ion heap size for audio.

After migration from pmem to ion, we need to
reduce EBI1 memory for audio usecase and make a
corresponding increase the ION heap size.

Change-Id: I98ba83cff86760be078ef1d8a7e7a03b9e71db8d
Signed-off-by: Jay Wang <jaywang@codeaurora.org>
ASoC: msm: Provide linear DSP volume

To give the higher resolution, provide the linear DSP volume gain
instead of percentage through ALSA mixer control

Change-Id: I2274a49d48126da9eecccb725ed604bd2fc2e3a5
CRs-Fixed: 389575
Signed-off-by: Ravi Kumar Alamanda <ralama@codeaurora.org>
Revert "msm: board 8960 and 8064: Increase ion heap size for audio."

This reverts commit 55b2745e6b6baccceab2073fa75066ffd91c8051.

Change-Id: I504fc9771d02086bd1317ec73e5b8cc2909e0866
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
(cherry picked from commit 9fc93298996dddb47f65b358e4b5ff623af6e7be)
Revert "msm: audio: qdsp6v2: Update ACDB driver to use ION"

This reverts commit c710ea7e67cc332bb76037f465cd95c32ebaa096.

Change-Id: I90afd90f97bec8007c1088d90cb8cc6513e54769
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
Revert "msm: audio: qdsp6v2: Replace PMEM with ION in Audio Decoder drivers"

This reverts commit 940a101f5026b1bc54d0dd84ef8763ad300641e2.

Change-Id: I3eaeb6df34d3c249de6b311249249ebc6831fdc1
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
Revert "msm: QDSP5: audio: Migrate to ION"

This reverts commit f63e4178d35df5bbff502002f9263dcc61e03527.

Change-Id: I8b0c0ba03d180dc08f265c8f8e716db408b4b855
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
Revert "msm: qdsp5: Add ION framework support for 7x27A & 8x25 targets"

This reverts commit c934911eb34efd02a3679f503e0602912423b994.

Change-Id: Icb1711ef24c2bade950340eabfe27043713904d6
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
Revert "msm: msm7627a: Support ION on 7627a/8625"

This reverts commit 28f6e481748987ce3727e8585a72411cdc1ee8c8.

Change-Id: I158fa20663270fe9c3984e791d35612165ea2623
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
Bluetooth: Disable sniff when the subrate values doesnt match.

Found there is possibility of sniff subrate collision with some
IOT devices. When this collision happned if the remote device
send subrate values that doesn't match with DUT supported
values exit sniff mode. This will allow DUT to reconfigure
sniff after idle time.

CRs-fixed: 380811
Signed-off-by: Srinivas Krovvidi <skrovvid@codeaurora.org>
(cherry picked from commit a7c3d7e6d905bab198003f16316971ae872eec9f)

Change-Id: Ibe3d02c6a404bbce677c7d980f0ad124e31bca26
Signed-off-by: Ramakrishna Prasad N <crpn@codeaurora.org>
Bluetooth: Block SCO disconnect operation on BT_CLOSED state.

Have maximum blocking time for shutdown operation as DISCONNECT_TIMEOUT.
During this period when SCO connection closes, the userspace will be
updated on the close operation. Existing approach of immidiate return
on shutdown call can cause synchronization issues on SCO state between
kernel and userspace. This happens when disconnect operation takes
more time at kernel space.

CRs-fixed: 365445
Signed-off-by: Srinivas Krovvidi <skrovvid@codeaurora.org>
(cherry picked from commit f799996e309cad545b3a7f84ef6f333a09c8b876)

Change-Id: Ifa74d2568d2ee157a605a405017d4cc0f05d41fc
Signed-off-by: Ramakrishna Prasad N <crpn@codeaurora.org>
msm: qdsp5: Add ION framework support for 7x27A & 8x25 targets

Modified adsp driver to support the ION memory framework
for 7x27A and 8x25 targets

Change-Id: Ie037139a5f30fcb51cdf9aeb2a290ab8be16c0ac
Signed-off-by: Saikumar Kondaparthi <saikumar@codeaurora.org>
Signed-off-by: Arvind Thatikonda <arvindt@codeaurora.org>
Signed-off-by: Atul Raut <araut@codeaurora.org>
msm: audio: ion: Add ION declarations.

Audio drivers to use these common ION declarations.

Change-Id: Ifafce344be3e13740624334658e6bdd640833895
Signed-off-by: Sidipotu Ashok <sashok@codeaurora.org>
msm: msm7627a: Support ION on 7627a/8625

Deprecate PMEM and start using ION for existing converted
drivers

Change-Id: I17960a9c4b5ddda80f2a28e3f3f9fe08b1ae1cc3
Signed-off-by: Atul Raut <araut@codeaurora.org>
msm: QDSP5: audio: Migrate to ION

PMEM is deprecated, switch to ION.

Change-Id: I5da6d11b6cd2d5d6d37694db10ccb7089a47b1c1
Signed-off-by: Sidipotu Ashok <sashok@codeaurora.org>
Signed-off-by: Atul Raut <araut@codeaurora.org>
msm: audio: qdsp6v2: Fix voice RTAC

There was data type mismatch which caused the corruption during
memory copy. It leads to the voice RTAC failure.

CRs-Fixed: 391392
Signed-off-by: Jay Wang <jaywang@codeaurora.org>

Conflicts:

	arch/arm/mach-msm/qdsp6v2/rtac.c

Change-Id: I300bd546aa5354885072c77a2e929285b6585d3f
Signed-off-by: Sudhir Sharma <c_sudsha@quicinc.com>
(cherry picked from commit 94c498ec3380730a511a888104eb3ead12161967)
Bluetooth: Wait for wcnss to be ready after SSR

After subsystem restart (SSR), it takes about 10 sec
for wcnss to get ready to accept commands from the
host. If the BT radio is accessed before that, wcnss
can go into bad state.

CRs-fixed: 360858
Change-Id: I5b5c723802311f14b29311372d9d5435eccf583d
Signed-off-by: Sunny Kapdi <sunnyk@codeaurora.org>
(cherry picked from commit 2a39b80e9cf53fcef57304d88260abac4c03a851)