libhardware_legacy: Add support for oneshot WiFi setup

 * For a certain device, we need to wait for the RIL to dump out
   the NV items which contain the WiFi MAC address. This is
   done by starting a service and waiting for it to set a property
   indicating completion. The existing module loader already works
   like this, so we can just use that.
 * Reorder the ifdefs so this works when the driver is not built
   as a module.

Change-Id: Ic69dd5c1087122b3b7d939a8647785bf97b95a0c
audio: Disable sonification on digital USB outputs

 * We don't want to hear touch sounds on our badass USB DACs. Just
   play the damn music, please :)

Change-Id: I08b1c5d672d853fc7116c03cd77b8828881d3a5b
audio: fix offload enabling test parameter

passing NULL as the default to property_get doesn't return false,
it returns random memory junk that evaluates to true... Explicitly
default the state of this property to "false" as a default

Change-Id: Ib2808bf2540b2b4fdf754d489fb44aa5d9e061a8
audio: fix for multi-channel HDMI playback

- Overwrite playback flag to AUDIO_OUTPUT_FLAG_DIRECT
  for PCM_16_BIT multi-channel clips so that HDMI
  profile is used for playback.

Change-Id: Ibf295f506e6ec62ffbd79091361793c18213d494

Conflicts:
	audio/AudioPolicyManagerBase.cpp

Change-Id: Ibf295f506e6ec62ffbd79091361793c18213d494
libhardware: Fix merge damage which was breaking direct output

Change-Id: Ic247e590039c20ace09ed3a19f61e263b1410e96