audio: Add support for FLAC in compress offload path

- Add new audio format for FLAC
- Add FLAC in valid formats list
- Add bitWidth in offload info

Conflicts:
	include/system/audio.h

Change-Id: Ic716aff8b7cdb28b03f32f686eca33ff0beb981c
Merge remote-tracking branch 'cm/cm-11.0' into du44

Change-Id: Ib2d2d4a62874c95f940c4ed77b0576dac526db55
init: Add support for Samsung's bootchg command line

Samsung's pre-kitkat bootloader used androidboot.bootchg=true|false
to indicate offmode charging or not. With the kitkat bootloaders,
they have switched to the AOSP way of using androidboot.mode=charger
to indicate that offmode charging mode is active. This will then
trigger the charger class.

With this patch, we can get rid of lpm.rc and init.qcom.lpm_boot.sh,
and instead use the charger class to support offmode charging. This
way we can support offmode charging for both pre-kitkat and
kitkat bootloaders at the same time.

Change-Id: Ida8f4327e5a5fbf07e7ee44586461ddef33431be
Dedupe _GNU_SOURCE and ucontext.h definition and inclusion, put them in sane locations.

Change-Id: Ib61db11ec1a00ca675820da8dc916f7ce03e445e
audio: Unhide PCM offload enums

Change-Id: Iab074ae64d293781769032cc902e72a93374679f
Merge "Dedupe _GNU_SOURCE and ucontext.h definition and inclusion, put them in sane locations." into du44
init: Fix memory corruption when sanitizing platform paths

This commit fixes code that incorrectly increments s when it
hits the terminator character of the string being sanitized.
This means it will randomly start trashing memory beyond the
end of the string being sanitized until it happens to hit two
NULs (\0\0) which will break it out of the loop.

Change-Id: I76553d7f183236a78a0bc7b408e92559b98f732f
Merge https://github.com/DirtyUnicorns-KitKat/system_core into HEAD

Conflicts:
	include/system/audio.h
	rootdir/ueventd.rc