Add LG camera HAL parameters

Change-Id: I0a1d8c4216654abeb3de9882637ad15bc9c23dc9
Add missing functions and signatures for older OMX video libs compat

Nvidia OMX libs need these to work
That fixes hardware OMX video codecs + Camera on TF101

AudioTrack: Do not inline getSessionId either

Should help for other nvomx versions that requires it.

Change-Id: I9f9afa844edf3e6d1fd25524f2cc155b974245ec
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
audioflinger/Threads.cpp: Remove spurious QCOM_HARDWARE

Why the heck was this #ifdefed?  It's in AOSP too

Change-Id: I86a09b892dc87329dab092cd475d3ac1623547ed
Screenrecord: allow force mic for audio

Some older devices audio blobs do not support audio submix,
allow those devices to force using the mic for audio while
screenrecording.

Change-Id: Ief3a14e00d0bf32cc131742fb82556621f54be36
AudioTrack: correct typo

Remove the extraneous dash when initializing status

Change-Id: Ie18e380ec6c2c45f88202c860573b583fd2a8129
audio: Increase kFastTrackMultiplier from 1 to 2

- Fast Track implementation is modified to use single
  buffer in kitkat. This is causing audio breaks when
  long DTMF tones are played
- Fix is to use double buffering to avoid audio breaks

Change-Id: Idc811ee7fe0d7f49bfa95ad34bc6e88bd04b734e
CRs-Fixed: 561567
audio: Use composition instead of multiple inheritance

- AudioTrack is derived from BnDirectTrackClient along
  with RefBase to receive the notifications from
  AudioFlinger in tunnel/LPA mode. This is breaking
  binary compatibility for the clients which use native
  AudioTrack directly instead of Java based AudioTrack
  API
- Fix is to use composition here instead of inheritance

Change-Id: I9fd2c61cff5629924e3b08f63559679e0263bcfd
CRs-fixed: 607574
libmediaplayerservice: be careful what you include
cause it just might cause *bugs* which will take you a long time to find and fix

Change-Id: Ie774813858b2f9a6afc1165bddd0351ff153975d
libmediaplayerservice: Fix commit https://github.com/omnirom/android_frameworks_av/commit/4fbfd595ee192e0617c0cedf58259c8f41f466dd

Change-Id: I5c90d7abe13bffa778e8f955f280b44156f13b2d
libstagefright: bring back mistakenly removed codec quirks

http://review.cyanogenmod.org/#/c/59396/ has mistakenly removed
3 of the codec quirks that are required for certain audio codecs
on OMAP3.

https://github.com/CyanogenMod/android_device_lge_p970/blob/cm-10.1/configs/media_codecs.xml#L28

The implementation of the quirks are still in the upstream code
and they have nothing to do with Legacy HTC.

Change-Id: I2d47bc9cbb451675c5bac6e725c59b367ff458dc
Merge "libstagefright: bring back mistakenly removed codec quirks" into android-4.4
Merge "libmediaplayerservice: Fix commit https://github.com/omnirom/android_frameworks_av/commit/4fbfd595ee192e0617c0cedf58259c8f41f466dd" into android-4.4