pwm: qpnp: modify to use pwm_config_us() for some qcom drivers

Kernel 3.10 defines pwm_config() to use nanosecond parameters, but
now some qcom drivers still use pwm_config() to pass microsecond
parameters. pwm-qpnp driver has already provided a new API called
pwm_config_us() to support microsecond parameters, so we should
modify to use pwm_config_us() instead of pwm_config() for these
drivers.

CRs-Fixed: 545809
Change-Id: I222440bb7636972b9ae35eba175ddffc58095ce8
Signed-off-by: Xu Kai <kaixu@codeaurora.org>

Conflicts:
	drivers/video/msm/mdss/mdss_edp.c
mondrian: Import sm-t325 kernel

Conflicts:
	arch/arm/mach-msm/lpm_levels.c
	arch/arm/mach-msm/mpm-of.c

Change-Id: Ieff90188ef0d2b899434c9740db19983be6f2335
mondrian: defconfig: Unify sm-t320 / sm-t325 defconfig
picassolte: Initial import of sm-t525

Change-Id: I8eb4886bb9a6cf26b73d5f0ae19065ef5fba3b80
picassolte: defconfig: Disable *SWAP

Change-Id: I9d564fb98e77d84700287fcb1191ac25052459dc
picassolte: Fixup DT from move to CMA reservation for FB

Change-Id: I13b8db095fa11c6752276fa30d0d381f9b10021e
picassolte: Import panel DT diffs from sm-t525

Change-Id: I05d7c8264d9e08878869717d21f876274f44b60a
picassolte: mdss: Import from sm-t525

Added ifdefs to account for incompatible differences between
picasso and mondrian panels.
picassolte: mdss: Read maximum brightness from DT

Change-Id: I62742b6916daf6afb5afe773e8d677c583e42ea4
picassolte: mdss: Fix use of pwm_config vs. pwm_config_us

Change-Id: Ie8659ac13908f5855f3bed53c4ffe5dc8c73f82d
picassolte: mdss: Work around backlight turning off unexpectedly

Change-Id: Idf105169d69fe827352b01dfc025786a5fa3bebd
mdss: display: add edp frame rate

Add edp frame rate so that run time bus bandwidth requirement
can be calculated correctly.

Change-Id: I6ac147f35dd6d35aec9799d8f9e5c96e149d8161
Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>

Conflicts:
	drivers/video/msm/mdss/mdss_edp.c
ASoC: msm: qdsp6v2: Update supported sample rates

Compress driver supports 96Khz and 192Khz sample rates. Change updates
the supported frequencies in the compress driver.

Change-Id: I4093f18ca36259dc8f159b38a452108d2d6d142a
CRs-fixed: 653510
Signed-off-by: Gopikrishnaiah Anandan <agopik@codeaurora.org>
ASoC: msm: qdsp6v2: adding volume per dev-id

Add volume mixer control per device id for pcm use case.

Change-Id: Ieab721541a5cdf494b7fad78abc06d4f667b4baf
Signed-off-by: Anish Kumar <kanish@codeaurora.org>
  ASoC: msm: qdsp6v2: Add SEC_I2S_RX port as EC reference

  SECONDARY_I2S_RX as EC reference port is needed for msm8x10.
  Add support to enable SEC_I2S_RX as EC reference port.

  CRs-Fixed: 646310

Change-Id: Ie114dd29afc16ff324388743377fb5c755f4ad7b
Signed-off-by: Venkata Narendra Kumar Gutta <vgutta@codeaurora.org>
ASoC: Add external EC reference

Add support to set external EC reference. The external
reference are set to start along with multimedia
capture session.

Change-Id: I209b0dbb9c8f126f4c88cd53a77da719ad89f357
Signed-off-by: Anish Kumar <kanish@codeaurora.org>
ASoC: Correct the mixer control name

Change the mixer to match userspace mixer control.
Fix the null pointer dereference caused in soc core.
This null pointer exception was found in monkey run.

Change-Id: I0b3ca551fd2c057edd54a9771a13354ce6f0b7d2
Signed-off-by: Anish Kumar <kanish@codeaurora.org>
ASoC: msm: qdsp6v2: Do not free memory that has not been unmapped from DSP

The memory that is not unmapped from DSP should not be used until
DSP clears it. Do not free iom memory if the DSP unmap has
failed.

CRs-fixed: 599780
Change-Id: I4ceae34e0f8d6381efc34ce642babbc30ca5e57e
Signed-off-by: Damir Didjusto <damird@codeaurora.org>
ASoC: msm: qdsp6v2: add check for NULL dereference

The asm loopback driver during close does not check
for NULL before closing the playback and capture
instances.

The change ensures only the valid playback/capture
instances are closed.

CRs-Fixed: 643724
Change-Id: I3373f62a2413e1497b6f8a401158444cd2870b2a
Signed-off-by: Aravind Kumar <akumark@codeaurora.org>
ASoC: msm: fix the target crash due to the NULL pointer dereference

During the close of the FE, the mclk is disabled which accesses the
codec drv data.
In case if the tapan codec was not initialized, then close sequence
will result in the null pointer dereference.
Fix by adding a null check before accessing the codec data structure.

CRs-Fixed: 635065
Change-Id: I0678826d073a69b99a05a5b628920be89d210519
Signed-off-by: Aviral Gupta <aviralg@codeaurora.org>