audio: fixup ifdefs for legacy VOIP compatibility

A change in Android 4.3 for newer devices broke voip
with apps other then Hangouts as well as caused
random FC's when finalizing a video recording on
some legacy HTC devices (pyramid/shooter/holiday)

This commit allows fallback to old behaviour if the
flag -DQCOM_LEGACY_VOICE is set which seems to be a
common theme across the devices with the issue.

Original patch by Dorian Snyder.
Amended by Matt Filetto to be called properly

Patchset 2: added more ifdefs to fix viber4android

Change-Id: I75c8cb9e1e5937ffed0871f7407b4b219f053cb2
camera: bring back more of the preview metadata workaround.

Fixes issues with switching between FFC and back camera on some devices.

Change-Id: Ie2cef65263816b22e45513cfc639c32b48a49bec