ASoC: msm8x10: enabled SEC_MI2S SD0_SD1 grouping by default.

Enable sendign group command for SD0/SD1 to DSP for boot and
SSR reboot scenario.

Change-Id: I7db034ae2008c44ebb3d3851a85e8329c2b8fa76
Signed-off-by: Asish Bhattacharya <asishb@codeaurora.org>
mmc: block: check for NULL pointer before dereferencing

mmc block data can be NULL. Hence, check for NULL before
dereferencing md.

CRs-Fixed: 562259
Change-Id: I0182c216ec73347cdd2ea464f593839fffd242a9
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
Merge "mmc: block: check for NULL pointer before dereferencing"
input: sensors: use work queue for mma8x5x data polling

Accelerometer mma8x5x driver register polling device for data
polling, but polling device only update polling interval on
new polling cycle, this will cause delay on change polling
interval in some case.

Change-Id: I391dc5507a40e6bfc7e8127a0db89cb685eaf192
Signed-off-by: Bingzhe Cai <bingzhec@codeaurora.org>
ASoC: msm: 8x10: Fix button detection voltage thresholds

Adjust button detection thresholds to improve button
detection as button ranges should  be scaled in sync
to the recent changes for using 2.7V for micbias.

Change-Id: Ibfa5bb87e08f434410b23b74ed2fa0af018efc5e
Signed-off-by: Simmi Pateriya <simmip@codeaurora.org>
ASoC: wcd9xxx: Maintain micbias for headsets with threshold on mic

There are headsets that require to maintain  micbias while
it's plugged since mic of headsets have threshold to turn
on mic. Maintain micbias when this type of headset is detected
in order to detect headset button press.

CRs-Fixed: 587697
Change-Id: Ie2bc622d4336ab9b772cd996db84b569dacd9bf6
Signed-off-by: Simmi Pateriya <simmip@codeaurora.org>
ASoC: wcd9xxx: Enable micbias always when headset is detected

As micbias is shared on 8x10, we cannot use vddio switch to
detect special headsets. We can keep micbias alwyas on
to support these headsets.

Change-Id: Id62dfdf78bed2ea63e5fd8c6e6a8da2f19ee5f36
Signed-off-by: Simmi Pateriya <simmip@codeaurora.org>
Merge "input: sensors: use work queue for mma8x5x data polling"
Merge "ASoC: msm: 8x10: Fix button detection voltage thresholds"
Merge "ASoC: wcd9xxx: Maintain micbias for headsets with threshold on mic"
Merge "ASoC: wcd9xxx: Enable micbias always when headset is detected"
msm: cpr-regulator: change sequence for handling CPR voltage over ceiling

The current CPR driver increases the UP threshold to its maximum value when
the ceiling voltage is hit, but it is not disabling the UP interrupt
because the CPR controller needs a NACK command from software if the new UP
threshold is crossed for any reason. Based on analysis of CPR hardware
behavior, disabling CPR UP interrupt when CPR hits the ceiling voltage
is not harmful even though the CPR controller waits for a response from
software indefinitely. The CPR controller restarts sampling again as soon
as software switches to new voltage corner if it had been halted due to
hitting the ceiling voltage.

Modify the cpr-regulator driver so that the CPR UP interrupt is disabled
for a given voltage corner when the ceiling voltage for that corner is
reached. Re-enable the UP interrupt for a corner if a DOWN interrupt is
ever received for the same corner.

CRs-fixed: 602095
Change-Id: I0f2c479464cc43f784e97422095df395fa0c7b47
Signed-off-by: Ke Liu <keliu@codeaurora.org>
Merge "msm: cpr-regulator: change sequence for handling CPR voltage over ceiling"
msm-camera: Reset Write Master registers during hardware initialization.

Reseting VFE write master registers for every VFE session.

Change-Id: I09d99247e7a9592a84384fdeb499364f020ee6da
Signed-off-by: Chandan Gera <cgera@codeaurora.org>
ASoC: msm8x10-wcd: Add gain controls for ADC gains

Add the mixer controls to control the analog gain on the TX path
of the codec. This gain is applies to the ADC on the path. These
mixer controls will be used by higher layer to set desired gain.

Change-Id: Ic255f83238e8e06d31786c149743ec67cdfd6f87
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
ARM: dts: msm: Add support for 8510/8512

Identify 8510 and 8512 chips as belonging to the same class
of chips as 8610.

CRs-fixed: 619299
Change-Id: I5bae8770dfaf18b2da25a66bd804a26d3dcb430e
Signed-off-by: Hanumant Singh <hanumant@codeaurora.org>
Merge "ASoC: msm8x10-wcd: Add gain controls for ADC gains"
Merge "ARM: dts: msm: Add support for 8510/8512"
msm: mdss: Call prepare and unprepare clock for mdp and dsi clocks

Call prepare and unprepare of clocks along with enable and disable
for saving power in the case of static screen on command mode panels.
This makes sure that corresponding source clocks are also disabled
allowing xo shutdown to happen.

Change-Id: I088fe5ac238dc7071f968a024281cefc33b3e605
Signed-off-by: Shivaraj Shetty <shivaraj@codeaurora.org>
msm: mdss: Unvote for axi bw and detach iommu for static screen.

Unvote for AXI bandwidth and do iommu detach for DMA during static
screen on command mode panels. Also make sure that dsi interrupts are
disabled during this time. This is to make sure xo shutdown happens
to save power.

Change-Id: I9db00e1111a3581e9388f7042d491ab1ba7dffad
Signed-off-by: Shivaraj Shetty <shivaraj@codeaurora.org>