Disable offloaded audio for AV playback
Merge branch 'cm-11.0' of https://github.com/CyanogenMod/android_device_samsung_msm8974-common into cm-11.0
Revert "Disable offloaded audio for AV playback"

Do it in HLTE device tree

This reverts commit c37e3dc624f035c747a5c20ad6b93b7d274bef1d.
Merge branch 'cm-11.0' of https://github.com/CyanogenMod/android_device_samsung_msm8974-common into cm-11.0
msm8974: consumerir: Convert transmit input from ms to pulses

According to:

 https://developer.android.com/reference/android/hardware/ConsumerIrManager.html#transmit%28int,%20int[]%29

the pattern is supposed to be in ms.  Apparently Samsung and HTC
in versions 4.4.2 and earlier of Android were treating this as
the number of pulses instead of ms.  This is what our HAL is
supporting because it mimic'ed what the vendors were doing.

However, we should switch to the correct spec of the pattern (ms)
and eventually this will cause apps to converge on the right
patterns.

Currently, this change will break half the existing apps and cause
the other half of the apps to stop being broken and to start
working.

Change-Id: I87cedcc8e0b85d7b96ed63c7d4f82cc53ecb4ecb

Patchset: 1
http://review.cyanogenmod.org/#/c/71258/
Merge branch 'cm-11.0' of https://github.com/CyanogenMod/android_device_samsung_msm8974-common into cm-11.0
Merge branch 'cm-11.0' of https://github.com/CyanogenMod/android_device_samsung_msm8974-common into cm-11.0
Merge branch 'cm-11.0' of https://github.com/CyanogenMod/android_device_samsung_msm8974-common into cm-11.0
Merge branch 'cm-11.0' of https://github.com/CyanogenMod/android_device_samsung_msm8974-common into cm-11.0
Merge branch 'cm-11.0' of https://github.com/CyanogenMod/android_device_samsung_msm8974-common into cm-11.0
Merge branch 'cm-11.0' of https://github.com/CyanogenMod/android_device_samsung_msm8974-common into cm-11.0
Merge branch 'cm-11.0' of https://github.com/CyanogenMod/android_device_samsung_msm8974-common into cm-11.0
consumerir: Dynamically grow an appropriately sized buffer

The IR pulse sequences are written to a local buffer to be
passed to the kernel.

Previously, we doubled the fixed size buffer (from 1K to 2K)
to work around a crash that was occurring for long sequences.

Another crash has been found when using Smart IR Remote and the
POWER function of the TX P42X10E remote by Panasonic (TV category).

Rather than double the size again and wait for another counter-
example, dynamically allocate the buffer and grow it as needed
to handle any IR sequence.

Change-Id: Id4fb799d8a5ad4242e04a68e6cc6436a14f4d2d0
Merge branch 'cm-11.0' of https://github.com/CyanogenMod/android_device_samsung_msm8974-common into cm-11.0
Merge branch 'cm-12.0' of https://github.com/CyanogenMod/android_device_samsung_msm8974-common into cm-12.0
msm8974-common: Update media_codecs for L

Change-Id: I43e9f833033751fe65f01bd3bcc9f320cdf538be
msm8974-common: use qcom bionic optimization

Change-Id: Iac9174a2ac0d41319ca0c2e66f6ae7c94bc7b3f2
msm8974-common: Remove sepolicy
msm8974-common: Disable overlay for now
msm8974-common: Fixup CameraWrapper for L

Also clean up code and get rid of warnings.

Clean up from Arne Coucheron works on other samsung wrappers.

Change-Id: Icab1b9ec17710861f735a05dcdd87dac932c63c2