libhardware: Enable MMAP interface in USB Audio HAL

Allow USB Audio HAL to write using MMAP interface
to support USB Audio AoA feature.

Change-Id: If23d2b618277ab64853fc1d778767a95482bedbf
hardware: Add an ifdef to disable id match check

When wrapping HAL modules (for example camera wrapping vendor-camera), this
match check prevents vendor-camera to be loaded because its original name
is camera and not vendor-camera.

Change-Id: If79a941b54d83610638041440db907ae593b2e91
Revert "Remove remnants of HWC 0.x"

This reverts commit 71b9c1fab92727b1463226681d7bd61aac85291b.
libhardware: Add QCOM_HARDWARE ifdefs

Change-Id: I8a903caad9716d5c9571fe4735567ae33a48aefd

Conflicts:
	include/hardware/audio.h
	include/hardware/gralloc.h
	include/hardware/hwcomposer_defs.h
	modules/audio/audio_hw.c
usbaudio: Make the USB audio HAL actually work.

 * Set a default device if none is set.
 * Shush some logging.
 * Only use the mmap interface on QCOM devices.

Change-Id: I790a6733e85b169e645e020fa92608a0d4fea3c2
usbaudio: Provide a way to hardcode the card id

 * Some devices will have secondary sound cards for things like SPDIF.
 * Let's provide a way to hardcode the correct value for now until we
   have framework support for doing this correctly.

Change-Id: I6f3396692f1acc1602491e3a3befea8e04b6c9cf
usbaudio: fix for out->dev->lock remains locked in error case

-out->dev->lock remains locked in error case in out_write()
-Added pthread_mutex_unlock() in the error case

Change-Id: Ibbbd5ced1f9d469cfba3b33a94414d0b94affa8f
CRs-Fixed: 522054