.

Change-Id: I567c0e0bfb0913d2c71395fc182df3da858ae473
libhardware: Add ifdefs for QCOM audio features

Change-Id: I9d8fd69c1865d8746850f676a8091a968a42750d

Conflicts:
	include/hardware/audio.h
libhardware: Add ifdef around allocSize

 * Non-QC devices with prebuilt grallocs hate this.

Change-Id: I57ce7547e99ec0cf40c4f05f3742348dec4e2d9d

Conflicts:
	include/hardware/gralloc.h
usbaudio: Add QCOM ifdefs

Change-Id: Ifd7cc6e1b7615718ae6eb04b3b9dd850148009a3

Conflicts:
	modules/usbaudio/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 output device routing

Fix issue with commit a35e783 causing the output device to reset back
to the hard coded value of CARD_ID after a new output device is
specified.

This happens because out_set_parameters() receives a single "routing"
key/value pair just after setting a new output device. The if/else
statement would then cause a reset of the output device back to CARD_ID
because the "routing" message does not contain a card or device id.

Change-Id: Ib7c7eb7ef675ae371033a7ae7ce73782cac2c898

Conflicts:
	modules/usbaudio/audio_hw.c
Revert "libhardware: Modify ifdefs for legacy DirectTrack"

This reverts commit 2b2eca1387af113b53dfb25219562f5f36183c09.
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

Conflicts:
	include/hardware/audio.h