msm: display: command mode panel release fence

For command mode panel, release fence should be signaled after the buffer is
sent to the panel.  For performance consideration, allow one more commit to be
queued.  Keep the second kick off as short as enough.

Change-Id: I19af075ebf480d3e81b46b1cd2ef21a2893f143e
Signed-off-by: Ken Zhang <kenz@codeaurora.org>
Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
Signed-off-by: Iliyan Malchev <malchev@google.com>
msm: mdp: Change msmfb kworker to kthread

This worker can be a longer running task depending on the number
of frames queued, hence change it to a thread.

Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
Change-Id: Iebf7e95d0486ac43aa6a12d70442936600c0249a
msm: mdp: Update sync pt. behaviour

Add a retire fence and clean up the existing release fence
implementation

Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
Change-Id: Iecf7e95d0786ac43aa6a12d70442936600c0249a
msm: kgsl: Use the kmalloc/vmalloc trick for the sharedmem page array

It was previously assumed that most GPU memory allocations would be
small enough to allow us to fit the array of page pointers into one
or two pages allocated via kmalloc.  Recent reports have proven
those assumptions to be wrong - allocations on the order of 32MB will
end up trying to get 8 pages from kmalloc and 8 contiguous pages
on a busy system are a rare beast indeed.

So use the usual kmalloc/vmalloc trick instead - use kmalloc for the
page array when we can and vmalloc if we can't.

CRs-fixed: 513469
Change-Id: Ic0dedbad0a5b14abe6a8bd73342b3e68faa8c8b7
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
ASoC: msm: Reduce min buffer size for low latency

The current low latency driver has 512 bytes as
the min buffer size threshold. With this reducing
the playback time to lower values is not possible.
Setting it to 128 bytes gives us more room
to try out lower buffer sizes from the user space

Signed-off-by: Alexy Joseph <alexyj@codeaurora.org>
Signed-off-by: Mekala Natarajan <mekalan@codeaurora.org>
ASoC: msm: Change QOS value for low latency path

There were variations in the time taken to
return from each write. This was due
to the delay in switching in and out of
power collapse. To manage this set QOS
value to 1ms so that the core has enough
time to wake up from power collapse

Signed-off-by: Alexy Joseph <alexyj@codeaurora.org>
Signed-off-by: Mekala Natarajan <mekalan@codeaurora.org>
Revert "ASoC: msm: Decrease the playback period size of PCM driver"

This reverts commit b0580099ac7d5e735fb42946612a499bf196cda1.

Change-Id: I487797334cf75978daa3c536ff92de8a54b1f7fb
Signed-off-by: Ajay Dudani <adudani@codeaurora.org>
ASoC: msm: Flexible period size for pcm playback

PCM driver was configured for fixed buffer
size on the playback path. With this, varying
the buffer sizes on the playback path was not
possible. To fix this, support for flexible
period sizes is added by setting different
values for min and max buffer sizes

Change-Id: I7f69db4940f67e5e3a795101af1b1682afbdb530
Signed-off-by: Alexy Joseph <alexyj@codeaurora.org>
Signed-off-by: Mekala Natarajan <mekalan@codeaurora.org>
Prima 3.2.3.158

Change-Id: If5cecbb2f8d8f87dcbae39b85cc2e08298ed8ca2
apexq: update defconfig

Change-Id: Ie635bc439c4df942635a011771097abdf00421b0
Apexq: fix charger current reporting error bq24157.

Somebody at samsung didn't read the documentation.
When the current limit was set for 950, it read out
as 900. When the current limit was set for 500, it
read out as 100. This charger does not permit any
fast charge current limit to be set for under 550 mA.

Change-Id: I98d5a302d17bfcb5a942f5a66752f34dcfff40fc
initial ExpressATT (SGH-I437) bring up

Change-Id: I803aef279e018646c438bb4c0f53c37df296febd

defconfig: update to full auto-generated config

- fix some wifi and battery related stuffs

Change-Id: Ifbd0cbbf2937dbd8b415441b6b78e3d4b165182a

board-express-battery: some build fixes

Change-Id: I456b5821764c840955451bbaabac50577b001e2a

mipi_samsung_oled: fix-up some panel defines

Change-Id: I1c2393e59de88e2f1b9f12830dbd46b0bedff963

defconfig: more updates for correct drivers

Change-Id: I507d476b69d19b169d42879838b550c401b05582

