usb: host: hs_phy_irq wakeup only when host mode and controller lpm

Change-Id: I98a01f5d1aad4616804f339bf10924dde635fa81
Signed-off-by: mohamed.khadri <mohamed.khadri@lge.com>
Signed-off-by: Devin Kim <dojip.kim@lge.com>
usb: charger: increase charger detection time to 10s

prevents incorrect detection of TA until poll of 10s

Change-Id: I5a76df9a579b9b175191119fb02126eac7e9957f
Signed-off-by: mohamed.khadri <mohamed.khadri@lge.com>
Signed-off-by: Devin Kim <dojip.kim@lge.com>
usb: dwc3-msm: use only vbus to determine device mode

hs_phy_irq is used as wake_up source when in host mode. However leaving
this irq line enabled, has dual flows of detection for device mode  i.e
hs_phy_irq and vbus. Though  hs_hy_irq would not be  wakeup enabled, we
would still get an interrupt when the system has been woken up by other
interrupts like the vbus line. So in  summary now we will have vbus for
device  mode, id for  host mode detection and  hs_phy_irq for wakeup in
host mode suspend.

Change-Id: Ib848d2cddeba2afdf571390490ac3da6be6e774b
Signed-off-by: mohamed.khadri <mohamed.khadri@lge.com>
Signed-off-by: Devin Kim <dojip.kim@lge.com>
usb: gadget: audio: use configured interface nums for audio control/stream

Change-Id: I75decdc810497e95bef0cfac793791cdd803b7ca
Signed-off-by: mohamed.khadri <mohamed.khadri@lge.com>
Signed-off-by: Devin Kim <dojip.kim@lge.com>
usb: dwc3: add option to remove vbus power setting

Add option to remove vbus power setting in gadget driver.
This option can be set through device tree to keep
battery charging in usb suspend mode.

Change-Id: Ie53290701608a0ea01595bac2e681a41240b22d4
Signed-off-by: choongryeol.lee <choongryeol.lee@lge.com>
usb: dwc3: reduce the charger detection dcd poll time to 1.5s

There are some old chargers which have dp/dm floating. Since
that charger are out of spec, usb driver cannot detect charger
type until poll retry end. Previously it took 10 sec.
Reduce the charger detection retry time to 1.5s for quick
abnormal charger detection.

Change-Id: Idf671f23c2372aeed0b279865fa2c4f2088a8d31
Signed-off-by: mohamed.khadri <mohamed.khadri@lge.com>
Signed-off-by: choongryeol.lee <choongryeol.lee@lge.com>
mach-msm: enable OPPO specific code by default

 * This is a Find7 kernel after all ;P
usb: dwc3-msm: cleanup merge from Google/LGE
ASoC: msm: Implement platform driver for compress audio playback

Compress platform driver implementation as per compress offload
ALSA framework.
Update the FE DAI link with the new platform name.
Update the device tree to include the new platform driver.

Signed-off-by: Ravi Kumar Alamanda <ralama@codeaurora.org>
Signed-off-by: Eric Laurent <elaurent@google.com>
ASoc: msm: Change condition to get session time

Change condition to skip request for session time from DSP
during compress offload.

Signed-off-by: Haynes Mathew George <hgeorge@codeaurora.org>
Signed-off-by: Eric Laurent <elaurent@google.com>
ASoC: usb: change uevent value to digital USB HEADSET

The uevent of usb_audio has two components - analog, digital.
When usb_audio is set to 1, uevent is set to analog.
But, this is incorrect type. The usb audio interface should be
digital. So, it changed to 2 - digital.

Change-Id: I646301a15a8b3badd9f1794d98c451b2d9f42293
Signed-off-by: sangwoo <sangwoo2.park@lge.com>
msm: audio: initialize the structure before sending to user space

If uninitialzied structure is passed from kernel to user space, it
may contain sensitive information that will be leaked.

Change-Id: Ie7c4568c78df8cbd1efeff559848058c2163b0b8
Signed-off-by: Fred Oh <fred@codeaurora.org>
Signed-off-by: Ajay Dudani <adudani@codeaurora.org>
ASoC: add compress stream support

This patch adds the support to parse the compress dai's and then also adds the
soc-compress.c file while handles the compress stream operations, mostly analogus
to what is done in the soc-pcm.c and aditional handling of the compress
opertaions

Conflicts:
	sound/soc/soc-core.c

Signed-off-by: Namarta Kohli <namartax.kohli@intel.com>
Signed-off-by: Ramesh Babu K V <ramesh.babu@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
ASoc: fix compilation error

Fix compilation error after merging commit 1245b700
from master: snd_soc_dapm_stream_event() protoype has changed.

Signed-off-by: Eric Laurent <elaurent@google.com>
ASoC: compress - fix code alignment

Reported-by: Fengguang Wu <wfg@linux.intel.com>
Signed-off-by: Namarta Kohli <namartax.kohli@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
ASoC: soc-compress: Add missing brackets around else

Conflicts:
	sound/soc/soc-compress.c

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Tested-by: Jeeja KP <jeeja.kp@intel.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
ASoC: soc-compress: Serialise compressed ops

Use the pcm_mutex to serialise the compressed ops.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Tested-by: Jeeja KP <jeeja.kp@intel.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
ASoC: soc-compress: Initialise delayed work to power down audio

Delayed work was scheduled but not initialised, this patch adds the
actual work and initialises it.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Tested-by: Jeeja KP <jeeja.kp@intel.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
ASoC: soc-compress: Add support for not memory mapped DSPs

The ASoC compressed API did not implement the copy callback in its
compressed ops which is required for DSPs that are not memory mapped.

This patch creates a local copy of the compress ops for each runtime and
modifies them with a copy callback as appropriate.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
ASoc: fix compilation error

Fix compilation error after merging commit 1f88eb0
from master: pop_wait is in struct snd_soc_dai
not in struct snd_soc_pcm_runtime.

Signed-off-by: Eric Laurent <elaurent@google.com>