libhardware: Add sound card status parameter

Currently audiod monitoring sound card status instead of adsp status.
This is a bug fix to monitor sound card. Audio HAL is going to use
sound card key to check sound card to status.

Change-Id: If2eba2aad2a70a414c8b258bba1ecd8f3a4b8df1
hwcomposer: Add HWC_BLIT compositiontype value

- HWC_BLIT this layer will be handled in the HWC, using a blit engine
- setting this will inform Surfaceflinger to flip FB_TARGET

Change-Id: I25d19ec41b57863d451c3e390109c912faf1381c
libhardware: Modify ifdefs for legacy DirectTrack

Change-Id: Id3a8adc3bd3b8fe5973e359b5268671f6fd26cd4
libhardware: Add fix for offload playback.

-Offload mode requires frame size to be unity.
-Tunnel encode changes results in a invalid frame size being
 returned to audio flinger.
-Add 24 bit PCM format as exception to linear pcm.

Change-Id: I23d1960b0a493da20f48de788bb13e6f055ebe03
lights: Add music light support (1/2)

Change-Id: Ia2731f17f993bd0f4d61c69ee77fa74d77854396
usbaudio: Fixing return value from out_write

-pcm_mmap_write() returns 0 for successful write and a negative
error number for errors
-out_write always returns a positive value
-fixed return value as per pcm_mmap_write() returned result

Change-Id: I6bbca5df9a1eb9ceae492a8cf5f478189cedbb12
CRs-Fixed: 564094
audio: Add WMA Format suppport for offload playback

Add WMA Format suppport for offload playback.

Change-Id: I35e69bd1a21ba54211bcd688d7bba115f969b98f
audio: add set_parameters for listen hal

Add listen hal specific set parameters function so that Listen
service can call Listen hal directly, by passing audio hal. This
is needed since set_parameters call in audio hal does not guarantee the
correct return value is returned for any parameters set.

Change-Id: I647b9e7f841c8157e4eb597655166ea863a00925
audio: Parameter to indicate ADTS compressed data

- Add a new offload parameter for ADTS compressed data.
This parameter will be used by usecases like widevine.

Change-Id: I526d119368810f486875a03834e221aabfaacc78
libhardware: Add audio power hint

Change-Id: I5b03cc060356da23b6941c5937ef217c70dbf6dd
libhardware: Define queriable attribute for max. WriteBack width

We define a new queriable attribute for the maximum width supported
by WriteBack.

Change-Id: I82a1fe6b10c5650a4a5358eab5c52d46bd5f19e3
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
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