frameworks/av: Compile AudioParameter as shared library

- AudioParameter as shared lib is needed by BT,
  support in WFD source, SRS TruMedia

Change-Id: I30ee584ba7f45f5cafbdf07c45aa7429a84b1b49
(cherry picked from commit 30b89b3bfdafa2f3b877644400efbaefd6572f1e)
(cherry picked from commit 84c3b42f25a28d14426dba29276aae8c5ab795ce)
(cherry picked from commit 53c42631eeb1e13b786d9f4f616f38fe59690e4e)
audio: Use High Quality resampler

Use very high quality resampler to upsample to 48KHz sample
rate.
CRs-fixed: 416730

Change-Id: I30420cbaa8f6d34e2bce408494cc08cb00b175a3
(cherry picked from commit 2904e01dd4a3921b7bc0bec71f63f4757204408b)
(cherry picked from commit 0302cfba74b948e5fb3b2adbcb9330b5dcc36595)
(cherry picked from commit 955a6569ab9d28fbfd6e1e234f06016fcbe5fb6b)
libstagefright: Add interlaced video support

- Adds call to set output buffer size on the native window

Change-Id: I4754e1f1d4d0bba375f719240499ef58c9e87ca2
(cherry picked from commit 63452051ea03bc48af85bd58767fd2a9b0ae13b6)
(cherry picked from commit 856b08a0c452a5d1e0b02487bcbebc44e55fd3e7)
(cherry picked from commit 8f445b519a7c3d107f4180ead01c9722b12b0adf)
frameworks/av: AAC CSD support for MediaCodec path

- AudioFlush CTS test case is failing for AAC

- AAC Codec specific data is missing for
MediaCodec path for AAC if we use Qualcomm
ExtendedExtractor for demuxing

- Added CSD buffer while converting from
metadata to message , which can be used by
ACodec/MediaCodec

Change-Id: Ic8197138f5107f2a6026c28847e74987d91acc16
CRs-Fixed: 509575
(cherry picked from commit ae1b84bc3ead6a94e1383974e1bcba786b8e9354)
(cherry picked from commit 9e6ee7ae52b3bcb3cc76011d849e14a18f55bce5)
(cherry picked from commit 7edbc7b3a79cc65e355b8aa6025de15930fd0a2a)
Revert "frameworks/av: AAC CSD support for MediaCodec path"

This reverts commit Ic8197138f5107f2a6026c28847e74987d91acc16
Currently AAC CSD is retrieved in MediaCodec using
kKeyAacCodecSpecificData. This support was added as part of
commit Id046b0d4bf96f029c1b6b5d78d753073e38ac841.

Change-Id: I54bc6204c1fe88f4e4545f501e6bd1bb2a8beaf9
CRs-Fixed: 527284

Conflicts:
	media/libstagefright/Utils.cpp
libmedia: Add ICS audiotrack constructor

Change-Id: I5c1a3d1093cbf16111638a37601093c5eb977dd4
camera: add parameters for samsung cameras

From: codeworkx <codeworkx@cyanogenmod.com>
Date: Sat, 22 Sep 2012 11:36:26 +0200
Subject: [PATCH] camera: added weather key for samsung cameras

Change-Id: I1c6dc38f548fb3087abbdf7d7f83c39afaa217a1
---

From: Steve Kondik <shade@chemlab.org>
Date: Tue, 15 May 2012 09:41:02 -0700
Subject: [PATCH] camera: Add parameters for some Samsung cameras

 * Enable with SAMSUNG_CAMERA_HARDWARE
 * Adds anti-shake, metering, and wdr modes.

Change-Id: I080c90e11fcb8fa48900c01a454868f173f61eb0
---
camera: add iso parameter

Enable with BOARD_CAMERA_HAVE_ISO

From: jt1134 <jt1134@gmail.com>
Date: Mon, 17 Sep 2012 22:05:04 -0500
Subject: [PATCH] camera: add define for ISO settings

Change-Id: I8716a260ad552d3684197237c2055dce129e461e
---
camera: Add a few missing legacy camera params.

Fixes camera for some HTC msm7x30 devices

Change-Id: If6975e3a5470fdeb603bf8ad9c164c9a000309ef
Remove ICS getSessionId constructor

getSessionId isn't exported anymore, we can't inherit it from
AudioTrack

Change-Id: I1b8c4de88900343d5683a370da2bf94fe5c70326
Fix various C++11 issues and strict aliasing violations.
screenrecord: Add audio support

Adds audio recording to the screenrecord system. Note that
while recording, the audio is muted from the device output,
and that the audio volume is controlled separately (so make
sure to turn up your volume if you hear nothing).
Audio from the microphone can also be recorded by adding
--microphone to the command line.

Change-Id: I97dfcaf3d93b786c5466e1f4215549e3d015bcf0
screenrecord: Enable SUBMIX_IN as well and cleanup on exit

While on Nexus 5/Nexus 7 (AOSP QCOM audio), trying to turn on
SUBMIX_IN fails and is not needed, it is required on Find 5
and N1 (CAF QCOM audio), or otherwise SUBMIX_OUT won't turn
on.
We also now release the audio routing as it wouldn't revive
the audio speakers otherwise.

Change-Id: I0f80a232304733e0b0a834b188b8cfa5b88915f3
Fixes for mic and A/V issues on capri based devices

[PATCH 1/2] OMXCodec: set default input buffer size

Broadcom OMX only set the buffer size to 65536 by default which
is not enough for higher bitrate video

[PATCH 2/2] OMXCodec: set default input buffer size only for BCM
decoder

Needed for capri based i9082 device .

Change-Id: Iee5d02829da46f91a326c0fab3e60996af55a1f9
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
Hackish workaround for GCC 4.9 not compiling this.

As far as I can tell there's nothing I can do to fix it, it's just GCC segfaulting, so I'll wait until GCC 4.9 is released before I panic.
Revert "Hackish workaround for GCC 4.9 not compiling this."

This reverts commit 8b55cc1a5bb6f1020b46586e5efad8a555425483.
libmediaplayerservice: Fix commit https://github.com/omnirom/android_frameworks_av/commit/4fbfd595ee192e0617c0cedf58259c8f41f466dd

Change-Id: I5c90d7abe13bffa778e8f955f280b44156f13b2d
av: fix spelling mistake derp

Change-Id: Ib10535bd26e750f6ac2871196a75510c81c2f6e5
Loudness and Visualizer effects: Don't force -O2 if -Os or -O3 is provided.