audio_policy : Fix for incorrect input device selection

BLUETOOTH_SCO_HEADSET is not avaibale in input devices list
for recording usecases. Add the same to allow VOIP applications
to select BLUETOOTH_SCO_HEADSET as input device when
BT is connected.

Change-Id: I5d5010ab396f85bf58573943c91fd815f39f57c1
CRs-fixed: 712950
audio: Force audio to Speaker if requested during VOIP call

getDeviceForStrategy is returning AUDIO_DEVICE_OUT_USB even
when setForceUse is called with Speaker during VOIP call.
Actual Intention is to route audio for phone strategy to USB
device even after setForceUse is called with Speaker when not
in voice call. It is supposed to exclude VOIP call too

Added additional check for MODE_IN_COMMUNICATION so that
it returns SPEAKER when setForceUse is called with speaker

CRs-Fixed: 762521
Change-Id: I1c51128cc1c7bfce1cf6f1fde60b428d3a9379fc
frameworks/av: Integrate DTS M6/M8 decoder

Add support to integrate the DTS M6/M8 audio
software decoder

Change-Id: I78434ee537743260fa8948a80f07e73df53fe0cf
Signed-off-by: Jitendra Naruka <jitendra.naruka@dts.com>
framework/av: Integrate Eagle framework to support HeadphoneX

Add route node support in Eagle framework for HeadphoneX 1.1
audio post processing feature

Change-Id: Iea2e88bd29bf4487b22386df1d6712a5b69c0b4e
Signed-off-by: Jitendra Naruka <jitendra.naruka@dts.com>
Fix format conversion in DuplicatingThread

DuplicatingThread converts PCM data from the format of the source thread
to PCM_16BIT (if different) before writing to all connected output tracks.
This needs to be done just once before writing to all tracks.

CRs-Fixed: 752896
Change-Id: If05254f87f9198e09a0fa3c4e857afbb53ae7073
audioflinger: fix duplicating thread output buffers clear

Also clear mix buffer in DuplicatingThread::threadLoop_mix()
instead of just sink buffer when output threads are not
ready.

Bug: 18262127.
Change-Id: I4c22bbeaccdcc8d7c10c5882dde3439eb73d6ede
(cherry picked from commit 02b5708776ba2a9b4ff8c09008483aef7dbe38c7)
Merge "frameworks/av: Integrate DTS M6/M8 decoder"
Merge "framework/av: Integrate Eagle framework to support HeadphoneX"
libstagefright: Small buffer hint for PCM offload

Audioplayer when explicitly requesting PCM offload
needs to inform audio track that small buffers have
to be used. This is required to make sure that pcm
offloaded tracks work very similar to deep buffer
path. This hint is passed to the HAL which makes
the write calls are blocking. Handle the new
properties for pcm 16 and 24 bit offload in policy
manager

CRs-fixed: 749148
Change-Id: Ia7b2260ec6e4821a7dbbfcc3ec7719c334aa40f6
stagefright: Add more latency profiling

Measuring the startup latency from StagefrightRecoder start to
first frame camera callback. Also add profiling to CameraSource
start and StagefrightRecoder start.
Add profiling to measure reconfig.

Change-Id: I037da0b9bfbcea01522b19310d142247d4f02e96
stagefright: extendedstats: Synchronize logging mechanism

Add a lock to all public functions of extendedstats to prevent
clients from modifying the same resource at the same time. For example
two clients can call getLogEntry and without locks one will end
up traversing the vector while the other is modifying it, leading
to a crash.

Change-Id: I908e0ebcc01026c258554214338f43c5d1226eb7
Merge "audio_policy : Fix for incorrect input device selection"
Merge "audioflinger: fix duplicating thread output buffers clear"
Merge "Fix format conversion in DuplicatingThread"
Merge "audio: Force audio to Speaker if requested during VOIP call"
NuPlayer: Add support for 24bit/16bit pcm offload playback

- Add support for 24bit and 16bit pcm offload playback

Change-Id: I3ba3304108b2ab5588a7e7b37338c5a29f57d411
CRs-Fixed: 761473
audioflinger: Support hardware accelerated effects framework

Add support to enable hardware accelerated effects in stream leg

Change-Id: Id91eb85a747f807913276a7f356eb3d0dbed54d9
audioflinger: Support HPX in hardware accelerated effects

Add support to enable HPX in hardware accelerated effects
mode

Change-Id: I82a07ada0739a8084279de790730ebe02c8bcdde
Merge "audioflinger: Support hardware accelerated effects framework"
Merge "audioflinger: Support HPX in hardware accelerated effects"