cypress-touchkey: include drivers from ExpressATT source drop

Change-Id: I495cb48556ddd539f14f4d6ec8f9a34df9bea411

board-express: fix build when using CONFIG_SAMSUNG_JACK_GNDLDET

Change-Id: I4a2ab16b9a2f886ab4f77953a824ebcfb30289e1

drivers: misc: fix compile of accelerometer driver

Change-Id: I1fad4c773c6fff122b94f83d30a56b3fe5c6942e

express: additional defconfig updates

Change-Id: I96b599c42fbfb075fe6bb48313662fb53475381b

board-express: pull in lots of changes from m2* devices

It boots now :D

Change-Id: I7e9f1bda02e15a91afaf46aa05f0afa7da5bb102

expressatt: include and compile mx7224s touchscreen driver

Change-Id: I515fb5c8f74bb9a68aabc0cec93d980138ca8e26

board-express: enable cypress_rev_check(), fixes touchkey init

Change-Id: I308fee0f3e2c544cb4a1b26c6ba2b792fe27d8d7

board-express: add missing code for kexec and ram console

Change-Id: If9f5b56ce9200b4efea007f05369109ac22188e9

board-8960-regulator: fixup MACH_EXPRESS defines and remove dupe code

Change-Id: I01e75d8aa9fe2427d2e8261c754c6dfe4aa88476

expressatt: enable CONFIG_MSM_PIL_MODEM

Change-Id: I4e5fcc7e422aa58035721a9870940e5acf6c3729

board-8960-pmic: ifdef for expressatt compatibility

Change-Id: I82b1f08f9b81b2c45d8a1cd5d0c457e7b5abfc37

board-8960-regulator: fix another MACH_EXPRESS ifdef

Change-Id: Ida0d41238934a6ecec9583d62c31a8f97a636b1b

board-express: update reserved memory allocation definitions

Change-Id: I8aa1b48f44afbcd7df6a24ccb246c9606582b81b

express: additional config updates

- remove unnecessary stuff, add gpio debugging, and fixes for video
  playback

Change-Id: I33548691cce7b37a2beff5cdf41c3a0cbfe6e627

board-express: general cleanup

Change-Id: I4126d0ccc358316fbc8758a5eed8ac4e6886ee6f

expressatt: remove unnecessary changes to sensor driver

Change-Id: I0456bd1fd08dfa53d371f3c27674d11024a34c3d

yas: fix accelerometer and magnetic sensors on expressatt

Change-Id: I848a7eeb6f169563a888d683dc2c9a28cadab953

expressatt: use our own board-pmic.c

Change-Id: Id76d044bbb01a6b1996ee7e6a12680b4c26700ce

msm_iommu: fix ifdefs for expressatt

Change-Id: Ifc2ef8343e0b4991a79503a1d6d0d59b3e2fea3e

expressatt: additional defconfig updates

Change-Id: I57cdb594832bc7dd806610ca1e458973d3fdb83b

expressatt: fix build for 4.3

expressatt: update defconfig to inherit from m2selinux defconfig

msm: remove unnecessary changes

expressatt: update defconfig

Change-Id: I803aef279e018646c438bb4c0f53c37df296febd
msm: usbaudio: Fix memory allocation for USB audio module init

Fix memory allocation issue in snd_usb_audio_init()
use sizeof(struct) insead of sizeof(pointer)

Change-Id: I270bbd7111e97dd4e0e92378f61d5025e16f5fca
Signed-off-by: Alex Fradkin <afradkin@codeaurora.org>
ASoC: usb: move the switch setting to more appropriate location

There is a delay between creation of sound card and creating of
corresponding steam. Currently we set the switch at the time of
creation of card. And later streams get created, so its more
optimal if we set the switch only after creating the stream.

Change-Id: Ic9f29d7a8dbcd32cde0097289ce6e1404a837372
Signed-off-by: Asish Bhattacharya <asishb@codeaurora.org>
Merge "initial ExpressATT (SGH-I437) bring up" into cm-10.2
board-expressatt: fix some usb/otg bugs

Change-Id: Id6292f2e369aabcf8c59909327f742dc5ea2b83e
Only enable vibrator sysfs for HAPTIC_PWM

Change-Id: Iddeb83bb57fa66641b964781ebe42172f35fde30
Merge branch 'cm-10.2' of github.com:CyanogenMod/android_kernel_samsung_d2 into cm-10.2