audio: fix no audio when playing dtmf tones

AUDIO_OUTPUT_FLAG_DIRECT is passed for isCompatibleProfile()
which would match incall music profile even for regular dtmf
tones. As a result output stream for incall music case is
selected. Fix by passing the input parameter flags along
with AUDIO_OUTPUT_FLAG_DIRECT.

CRs-fixed: 568696
Change-Id: Ie5a11f21a01c65fb07e9ae1268cf03b6744f9f6e
libhardware_legacy: Add property for A-V playback in offload mode

Add a and check for property for enabline tunnel audio video
playback.

Change-Id: I8ebbfe106feac4a991de05a0db79ac64493d0129
audio: fix no audio playback issue in recorder app

When audio clips recorded using voice recorder app is played,
openoutput() in audio policy manager is called with flags 0 and
will match the incall music profile and try to open incall music
direct output stream. Fix by looking for direct output profiles
only when AUDIO_OUTPUT_FLAG_DIRECT is set in the flags.

Change-Id: I3f6fdec1dfdc4c7642d308108199369cfc6d2409
libhardware_legacy: Add ifdefs for non-QCOM hardware

Change-Id: Ic39f17d4626dc9970edf5c5466b3ccd6d16cbd3e

Conflicts:
	audio/AudioPolicyManagerBase.cpp
Merge pull request #1 from SlimRoms/kk4.4-caf

Kk4.4 caf