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"