camera: Don't segfault if we get a NULL parameter

 * Values end up NULL on some drivers, don't crash.

Change-Id: Ic897dbd4629cf3af98c85f93be202c382dde806b
[WIP]: camera: add parameters for htc cameras

Change-Id: I1456e5af22d1cb68fd19626a136fef68c5573074
camera: fixup htc params

Change-Id: Iee0086e8a7319ada09f5191092c314c099e0d66a
Add camera parameters for htc evo 3D. (1/2)

Use BOARD_HTC_3D_SUPPORT to enable.

Change-Id: I28fa3f1586071bcc78b8e887bbbf699d338a0ceb
libmedia: Add ICS AudioStreamType constructor

Needed for Samsung legacy camera libs.

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

Fixes camera for some HTC msm7x30 devices

Change-Id: If6975e3a5470fdeb603bf8ad9c164c9a000309ef
frameworks/av: Add metadata mode changes to LPAPlayer

-Seek to EOS was causing playback to hang for 3 seconds before
 switching to the next clip.
-This is because the lpa driver works on period size. Partial
 buffers are not handled.
-Add support for metadata mode changes to LPAPlayer to support
 partial frames.

CRs-Fixed: 458904
Change-Id: I8673756b54ae7bca18855d326c85ae1064652514
Noise will be heard if audio sample rate not matched with audio track

When audio sample rate which set to audio track is not the same with
the actual pcm data, noise will be heard. Fix the bug when write 8 bit
pcm samples.

AOSP commit: https://android-review.googlesource.com/#/c/59837/

Change-Id: Idcb0d7b0e9aaa250dd22b758c8337e23d1706049
Signed-off-by: Ming Zhou <b42586@freescale.com>
Signed-off-by: guoyin.chen <guoyin.chen@freescale.com>
libstagefright: support for disabling buffer metadata

- Metada mode video recording is enabled by default.
- use setprop debug.camcorder.disablemeta 1 to disable metadata mode recording.

Change-Id: I422c49c0ace0c3a3e1f4459c7e4bf29e70af763a
Fix build error from commit 3da446303432e640c4c8240bbb2404f7c5dad97d

frameworks/av/media/libmediaplayerservice/StagefrightRecorder.cpp:1465:20:
error: 'PROPERTY_VALUE_MAX' was not declared in this scope
frameworks/av/media/libmediaplayerservice/StagefrightRecorder.cpp:1466:57:
error: 'value' was not declared in this scope
frameworks/av/media/libmediaplayerservice/StagefrightRecorder.cpp:1466:70:
error: 'property_get' was not declared in this scope
make: *** [/android/mydroid-cm10/out/target/product/xt926/obj/
SHARED_LIBRARIES/libmediaplayerservice_intermediates/StagefrightRecorder.o]
Error 1

Change-Id: I346300231f977082314b05e09184ea519b50c719
Revert "frameworks/av: Add metadata mode changes to LPAPlayer"

This reverts commit a4e10040f0f0c7d6bffdaed2e217db6fdfef4c91.
Overlay for omap3 camera devices (from ics)
add support omap3 dec/enc (from ics)
audio: Add compatibility bits to use legacy libaudio implementations

Enable with BOARD_USES_AUDIO_LEGACY, requires the use of the generic
legacy audio shim

Change-Id: I60407b48c2a8f3c9736805f31dcdef280c9aa485

Conflicts:

	media/libmedia/AudioSystem.cpp

Conflicts:
	media/libmedia/AudioSystem.cpp
fix compile

Conflicts:
	media/libstagefright/OMXCodec.cpp
better fix for incoming audio crash on Motorola OMAP3/4 phones

Change-Id: I3aa9bd90780c02858a64d9557ac44d073bd0656c

Conflicts:

	services/audioflinger/AudioFlinger.cpp
 Fix a couple of nasty heap corruption bugs.

- When replacing the buffer pointer with another one, the allocated
  length wasn't updated. As the TI encoder relies of those being matched
up (it e.g. does a memset(pBuffer, 0, nAllocLen) at certain places), this
could lead to random memory being overwritten (or to a segfault when
reaching the end of the mapping)
- When replacing the buffer, the old buffer wasn't saved and restored
  before calling freeBuffer. This led to a different address passed to
free() than was returned by malloc(), could lead to all kinds of weird,
undefined behaviour.

Change-Id: I225db23eba2c015ecf40f13d5afb168beb129539
OMXCodec: prevent codec/quirks mismatch

Change-Id: I6e97f5fb5ec1fbb098c954c41319221ddb86b08b
fix video play/rec
add more quirks