libstagefright: Handle unsupported codec metaData

Modification done in StagefrightMetadataRetriver
to handle NULL return for meta data if codec is
unsupported by extractor.

Change-Id: I905cec5ee91b098d99e1935437b562d2d9206381
Track volume should be maintained even if track is restored.

If track is dead when it set it`s volume is zero, track
sound should be mute even if it is restored. But now, we can hear track sound when it dead.

Change-Id: I79f34c6c7d6f535baba813fd3b8ba8e55cac8ad7
The progress bar of next song is not properly started in offload use case

The gapless data was not passed to HAL, which in turn to DRV/FW.
During start of every song gapless information is passed to
DSP to indicate the reset of hardware pointer. This pointer
is used in getting the render position. If some files does
not have gapless header, this value is not passed to DSP.
This causes wrong updation of render position for the next song
in the loop mode. This change will update the necessary information
to DSP appropriately.

Change-Id: I3dc71f6fb38e7067610813503ff60340e7dcb815
Signed-off-by: samaga Prasanna Krishna <samaga.krishna@intel.com>
Signed-off-by: Mazhar <mazharx.sameullah@intel.com>
libstagefright: ACodec: Add missing message handling

Add kWhatSetParameters as a valid received message in state
OutputPortSettingsChangedState.
Without this fix, the mediaserver can end up in an endless loop
consuming significant extra cpu power.

Change-Id: I9719f1698bf411914eb753d3c349a15b9fbf9df6
Signed-off-by: Per Persson <per.persson@intel.com>
Signed-off-by: Persson, Mikael <mikael.persson@intel.com>
Signed-off-by: Fagerstedt, Axel <axel.fagerstedt@intel.com>
Signed-off-by: Yong Yao <yong.yao@intel.com>
audio: Fix PCM offload for NuPlayer

 * PCM offload is wonderfully broken on NuPlayer in the current CAF
   codebase.  Force the format to an offload format to get it
   working again.

Change-Id: I2ebfa4afc2e0a2bd7e7b6df4595449a2705f1eab
libstagefright: matroska: add missing include dir and header

Change-Id: Ied9c32307e207d171182b83f65368b34c7204651
libstagefright: matroska: ifdef out MEDIA_MIMETYPE_AUDIO_DTS for non-qcom

Change-Id: Ib31f25393883f556c3ed529dca1d61916fbd228c
libstagefright: matroska: Make new extractor paths conditional to QCOM

This code path includes things that are implemented by
ExtendedMediaDefs and ExtendedUtils, both of which are
QC enhancements

Change-Id: I9bf30e8ce039aaad32d58d0bf379f77312037c58
libstagefright: matroska: Fix ENABLE_AV_ENHANCEMENTS ifdefs

Change-Id: Iaeaa998b6434047260d7c586b188571b63d16090