gpu: Kconfig: clean up HTC Adreno entries

Change-Id: Ibf8c93ead4a860f44e5d634fc96b30a57ff513d6
include: linux: msm_vidc_enc: revert HTC's weird pbuffer definition
various: compilation fixes for gcc 4.6

These changes are required to compile successfully with
gcc version 4.6.

The -Wno-address option is applied to some files to
bypass a warning triggered by an rcu macro. The
warning is fixed cleanly upstream, but that fix is too
risky to backport, so it is better to just silence it
this way.

Change-Id: I787ad2db6e649d29874b7b624c2b28f686236466
Signed-off-by: Steve Muckle <smuckle@codeaurora.org>

Conflicts:
	arch/arm/mach-msm/board-8930.c
	arch/arm/mach-msm/scm.c
various: fix warnings for kernel compile

These changes suppress or fix warnings, in particular
-Wno-cpp, -Wenum-compare, -Wunused-value

Change-Id: I1b2a1264387accffc2b3c1e8ea71a6d716383abe
arm: Allow CPU-supported unaligned accesses

This change reconfigures the CPU to allow CPU-supported aligned
accesses, which are generally faster than software-only fixups,
resulting in fewer alignment exceptions.

Signed-off-by: Brent DeGraaf <bdegraaf@codeaurora.org>
input: touchscreen: atmel_224e: import touchscreen fix from ville kernel

This is a squash of the following commits:

input: touchscreen: atmel_224e: more code cleanup

Check for the negative cases and exit early to make things more
readable, remove redundant checks, indentation, remove some debugging
statements, make code more readable.

input: touchscreen: atmel_224e: recalibrate after last finger release

This mimics how HTC does a recalibration after last finger release to
get around the issue where the touchscreen is terrible and reports a
finger release event to every finger when it should only report one.

input: touchscreen: atmel_224e: formatting

msm: ville: disable unlock_attr for atmel touchscreen

We are not using HTC's framework which makes use of this sysfs file.

Change-Id: I03c3f825fd9f382e49fcd99ea77fc60644f3dbb5
input: touchscreen: synaptics_3200: Remove define for calibration

Fixes multi-touch for jewel, evita in AOSP.

Change-Id: I66b977c47fb8decae608406b03263d52534920f1
msm: acpuclock-8960: allow 192MHz minimum voltage
wcnss: add sysfs entry to support Thermal Mitigation

The Thermal Mitigation function in userspace needs a mechanism by
which it can notify the WCNSS driver that thermal mitigation is
required.  We introduce a sysfs entry via which Thermal Mitigation can
both read the current mitigation level as well as set a new mitigation
level.  Logic to actually act upon a new mitigation level will be
added at a later time.

Change-Id: I1b2b8328e2aa821414de0d345bd32b9bc30bd49a
Signed-off-by: Jeff Johnson <jjohnson@codeaurora.org>
wcnss: add driver API to support Thermal Mitigation

The wcnss driver currently supports a sysfs-based mechanism which
allows the Thermal Mitigation function in userspace to read and write
the current thermal mitigation level.  An API is added to allow other
drivers (specifically the WLAN Driver) to register a notifier to be
invoked when the thermal mitigation level is changed.

CRs-Fixed: 317376
Change-Id: Ieda320b618a0a08186db791168e586a86b54d173
Signed-off-by: Jeff Johnson <jjohnson@codeaurora.org>
wcnss : Add more arguments to Thermal Mitigation APIs

Thermal mitigation event handle functions needs device
context to handle the event properly.

CRs-fixed: 364094
Change-Id: I2afa87eba755f082018510e9bfa6962392f591fd
Acked-by: Leo Chang <schang@qca.qualcomm.com>
Signed-off-by: Sameer Thalappil <sameert@codeaurora.org>
nl80211: advertise device AP SME

Add the ability to advertise that the device contains the AP SME and
what features it can support.There are currently no features in the
bitmap -- probe response offload will be advertised by a few patches
Arik is working on now (who took over from Guy Eilam) and a device
with AP SME will typically implement and require response offload.

Change-Id: Ic8d75e4933d795d43a0c30df6ec187f4d0ab6d8c
Signed-off-by: Deepthi Gowri <deepthi@codeaurora.org>

Conflicts:
	include/linux/nl80211.h
nl80211: Add probe response offload attribute

Notify user-space about probe-response offloading support in the driver.
A wiphy flag is used to indicate support and a bitmap of protocols
determines which protocols are supported.

Change-Id: I13b16c71449ab61f4308b6caa1cca35529f905b4
Signed-off-by: Deepthi Gowri <deepthi@codeaurora.org>
staging: prima_wlan: import prima_wlan driver

prima: WLAN Driver Release 3.2.0.2

Change-Id: I6643d1489c1a8a83d39f71b7ff98818b5e420c82
video: fix USB projector ifdef

Change-Id: I3cf79d8528371efc7650c632461d60a457023f55
USB: gadget: reset USB drivers to CAF at M8960AAAAANLYA1041

Change-Id: Iab1e585117f8324de52c160457762bc82b6dade4
msm: audio: qdsp6v2: Fix noise issue while SSR

- When SSR is done, we hear an extra noise sound.
- During SSR, Q6 is stopped and AUDIOIF will send the
left over samples in DMA buffers continuously to codec
resulting in noise.
- Disable the active SND devices when SSR is initiated.
This will avoid any noise happening while SSR in progress.

CRs-Fixed: 333915
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
(cherry picked from commit 692c6543452fce8c2104b81cb03fe136e9b1a047)

Change-Id: Id4f63a2ac0f9a8150af23b8c3aa0d5c5935fce2a
Signed-off-by: Gopal G Goberu <ggober@codeaurora.org>

Conflicts:
	arch/arm/mach-msm/qdsp6v2/audio_dev_ctl.c
	arch/arm/mach-msm/qdsp6v2/audio_lpa.c
	arch/arm/mach-msm/qdsp6v2/pcm_in.c
	arch/arm/mach-msm/qdsp6v2/pcm_out.c
ASoC: msm: Reset pcm irq position in WRITE_DONE event

Pcm irq position is incremented by one extra period size if
WRITE_DONE event is received during paused state as elapsed
is not called and as a result playback gets muted sometimes
Fix this mute issue by resetting the pcm irq position in
WRITE_DONE event instead of pointer operation

CRs-Fixed: 344436
(cherry picked from commit b52f007fe0be885e61ee37ab262b43b51c37a36f)

Change-Id: I7a0d2bc9d90ecb695651195eb4fe3b728caff402
Signed-off-by: Sudhir Sharma <sudsha@codeaurora.org>
ASoc: msm: Improve error checking in code

Improve code by adding more error checking,
fixing case statments and removing unnecessary
logic.

Change-Id: Ic4d07f5dd9a7079248d8320fab95ee6f4d150b88
CRs-fixed: 344634
Signed-off-by: Ben Romberger <bromberg@codeaurora.org>

Conflicts:
	sound/soc/msm/qdsp6/q6adm.c
ASoC: msm8960: Decrease period and buffer size for LPA driver

Deacreasing the buffer size for LPA buffer helps to improve the
overall audio quality and latency related issues

(cherry picked from commit b08560da3b365be1990b3c6a11db50e521c06bc4)

Change-Id: I7b92302c7bca8bc385a931b8602c9221b8beb5b3
CRs-Fixed: 344793
Signed-off-by: Tejas Shikhare <tshikhar@codeaurora.org>
(cherry picked from commit 3b92aa7191c8396070b4b883de9bfa24725ca866)

Signed-off-by: Zhoulu Luo <zluo@codeaurora.org>