AV: Bring up to date with CM-10.2

Summary:
Squashed of the following:

qcom: Split off caf AUDIO_VARIANT support from QCOM_HARDWARE

One does not imply the other, add a different flag to allow using
them independently

Change-Id: I7fe0c0391967132a65f86f0c5f4bc0f54d50777d

frameworks/av: init rc to avoid effect's fault state

Effect command doesn't necessarily fill cmd return code into &cmdStatus,
so we should initialize cmdStatus to avoid uninitialized value propagates
to upper stack caller.

Change-Id: I2a2985e3010f0d7b8aedf9244a6faabdf05740ac
CRs-Fixed: 517766

libstagefright: enable smooth-streaming based on shell property

Enable smoothstreaming in Acodec/OMXCodec if shell property
mm.enable.smoothstreaming is set to true.

Change-Id: Ic5d64623c3001144f36562c8abf4b5f7be42f1e0

frameworks/av: fix for testAACEncoder CTS testcase

- testAACEncoders CTS testcase is failing for
  Hardware aac encoder use case

- hardware encoder has bitrate limitation
  due to which  CTS testcase is failing

- Removed hardware AAC encoder component from MediaCodec list,
  added in OMXCodec path on specific request from
  Stagefright recorder

Change-Id: Idff8abf4b768f63262da0576768fb13c9d6df1de

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

audioflinger: Do not apply effect on multichannel content

-Do not apply effect on multichannel content.
-Effects are applied only for mono or stereo.
CRs-Fixed: 484078

Change-Id: I623d40f926d5dd80e74f9aa2f98448158518047e

stagefright: synchronously change nativewindow crop

Only change the nativewindow crop before queuing frames
with the new crop.

Change-Id: Icd8a84c82e66a8be3d6bc1675c777b1de8dc39b9
Signed-off-by: Lajos Molnar <lajos@google.com>
Bug: 9395753

media: Fix merge issues

Change-Id: I89ab96a1ae415822c6d35e244fb3ebed389a1de6

Merge branch 'cm-10.2' of git://github.com/CyanogenMod/android_frameworks_av into jb-devel-mr2-release-topic-updates

Revert "qcom: Split off caf AUDIO_VARIANT support from QCOM_HARDWARE"

This reverts commit f71366314ea05903e9b45e738cbc0bc9a78b2b25.

Test Plan: win

Reviewers: randall.rushing, Mustaavalkosta, Roach, synergy

Reviewed By: synergy

Differential Revision: http://review.codefirex.com/D310