Camera: QCOM legacy definitions,HTC cam switch,NO_UPDATE_PREVIEW

Updating Camera parameters, and service with several
compatibility patches:

1., QCOM legacy CameraParameters and functions:
Adding these will make ICS qcomm camera blobs work on JB 4.3.
Use BOARD_USES_QCOM_LEGACY_CAM_PARAMS := true in BoardConfig
to use this.

Also fixes the problem of legacy qcom
camera blobs with recent libcameraservice QCOM_HARDWARE changes,
where the orientation is messed up on first
preview: the fix is leaving out setPreviewWindow(window) for
legacy qcomm cam blobs.

2., Also adding NO_UPDATE_PREVIEW flag for legacy purposes.

3., Adding adding the set orientation patch:
Always set buffers orientation when setting the qcom camera preview window
Fixes the rotated preview on TouchPad
https://github.com/CyanogenMod/android_frameworks_base/commit/1a8e41a3c7434737db89b604352575f8b3109e7a

4., camera: Full support for HTC camera switch

5., Adding more parameters for HTC Explorer

Change-Id: I2bfc72b8ef027665356788f1db7f96b31d037dbe
Added support legacy Qualcomm OpenMAX IL libs for MSM7x27

Change-Id: I62108914b97e4b1a881e1bc4a09b51ade2f57df3
Remove CAMERA_CMD_METADATA && LONGSHOT calls

Change-Id: I2e8cd23266a14c6a00f654dff98b3ce6333045bf
libstagefright: Enable meta mode for 7x27a video encoder

msm7627a family of chipsets supports only one input frame at
one time. camera expects the input frame to be released before
sending another frame. so send one input buffer and available
output bufefrs to video encoder component. Release the input
buffer to camera (to get another frame) after receiving input
frame done callback from video encoder component.

Change-Id: I8fbc911f046ff7e2a3047dd65d8c09ac2d8608e2

Conflicts:
	media/libmediaplayerservice/Android.mk
use hw_get_module_by_class.

hw_get_module fails for some wierd reason.

Change-Id: I45d890acda513abb6efb86f3b3de31ae93eaa4fb
legacy OMX: handle QCOM colorformat

Conflicts:
	media/libstagefright/ACodec.cpp

Change-Id: I21f51f8ed296503ba6210e07d730ee80126dbb8c