as3676: full brightness on boot & cwm

Use 100% of brightness during boot & in cwm, same behaviour like the old driver

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>

Change-Id: I721b98d67399841e809e82dbad1c9492ec7a74f4
as3676: fix iyokan & mango keyboard backlight

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>

Change-Id: I2d1dc0a2eddd902b69674ef2a686e1191b8e4735
as3676: correct startup_current

no point in having startup_current higher than max_current since it's just ignored

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>

Change-Id: I662ca608ba0583ca0dba866205a7a134e0d584c6
as3676: hack to fix als on devices that need use_dls=false

assign use_dls to an unused led to get als initialized

Change-Id: I28932439b84b9476423e62e36c34ae6c89188a95
as3676 platform data: update max_current

use correct max_current from 4.1.B.0.587, they have been wrong since forever
add support for coconut music light

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>

Change-Id: Icbbf83de76039a0e03695fa349b98c62a6bbc28e
clearpad: fix gcc 4.6 warning

Fix urushi build with gcc 4.6

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>

Change-Id: I9854f999857362213232e73b19cabe000389f93e
USB: android: Fix adb device file closing bug

adb device file closing and config disabling can happen in
parallel during composition switch.  If adb device file
is closed prior to config disable, adb function driver request
android to disable configuration.  But this is not undone later
when adb device file is opened.  Due to this bug config remains
disabled after composition switch completion.  Fix this bug.

CRs-Fixed: 414360

Change-Id: Ia7b352c63d860028c02b8dd7a52522460557e6fd
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
Signed-off-by: Neha Pandey <nehap@codeaurora.org>
mogami: #ifdef akm8975 code

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>

Change-Id: I5bb5018e316568b91b3f6643ff477134280a721e
touch: Remove useless file & fix typo

what is shakira doing here? :)

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>

Change-Id: I1433e16b3076697b767073ac9458d8e94474a242
mogami: #ifdef as3676 code

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>

Change-Id: I789d7aef6d0abcfc87a18d44bc812463708f7425
Squashed update of kernel from 3.4.45 to 3.4.46
Squashed update of kernel from 3.4.46 to 3.4.47
as3676: revert key brightness

such high brightness triggers als through the display glass

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>

Change-Id: Ic897c0c3fae91c000534d0340054bceaea69fd6f
mogami: increased PMEM_ADSP for devices with 8MP camera

The lowest value I could get without breaking 6mp & 8mp, tested on urushi

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>

Change-Id: I44a406782ae42c7db0d881c91d7de8c2ee193ee0
as3676: add torch leds for urushi

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>

Change-Id: I493995260ba89a50790eaf2196a542cab2d4cc33
msm: qdsp5v2: Increase buffersize of hostPCM interface.

The default audio sample rate of audioflinger is increased
from 44.1k to 48k.Increase the buffersize to take
advantage of that.

Change-Id: I7ffc6c697cb32b6983c9bb5cc6ea73a7a55b5006
Signed-off-by: Sidipotu Ashok <sashok@codeaurora.org>
msm_fb: Clear real pipe attributes in the pipe free

Clear original pipe attributes in the pipe free call.

Change-Id: I776869e7997e5b70e4c2b102e1a394034247bbcd
Signed-off-by: Kalyan Thota <kalyant@codeaurora.org>
Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
msm_fb: display: Add minimum src/dst image size validation for MDP

MDP4 has minimum size restriction for both source and destination
height and width. Add checks to validate source and destination
layer size.

CRs-fixed: 484728
Change-Id: I8cb8d4b969cd6ab2d8e99d7ed2ebb1a4adce1ef3
Signed-off-by: Mayank Chopra <makchopra@codeaurora.org>
msm: kgsl: Don't consider active count if not in active state

Don't consider active_cnt variable if not already in ACTIVE state.
The active count variable does not necessarily exactly indicate the
number of open handles to GPU for switching power state. Hence,
only wait for active count to reach zero before switching to SUSPEND
state if, the current state is ACTIVE.

CRs-fixed: 483154
Change-Id: Ie025a1873cfb9237bdfba89204f4c2116549eba4
Signed-off-by: Harsh Vardhan Dwivedi <hdwivedi@codeaurora.org>
mmc: msm_sdcc: fix a type mismatch in msmsdccc_config_dma()

msmsdcc_prep_xfer() function returns a signed integer value but
caller function msmsdcc_config_dma() is storing this value in an unsigned
integer variable which is obviously not the correct thing to do.

CRs-Fixed: 476578
Change-Id: I39159e2f4f73c7f54de359cbe4faba5e902915ff
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>