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
msm8974: Move toward new cm-12.0 branching system

Change-Id: I4f58e03efe3b42a5cf3fcea28aa7e0e9fa7dbe93
msm8974-common: Add missing ","s in cm.dependencies

Change-Id: I04f156cfbb18acf376997d92dc9bb1c3a843fab0
msm8974-common: Fix hardware_qcom_media in cm.dependencies

Change-Id: If6561a839df4df4c1b1a6339401c2d720fad3fdf
remove classpath

Change-Id: I517ccaddd76450e3d68f1979ddf95452ed260da1
msm8974-common: enable legacy mmap

* Needed for pre-lollypop libs

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

Change-Id: Iac9174a2ac0d41319ca0c2e66f6ae7c94bc7b3f2
msm8974-common: Enable Minikin text layout engine

Change-Id: Ief171df1b01c9a69501607fac3d71ea38fc49877
msm8974-common: include an expanded selection of fonts

Change-Id: Ia34fd24bdd6d572c178e006f7a5a31d014159143
msm8974: sepolicy: Update based on upstream changes

Upstream renamed "system" to "system_server" and added the
gpu which is not a duplicate.

Change-Id: I5ca5098c653f09c7901343d0ae71793f6eb21ab8
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
msm8974-common: Camwra: Add getInt64 method needed by vendor lib

Change-Id: I9c6cba67f6217f5f234272b38391e571b6d32b5f
Signed-off-by: arter97 <qkrwngud825@gmail.com>