msm8960: CameraWrapper

* moved from d2-common and modified to support d2 and jf

Change-Id: I674bd4e27d9b5f239cec4e5356c330c16f11f325
d2/jf re-enable cancel_auto_focus

zsl cameras need this
https://github.com/CyanogenMod/android_packages_apps_Camera2/commit/110c926aca9918cdd2f30861be64a4497ef25b66

Change-Id: I47379f9c3327620ada1ce1e993179c8a5a04674a
msm8960-common: CameraWrapper Updates

* Possible Memory leak updates in fixed_set_params

* Update fixup_setparams in camerawrapper to support sending rawcommand
  At times it's needed to send raw commands to the camera.  Simple change
  to make it simple to pass these directly from the fixup_sendparams method.

Change-Id: I4e38a50a4a837c29f3561b0abee02f061b25de00
CameraWrapper: rework defines

* Set the various needed flags in device trees rather than checking
  device variant in the camera wrapper's makefile.
* Move checks after CLEAR_VARS. You know, so they actually work.
  As it urns out, you can't clear variables after setting them and
  expect them to work.
* Enable some magic for newer Samsungs. Need to send a magic command
  (1508) to the camera. Nobody knows what this number actually stands
  for. Well...maybe nishu does...

Change-Id: I90a83658e3e3178c4dc92aba885d2b991f7b3811
camera: don't disable autofocus based on zsl, use its own prop

Change-Id: I401bbe9347a1fbc3b839d7a1b17490d189785fa0
msm8960: camera: Only enable ZSL for photos

 * Don't turn on ZSL for camcorder unless you like pain.

Change-Id: I390843c3bbf6fff4caecd7477086e66eebe0205c
Merge "camera: don't disable autofocus based on zsl, use its own prop" into kk4.4
msm8960-common: Use /cache for dalvik-cache since we have enough space

Change-Id: I13ab2a5b848d10772d0aeb786a6a092868a7b0df
msm8960-common: temporarily disable compressed audio

Apparently this is messed up.

Change-Id: Iec6184546f2571aea68735da395400a7841588a4
msm8960: Remove obsolete flags

Change-Id: Ic85bfe945fa9f1aded84ef7e31ab27569513810e
msm8960: camera: Add flag to disable face detection

 * This works fine on JF. Make it optional for the Derp2

Change-Id: I057446865af61f62db037c9c8d980ade8fd5a698
msm8960: camera: Use hw_get_module_by_class

 * And get rid of the libhardware hack too.
 * Camera blob is renamed to "camera.vendor.msm8960.so"

Change-Id: I64df0491661963452d042ecf85d6eb9feadf1211
samsung krait: add msm8974 to build barrier

Change-Id: Ia5398a487463323650ee74016d973c7c6900b143
msm8960: WiFi is no longer a module

Change-Id: I246431b46d63e3392a67fc3c66509157a37be4dd
msm8960/msm8974 fixup build when compiling without
qualcomm hardware

Change-Id: I245431b46d63e3392a67fc3c66509157a37be4dd

Change-Id: Ib1b0bee4207a69518d61faa70c57ee164366b065
more fixup with camera wrapper..

Change-Id: I245431b46d63e3392a67fc3c66509157a37be45d
msm8960: Remove QCOM_BSP from here, moving it up

Change-Id: I80d8faf77296b2354e8a757a0a710624dfcfc0c6
Revert "msm8960-common: Use /cache for dalvik-cache since we have enough space"

This reverts commit 790bbc4630c01840fc3678708d7fee580a62f011.

Change-Id: I279830f62b8928efe2af4e119b36bf4aecee10cd
Revert "msm8960-common: temporarily disable compressed audio"

This reverts commit 01c243bb9e02a9459beca85a68a24f4c81ca7b18.

Change-Id: I79ebcade13bf14046c63c80962e1c51b419fa970
msm8960: clean up camera

Change-Id: If5218f186e019aca8077c064888ff9675f56330d

Change-Id: If5218f186e019aca8077c064888ff9675f56330d