mfcdec: Compensate race condition in video thumbnail generation

Calling the decoder immediately after encoding a video often
trips on the ongoing mfc buffer flushes from the encoder that has
just shut down, and fails due to the unavailability of any buffer of
sufficient size. If MFC_DEC_INIT fails, give it 100msec and try
again. This resolves the blank thumbs when switching to the
gallery in the same session that a recording was made.

Change-Id: I13b1be8757b314e1c903a0570f9b053550164616
exynos4x12: liblights: Fix tablets with button backlight

Also, respect the lights API and return errors when attempting to
configure an absent light ID.

Change-Id: Ida430fba2fbfaf646f7e02ce2bd7d9134ae8d917
Fix crash on boot

There is a race condition where the sysfs-vsync thread accesses a value
(in particular a function ptr) that may not have been set yet as this
is done externally.

Change-Id: If1afb1533344e994398b9b6f5bd3dfb125313416
hwc: Update to API 1.1

Change-Id: I59a1102bb4d8e9622362c8909b122a3b99c656fd
Revert "hwc: Update to API 1.1"

This reverts commit 99f63f2a4fb8037505b34e7665e9b1d717f28d6c.
Derp, this isn't ready to go in.
Merge "Fix crash on boot" into cm-11.0