msm: vidc: add support to set VP8 QP range

QP range differs from codec to codec. This change adds support
for VP8 QP min and max range.

Change-Id: Ia44cf885a8b6f71b7eef51076968021ae68d7a7e
CRs-Fixed: 578892
Signed-off-by: Jorge Solano Altamirano <jsolano@codeaurora.org>
spi_qsd: Remove check for unaligned  length during input_irq

QUP_IRQ complete is triggered before dmov_rx callback.
Which will initiate SPI to start next transfer, due to
this earlier DMOV_CMD is blocked and results in kernel panic.

Current Implementation  make sure that transfer complete waits
For DMOV callback only in case of aligned lengths ,This patch
ensures transfer trigger only after DMOV RX call back for
unaligned length also.

CRs-Fixed: 583126
Change-Id: I306a705d0eaf0eac33b2dbf335992254351cce20
Signed-off-by: Sana Venkat Raju <c_vsana@codeaurora.org>
msm: mdss: remove panel type check for split display case.

Split display flag is derived from dsi controller configuration
specified at dtsi. Therefore no need to add checking panel
type at FB registration.

Change-Id: I5b60656c1f5724bdc358d743b8d7600d5beba0b3
Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
ARM: dts: msm: Add support for JDI dual-dsi QHD video mode panel

Add JDI dual dsi video mode panel related dtsi files.

Change-Id: I0a8103d665a96aaa6ecf62d610cffb7fb2c75b2d
Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
ALSA: jack: Add support to report second microphone

ALSA jack framework currently supports reporting only
one microphone. Add support to report presence of
second microphone to the userspace.

Change-Id: Id0df7aa222e547da3771f5d61092a959394c10dc
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
ARM: dts: msm8974: Configure micbias3 voltage to 2.7V

Configure micbias3 voltage to 2.7V that powers up
ANC mic lines and to support detection of the ANC
mic using MBHC.

Change-Id: Ifa75dc4b5c6b10662830e0db391f606d2cf69682
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
ASoC: wcd9xxx: Add support for MBHC 5-pole plug detection

Add support to determine the presence of second microphone
on a 5-pole plug used for active noise cancellation.

Change-Id: I85227a00c47fed1d0e4453b77902c1b473097a5b
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
ARM: dts: msm: Add the hardware jack setting for all boards

Headset jack can have 4-pole or 5-pole or 6-pole.
Add device tree setting to distinguish these jacks.

Change-Id: I51835bb082346f672350dda08832670b71e8387a
Signed-off-by: Simmi Pateriya <simmip@codeaurora.org>
ASoC: msm: Parse the jack type property

Parse the property from device tree to check
the jack type.

Change-Id: I9d91745ae1faa07501a49e31773e21a11bfe9bd4
Signed-off-by: Simmi Pateriya <simmip@codeaurora.org>
ASoC: wcd9xxx: Report lineout immediately

If extension cable is inserted into the jack, it
is taking 5 sec to report the insertion. Reduce
this delay by reporting high headphone immediately.

Change-Id: I904f232ede585c39c6b600692ddb8750b848ebcd
Signed-off-by: Simmi Pateriya <simmip@codeaurora.org>
ASoC: wcd9xxx: Handle anc headphone detection with slow insertion

When 4 pole/5 pole/6 pole headsets are inserted into jack with
anc support, we need to handle cases of slow insertions as it
might lead to incorrect detection. Reconfirm the plug type in this
case if anything other than headset is found.

Change-Id: I1342425904197240aa39fce59fee497605b56d41
Signed-off-by: Simmi Pateriya <simmip@codeaurora.org>
ASoC: wcd9xxx: Enable current source support for 2nd mic detection

Use current source to detect presence of second mic if MICBIAS
for primary and secondary mic is not shared. If MICBIAS is shared,
do not use detection with current source.

Change-Id: I25009bd15cf5a593761d8b182ed4bcb6c2c210a2
Signed-off-by: Simmi Pateriya <simmip@codeaurora.org>
ASoC: wcd9xxx: Use button polling with anc headphone

Anc headphone can be considered as a headset without microphone.
Button polling can be used to catch removal for such headsets.

Change-Id: I786794885e53db74f26a77144683caa3e7d8c52a
Signed-off-by: Simmi Pateriya <simmip@codeaurora.org>
ARM: dts: msm: add firmware image for synaptics

Add firmware details for msm8x26 1080p devices.

Change-Id: Icac76adcf424beaa0fa1d52b7383805080a708a4
CRs-fixed: 608654
Signed-off-by: Mohan Pallaka <mpallaka@codeaurora.org>
usb: dwc3_otg: Turn on VBUS before starting host

Currently the VBUS regulator is enabled only after initializing
the xHCI host stack, which can result in enumeration failures
for certain devices. This is likely due to VBUS having a
finite rise time when it is turned on, especially when a load
is already attached. Mitigate this by enabling VBUS first before
starting the host stack.

CRs-Fixed: 599498
Change-Id: I9785ae4682d0a2dfbcec921b869fc03550e0db82
Signed-off-by: Jack Pham <jackp@codeaurora.org>
msm: mdss: Update wr mem fields with correct names

wr mem start and continue were incorrectly named in
the documentation and dtsi files. Changing the names
to wr-mem-start and wr-mem-continue to more accurately
reflect the fields.

Change-Id: If2cdd410fd50a4690dcb6c87cb0b9f4818848848
CRs-Fixed: 578028
Signed-off-by: Casey Piper <cpiper@codeaurora.org>
ARM: dts: msm: Add support for JDI Dual DSI QHD cmd mode panel

Currently, only JDI Dual DSI panel is supported in video mode.
Add support for the panel to operate in command mode as well.
This can be enabled using the fastboot parameter as well.

Change-Id: Ie52243a4a83af38a09b9677601358301241eab2d
Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org>
Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
msm: kgsl: Enable protected mode for A3XX

Enable protected register mode for A3XX with these commits from
msm-3.10:

msm: kgsl: Enable protected register mode for A3XX
msm: kgsl: Print the register that causes a protected mode error
msm: kgsl: Unprotect the VBIF performance counters

Change-Id: Ic0dedbad950ffbd063fd861d9440bb5dce8d5fb1
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
msm: kgsl: Protect SMMU registers from being written by the GPU

Put the SMMU register range in protected mode to shield them from
IB1/IB2 writes from userspace.

CRs-Fixed: 599971
Change-Id: Ic0dedbad8c03fc1c54ff73221231e2440d3c34dd
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
ASoC: msm: Check stream id for ASM callbacks in compress driver

Send stream id to DSP for asm commands which requires stream and
session information. Stream and session id is added as token
parameter for DSP commands. Use token parameter to interpret the
stream for which the callback is received.

Conflicts:

	sound/soc/msm/qdsp6v2/msm-compress-q6-v2.c

Change-Id: I58a40d84f60f4a4172ec7ee79302c8bfb24c910b
Signed-off-by: Krishnankutty Kolathappilly <kkolat@codeaurora.org>