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

Bug: 12824374

Change-Id: Id467e3122008eb8128b42dfc0e9103600c1eef2d
Signed-off-by: Glenn Kasten <gkasten@google.com>
DO NOT MERGE BLE peripheral mode (1/4): change HAL to support service data and service uuids.

Cherry picking ble advertising changes from master to KLP MR2.
b/13137996


Change-Id: I19a3755a4ed16e1ae03368cecee97773c05c1770
Merge "DO NOT MERGE BLE peripheral mode (1/4): change HAL to support service data and service uuids." into klp-dev
audio: Update Listen HAL API for MultiSession.

- Updated the open_listen_session API to pass
listen_open_params.
- listen_open_params will be used to decide whether to open
CDSP or ADSP session.

Change-Id: If797c58f99e877384f46f1f3a504dacf20ae45d1
(cherry picked from commit 652e1a52cf3dde8c692cf2483f5a1c9926cf6e35)
libhardware: Add dirty region field to hwc layer

This change adds dirty region field to hwc_layer_1_t structure to
pass the layer's dirty region information since the previous frame.

Change-Id: I5b107b702636c6b1f662703a29dfda4793c02809
Revert "BT: Multi HF support in libhardware."

This reverts commit d1ffc00695f0403ea0591aa3f38a6b53eb36a857.
libhardware: Add power hint to set profile

 * A PowerHAL can implement support for this hint to receive
   power profile changes from the framework.

Change-Id: Ie1e9e3b827c731cf5a817a0491677e3451fe8678
Merge tag 'android-4.4.3_r1' into HEAD

Android 4.4.3 release 1
Merge branch 'cm-11.0' of https://github.com/CyanogenMod/android_hardware_libhardware into kk4.4