msm_serial_hs: bulk update from CodeAurora

CodeAurora tag: AU_LINUX_ANDROID_JB_2.5.04.02.02.040.282

Change-Id: I75d3133f7eb541640dd58279e018c3932253290c
ASoc: msm: Increase default buffersize to 4k for audio playback

- Increase default buffersize to 4k from 2k for audio playback
  when HAL is configured with deep buffer output.

bug-id: 7129131
Signed-off-by: SathishKumar Mani <smani@codeaurora.org>
msm-pcm-q6: Add support for flexible recording period size

- Current implementation supports only fixed buffer size
  of 320 bytes only for audio recording. This results in
  performance overhead for recording at higher sample rate.
- Added support for flexible period size so that user can
  use larger buffers for recording at higher sample rates.

Signed-off-by: SathishKumar Mani<smani@codeaurora.org>
Signed-off-by: Iliyan Malchev <malchev@google.com>

Conflicts:
	sound/soc/msm/msm-pcm-q6.c

Change-Id: I09f2dcdb891ea350280b2101d1182c380ba3b19a
ASoC: msm: Modify default buffer params of compressed driver

There can be a use case where HAL may request for
Smaller period size and corresponding buffer size for
A session, update compressed driver default period size
And buffer size based on the userspace configuration

Signed-off-by: Aviral Gupta <aviralg@codeaurora.org>
(cherry picked from commit d4e62aeb8839cf9accf2356568a14adb8d24152f)
(cherry picked from commit 462a09e10e32afb49ca50bdbfb8c4a4e13cc068a)

Change-Id: Id1aef6c71c5c71b269b6607816f7c3e5c4fd4314
Signed-off-by: Sudhir Sharma <sudsha@codeaurora.org>

Conflicts:
	sound/soc/msm/msm-compr-q6.c
ASoC: msm: reduce period_bytes_min for voice call

- Allow smaller buffer size for voice call to
  comply with MR1 audio HAL

Change-Id: Iaffca753ad07889b08ae4b6154e8d596950a979e
Signed-off-by: Mingming Yin <mingming@codeaurora.org>
ASoC: msm: Modify min and max period bytes and num periods

Modify min and max period bytes and number of periods in
compressed driver so as to be consistent with lpa and to
meet ION memory requirements. This avoids using huge
buffer sizes for tunnel decode.

Change-Id: Ib71da4cebfc097e7aeaf0ca0e65ee847ba7cceb7
Signed-off-by: Phani Kumar Uppalapati <phanik@codeaurora.org>

Conflicts:
	sound/soc/msm/msm-compr-q6.c
ASoC: msm: Decrease the playback period size of PCM driver

To support the deep buffer output, the playback buffer size is
increased to 4k from 2k. Reverting the change as the support for
deep buffer output is no longer valid.

Change-Id: I5034245bde4b55a5816506fbdfeac970a8e7804b
CRs-Fixed: 438177
Signed-off-by: Subhash Chandra Bose Naripeddy <snariped@codeaurora.org>
ASoC: re-enable RCV_AMP gpio_request code, Linux kernel style cleanup

Change-Id: Ib5487b6ba94bfe44aa62a2ec48fbeecebc6756c8
Merge "msm_serial_hs: bulk update from CodeAurora" into cm-10.1
Merge "ASoC: re-enable RCV_AMP gpio_request code, Linux kernel style cleanup" into cm-10.1
ASoC: Squashed commit reverting all changes for RCV AMP usage

Revert "ASoC: re-enable RCV_AMP gpio_request code, Linux kernel style cleanup"

This reverts commit 55c5c930ef3c8ac17110a5626d973d5315ee934f.

Revert "remove extraneous gpio_free() call"

This reverts commit 8649a331b34051c42736b1f67fe3b5c75e436f64.

Revert "Fixing earpiece amplification in call."

This reverts commit 84721e411783f8a18888cac327ca933a30e029be.
msm: m7: free requested RCV_PAMP GPIO

Change-Id: Ib13e443e40e614c62b5f5eed3f5411b12b033b5d
synaptics: fix touchscreen getting stuck with h2w/l2w/s2w

The prevention of touch events being synced when screen is
off with wake irq caused unwanted effects of occasional
touchscreen events not syncing properly when screen was
switched on again (when some touch events were left
without a second event of finger left).

Now instead of not syncing the input events when
wake option is keeping irq wake, we sync the finger
events but with a false coordinate outside the screen.
This way while screen is off (either power button sleep
or in call proximity sensor triggered), it won't send
events to framework in the screen area, fixing both
gettings stuck and unwanted touch events in calls/sleep.

Change-Id: I699f4b0561ebd2b409b8afe61acf820ac9a9989d
defconfig: remove HTC perflock and htc pnp manager

these not needed. HTC perflock sometimes triggered automagically,
maxing the freq to 1.1ghz.

Change-Id: Ic51dc4dc1499abce616b4d1f570a35fea786e3d2