Merge pull request #35 from Kali-/aosp/LNX.LA.3.5.2.2-03010-8x74.0

audio and wifi
Update README_Xperia

Update to correct configs found in arch/arm/configs and cross compiler information based on guide: http://developer.sonymobile.com/knowledge-base/tutorials/linux-rom/how-to-rebuild-kernels-for-flagship-xperia-devices/

Add ARCH=arm CROSS_COMPILE=$CROSS_COMPILE to line 39 for correct configuration
Sony: Disable lots of unused modules

Change-Id: I4e4b36753c9e3b27401294fd789ccb780696bd69
Merge pull request #41 from chirayudesai/for-alin/misc

Remove unused modules
Merge pull request #38 from necioerrante/patch-1

Update README_Xperia
msm: vidc: remove non fatal error messages

V4L2 core fails reqbufs ioctl if file IO is in
progress. This message is non fatal, so avoid
logging it as a error message in the video driver.

Change-Id: Ie5ea22925f9c698c82cfaeb6e77b66cf77e5e866
Signed-off-by: Arun Menon <avmenon@codeaurora.org>
Revert "add SONY specific camera driver"

This reverts commit 2e9c67d8f017783a8f19835a7dc67e7a02577404.
msm: camera: Make ISP and camera kernel not interruptible

Change wait_event_interruptible_timeout to wait_completion_timeout
in camera kernel and change wait_completion_timeout_interruptible
to wait_event_timeout to avoid getting interrupts from kernel.

Change-Id: Ibf17d0f11ed705e68294257a90f7770676e63cbb
Signed-off-by: Yiduo Wang <yiduow@codeaurora.org>

Conflicts:
	drivers/media/platform/msm/camera_v2/msm.c
msm: camera: sensor: Change wait func to wait_for_completion_timeout

change wait function from wait_for_completion_interruptible_timeout
to wait_for_completion_timeout

Change-Id: I7d8e306e4d5a965c8ab884aa8345f0c118dd2ef5
Signed-off-by: Rajesh Bondugula <rajeshb@codeaurora.org>
msm: camera2: cpp: Add support to enable turbo mode dynamically

The input stream can have varying properties. Based on the input
the clock can be set to turbo mode. This change adds support
for necessary IOCTL.

Change-Id: If5e0b9392b03cf037009442eb9935a96823cb1e5
Signed-off-by: Iliya Varadzhakov <ivarad@codeaurora.org>
msm:cpp: Validate data lenght in Set Clock command

The lenght of the data packet recived in case of
VIDIOC_MSM_CPP_SET_CLOCK command must be validated.
It have to be equal or smaller than the size of the
variable used to hold the data. If this condition
is not met stack-based buffer overflow will occur.

Change-Id: I68002e088aaca1ca740985d9e26e9161f130b499
Signed-off-by: Iliya Varadzhakov <ivarad@codeaurora.org>
msm: cpp: Add dynamic clock setup

The CPP load depends on the frame resolution, which is
processed. CPP clock can vary depending on the load. Thus
the system can be relaxed when smaller resolutions are
processed.

Change-Id: I03dd8e8e6c5e76c6eecccea15f1308f096e3fb7c
Signed-off-by: Iliya Varadzhakov <ivarad@codeaurora.org>
ARM:dts:msm: update generic cam entries

remove kernel sensors drivers for imx135
and s5k3l1yx.

Change-Id: Ie72fcfaccc4aa0a7fa0e1e1f18a4ab1cb9b05b8c
Signed-off-by: Rajesh Bondugula <rajeshb@codeaurora.org>
ARM:dts:msm:8974 update generic cam entries

Update generic camera DT entires and
remove kernel sensor drivers and sensor
dt macro entries for imx135 s5k3l1yx and
OV2720 sensors on MSM8974 platform for
cdp liquid mtp targets These entries are
redundant as the sensor identification
and powerup will be taken care by userspace
sensor drivers.

Change-Id: I6dfbfa5f0ecf090e87c13b51de9b4506a3a10b36
Signed-off-by: Rajesh Bondugula <rajeshb@codeaurora.org>

Conflicts:
	arch/arm/mach-msm/clock-8974.c
msm: camera: sensor: Update to use wait_for_completion.

Use wait_for_completion in place of wait_for_completion_interruptible

Change-Id: I960b334128e2b811b27c64721a65f7c7e773b085
Signed-off-by: Rajesh Bondugula <rajeshb@codeaurora.org>
msm: camera: Fix race condition between camera driver and camera daemon

Delete checking command list before calling
wait_for_competion_timeout which could cause race condtion
if camera daemon may respond fast and there is one context swtich
between msm_enqueue and completion.

Change-Id: I28bdc4e344d2365acf49d422ba75dc64308a96aa
Signed-off-by: Yiduo Wang <yiduow@codeaurora.org>
msm-camera: Avoid adding top up to calulated ab/ib for single stream.

Avoiding topup for ab/ib for single stream

Change-Id: Ie6fb6716ea1b30604d801936bea3da5a96d8a6fc
Signed-off-by: Chandan Gera <cgera@codeaurora.org>
msm-camera: Dividing unified buffer in proportion to the image size

Write masters writing large images require large latency buffers in
unified buffer whereas write masters writing smaller images don't,
Allocating latency buffer in proportion to image size will reduce
buf overflows

Change-Id: I54d3b4389eb616b9684d5b62caaed029c83299ab
Signed-off-by: Mohit Setia <msetia@codeaurora.org>

Conflicts:
	drivers/media/platform/msm/camera_v2/isp/msm_isp32.c
msm-camera: Enable proportional slicing of unified buffer

To enable proportional slicing

Change-Id: I8a21c8808085f527b9536edc51ccdcfa1de4e179
Signed-off-by: Mohit Setia <msetia@codeaurora.org>
msm: camera2: cpp: Change bus scale vector call sequence

The cpp driver can set the bus scale vector when cpp module is
actually included. This will avoid unnecessary power consumption
due to setting the bus scale vector.

Change-Id: I898bb33f4433d8b70f63c07facd6e22d58196211
Signed-off-by: Rajakumar Govindaram <rajakuma@codeaurora.org>