msm8660-common: media_profiles.xml fix 1080p video recording.

Credits to XDA user cile381 and homeslice976 for initial edits.

Change-Id: I0ac28b96b3bbc7150d6e75ccb1f5acb944cf9bdb
msm8660-common: updating for legacy qcom and JB 4.2 cm-10.1 branch

- Removing duplicate liblights
- adding proper bluetooth config
- adding audio qcom-caf variant
- adding qcom legacy dependencies (display/media)
- adding legacy framebuffer requirement

This to build, needs a series of patches and legacy cm-10 repos
from hw qcom/display and media:

- Using cm-10 qcom/media and display

https://github.com/arco/android_hardware_qcom_display-legacy checkout to /hardware/qcom/display-legacy
https://github.com/arco/android_hardware_qcom_media-legacy  checkout to /hardware/qcom/media-legacy

Patches needed:
http://review.cyanogenmod.org/34377

qcom media:
http://review.cyanogenmod.org/#/c/34374/1

hwcomposer compile fix msm
http://review.cyanogenmod.org/#/c/30269/

fw/av - camera parameters legacy patch for qcom
http://review.cyanogenmod.org/#/c/34409
audio: using qcom legacy audio and media_profile.conf

Fixing audio issues with -caf version. (gtalk audio routing
crash, SIGSEG)

Change-Id: I7784a3fc76d697ea6e6aca11e834a2c9e7acaa33
boardconfig: moving back to CAF audio variant

with the old audio_policy.conf (/configs/)
it works exactly as it should, no gtalk crash.
Thus dependency on the audio-legacy is not needed anymore.

Change-Id: If3111e6ace9f875469f9efefecd030550e94aece
Revert "boardconfig: moving back to CAF audio variant"

This reverts commit ad9296327e7f11093e466f4ae62b7de5bf149213.
Revert "boardconfig: moving back to CAF audio variant"

This reverts commit ad9296327e7f11093e466f4ae62b7de5bf149213.

Change-Id: Idb3898cd725dc69d45419a3fb89aa309b1a75893
Merge "Revert "boardconfig: moving back to CAF audio variant"" into cm-10.1
camera: updating to support h264 1080p video recording

Adding needed camera wrapper,
to inject 1920x1088 preview size,
and updated media_profiles.xml for correct 30 FPS.
Also wrapper will impose 30 FPS for preview
framerate to work with the media profile/codec.
(libstagefright CameraSource fps check will be
passed this way.)

Adding autofocus permission copy.

Updating Omx library building with new codecs.

Setting DISABLE_HW_ID_MATCH_CHECK flag so
camera wrapper wrapped module can be loaded.

Also device vendor part (per device)
needs update the blob copy script, so that
camera.default.so should go to
vendor-camera.default.so, as now the msm8660
common board build the wrapper into
system/lib/hw/camera.default.so ->
https://github.com/TeamDS/vendor_htc_doubleshot/commit/d5a3cc511137d49b4aaecf47d602ece1411250d9

Patchset updated: adding back the removed
encoders/decoders as they are present.

Change-Id: I7d0b30ff786e9d299fc008e4823c089d039ac207
Merge "camera: updating to support h264 1080p video recording" into cm-10.1
liblights: adding it back.

legacy qcom repo had TARGET_PROVIDES_LIBLIGHT
instead of LIBLIGHT'S'. That caused conflict.
Adding both for now, and adding liblights
source back too.

Change-Id: I61a49420b57a1c100014d9e5e41d098afd1f35a0
build properties: removing unwanted composition type 'dyn'

It's causing unwanted HWC framebuffer renderings, spamming the
log. Should fix the issue and no drawback found yet.

Change-Id: I1f58abac44e7cf8c2c38db3f79cee37a0eb1565c
Removing deprecation level 0 for display.

Latest qcom-display-legacy commits by arco made it
unnecessary:
https://github.com/arco/android_hardware_qcom_display-legacy/commit/7fae34e5c4a1db812e7c014348b81c852dff1a91
https://github.com/arco/android_hardware_qcom_display-legacy/commit/fd3c5a9db971ce40b006fcb64d77b56eb9484b41
https://github.com/arco/android_hardware_qcom_display-legacy/commit/0d9a4f0339194d50325b50cba302435d09422aae
https://github.com/arco/android_hardware_qcom_display-legacy/commit/d64e331e014a459cb6a4f87f9c90f881b62ea41e
https://github.com/arco/android_hardware_qcom_display-legacy/commit/e54f8c1b3e4d4b49997447bd8d471f295fafb707

Change-Id: I216d20bd729614b6f6bfba0a0b96ff92b422ffc3
msm8660-common: Add extra compile optimization flags

Change-Id: I294be4c042afed2ab4c5f27ceb12a5d6f90167c0
BoardConfig: add kernel rotator formats flag.
	suppose to help video playback one some devices

Change-Id: Ibff07c7625ea2b52c0ff7b03926a7a2f982e7787
msm8660: remove bt conf
msm8660: update liblights
Revert "msm8660-common: Add extra compile optimization flags"

This reverts commit b63600f9e9cdd5195825b717a0ce9ddf69692193.
msm8660-common: Add extra compile optimization flags

Change-Id: I294be4c042afed2ab4c5f27ceb12a5d6f90167c0
qcom.post_boot.sh: Fix permissions to fix User-configured Min/Max CPU freqs from sticking

Change-Id: I83b65368b45ab3e8e3cb996d9edeceb3b98febd1
Revert "qcom.post_boot.sh: Fix permissions to fix User-configured Min/Max CPU freqs from sticking"

This reverts commit b6a1c7f76fd15f40c117c201a22813a28b57d6e4.