Media: adding initial compat files for media

Origin: vendor
Forwarded: no
Media Recorder: adding initial support for media recorder (cam)

Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com>
hybris/common/jb: Making libhybris buildable x86 64

Origin: vendor
Forwarded: no
platforms/Makefile.am: temporarily disabling fbdev to avoid ftbfs

Null is the platform used by Ubuntu Touch.

Origin: vendor
Forwarded: no
common/hooks.c: adding NVIDIA HACK (needed by Nexus 7)

Origin: vendor
Forwarded: no

Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com>
jb/linker.c: allow debug of the linker and hooked symbols

Origin: vendor
Forwarded: no
jb/linker.c: ubuntu touch uses /dev/alog instead of /dev/log

Origin: vendor
Forwarded: no
hooks/shm: fixing logic with cond is negative (error)

Origin: vendor
Forwarded: no
jb/linker.c: reduce debugging output for prelinked libraries

Origin: vendor
Forwarded: no
Adding headers and test to support the Android Audio HAL

Headers originally from AOSP 4.2.2_r1.2, changed to have the correct
include path from other files provided by libhybris.

Origin: vendor
Forwarded: yes
hooks.c: no need to map strcasestr

Glibc implementation has a different behavior (e.g mako's android audio
HAL fails to parse alsa ucm file), and mapping is not needed.

Origin: vendor
Forwarded: yes
hooks.c: handle invalid mutex in pthread_mutex_destroy

Patch originally done by Ricardo Mendonza (ricardo.mendoza@canonical.com)

Origin: vendor
Forwarded: yes
Implement get/set property via property service

The property service is running inside the android init daemon and
creates a socket in /dev/socket/property_service which we can use
for setting properties (getting is done via an extra android patch
to add 'get' and 'list' support in the property service).

Origin: vendor
Forwarded: no
input_compatibility_layer.cpp: avoid blocking on exit/shutdown

Origin: vendor
Forwarded: no
camera_compatibility_layer.cpp: don't explicitly release frames

Release is not necessarily implemented in some devices, so don't
explicitly release the frames to avoid possible crashes (manta). Also
abandon texture only on disconnect.

Patch by: Guenter Schwann <guenter.schwann@canonical.com>

Origin: vendor
Forwarded: no
media: adding files for media codec support with stagefright

Port of the MR available at
https://code.launchpad.net/~jhodapp/phablet-extras/libhybris/+merge/176280,
by Jim Hodapp.

Origin: vendor
Forwarded: no
common/hooks.c: handle null attr in pthread_rwlock_init

Origin: vendor
Forwarded: no
properties.c: better handling for name and value sizes

Origin: upstream
Fix last argument to pthread_cond_timedwait

pthread_cond_timedwait() last argument is const struct timespec *
We are mistakenly passing const struct timespec ** which leads to
a failure.

Origin: upstream
Change the SurfaceTextureClientUbuntu API to be singleton-based to work around GStreamer playbin weirdness.

Origin: vendor
Forwarded: no