ASoC: Reduce LPA bufsize as to 128KB to save power for SA+

Root cause: SA+ bassboost takes more than two times the MIPS as NXP,
which causes normalized CPU load burst when AP is running, then firing
up 2nd core and consume more power unexpectedly.

Fix: Reducing the LPA buffer size from 256KB to 128KB will decrease the
MIPS required for each round of effect process and keeps the 2nd core
offline.

Change-Id: Ic8998a0c14e1e4056b12dea8abc3bcfcbb748187
Signed-off-by: wjiang <wjiang@codeaurora.org>
msm: camera: Reset CCI core based on I2C MASTER

CCI core is used by camera sensor, actuator and EEPROM. CCI core gets
reset first time when either one of hardware modules initializes it.
But, as per hardware requirement sensor has to be powered up before
CCI can be reset. This imposes limitation in the sequence in which
camera is opened. To remove this limitation, initialize CCI core
only for corresponding I2C MASTER everytime either of the hardware
modules initilizes it.

Change-Id: If2d7cc26fe23533243714839e6375f73d5efd4f2
Signed-off-by: Sreesudhan Ramakrish Ramkumar <srramku@codeaurora.org>
msm: camera: Update CCI WR comamnd buffer size to 11 bytes

I2C command length is of 11 bytes, it includes 10 bytes of data and
1 byte of WR command. Use 11 bytes char array to create command.

Change-Id: I27a11ac56e22ca96d5017439e3b6e202e4f25c53
Signed-off-by: Kerong Sui <ksui@codeaurora.org>
Merge "ASoC: Reduce LPA bufsize as to 128KB to save power for SA+"
Merge "msm: camera: Reset CCI core based on I2C MASTER"
Merge "msm: camera: Update CCI WR comamnd buffer size to 11 bytes"
kernel: alarm: setup the RTC immediately for poweroff alarm

Currently we setup the RTC for poweroff alarm when the system
performs shutdown. But if the phone is shut down unexpectedly
before that, the poweroff alarm can't work. So we can do that
immediately.

CR-fixed: 532743
Change-Id: Ib26a56fba8cd64efe94f2f07ee232482228429dc
Signed-off-by: Figo Wang <figow@codeaurora.org>
Merge "kernel: alarm: setup the RTC immediately for poweroff alarm"
diag: add NULL pointer check for user space diag buffer

Add the check to avoid potential NULL pointer failure.
CRs-fixed: 540570

Change-Id: Icccceb83dd1b7373f832295757e472c180b688d4
Signed-off-by: Sheng Fang <fsheng@codeaurora.org>
Merge "diag: add NULL pointer check for user space diag buffer"
msm: camera: Change CCI I2C write interface

Every CCI I2C write involves one I2C transaction to CCI core.
Since CCI queue has maximum of 64 words, Write CCI commands
to CCI core and handle it in hardware.

Rebased from gerrit: https://review-android.quicinc.com/#/c/389425/3

Change-Id: I81986db56788a4d96fdf1d0e4faa4ec6bad41800
Signed-off-by: Mukund Mittal <mukundm@codeaurora.org>
Signed-off-by: Sreesudhan Ramakrish Ramkumar <srramku@codeaurora.org>
input: touchscreen: fix config data not send issue

Config data from DT will not be loaded into CTP because wrong
register address is used. This change is to fix this issue.

Change-Id: I4436d057be2e70092ec7f9f1ae3aa6a00bdfd954
Signed-off-by: Bingzhe Cai <bingzhec@codeaurora.org>
input: synaptics_fw_update: Change permissions on lockdown sysfs entry

Permissions should be set to 0664 instead of 0777 for sysfs
entries.  Change them to pass CTS test.

Change-Id: I50237eaa917303efda0ad049649611bf1b6d9c31
Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
Merge "input: touchscreen: fix config data not send issue"
Merge "input: synaptics_fw_update: Change permissions on lockdown sysfs entry"
Merge "msm: camera: Change CCI I2C write interface"