camera: Ignore CAF_RESTART callbacks

 * Ignore these callbacks which are sent by Samsung camera drivers, as
   they can cause a deadlock in normal operation.

Change-Id: Iae59eb0d3050751c1a4d372c80d430a8ba957252
AudioTrack: correct typo

Remove the extraneous dash when initializing status

Change-Id: Ie18e380ec6c2c45f88202c860573b583fd2a8129
audio: Increase kFastTrackMultiplier from 1 to 2

- Fast Track implementation is modified to use single
  buffer in kitkat. This is causing audio breaks when
  long DTMF tones are played
- Fix is to use double buffering to avoid audio breaks

Change-Id: Idc811ee7fe0d7f49bfa95ad34bc6e88bd04b734e
CRs-Fixed: 561567
audio: Use composition instead of multiple inheritance

- AudioTrack is derived from BnDirectTrackClient along
  with RefBase to receive the notifications from
  AudioFlinger in tunnel/LPA mode. This is breaking
  binary compatibility for the clients which use native
  AudioTrack directly instead of Java based AudioTrack
  API
- Fix is to use composition here instead of inheritance

Change-Id: I9fd2c61cff5629924e3b08f63559679e0263bcfd
CRs-fixed: 607574
libmediaplayerservice: be careful what you include
cause it just might cause *bugs* which will take you a long time to find and fix

Change-Id: Ie774813858b2f9a6afc1165bddd0351ff153975d
Merge "AudioTrack: correct typo" into du44
Merge "audio: Increase kFastTrackMultiplier from 1 to 2" into du44
Merge "audio: Use composition instead of multiple inheritance" into du44
Merge "libmediaplayerservice: be careful what you include cause it just might cause *bugs* which will take you a long time to find and fix" into du44
Libstagefright: fix mute issue for h.264 and MPEG4

- use kKeyRawCodecSpecificData to find metaData for both MPEG4 and h.264
- For h.264 encoding, there should be two csd (SPS and PPS), csd-0 and
  csd-1
- For MPEG4 encoding, MetaKey name should be csd-0
CRs-Fixed: 600462

Change-Id: Ifd5a1c578bbbebda498aca502db18e21c3d12fd4
av: fix audio stutter

Never try to use the fast path if resampling is required

Unless AudioFlinger was built with FAST_TRACKS_AT_NON_NATIVE_SAMPLE_RATE
enabled, AudioFlinger would deny using the fast path (and internally
fall back to the normal codepath) when it realized that resampling
was required. Since the buffer size calculations within AudioFlinger
don't take resampling into account properly (see the calculation
below "AUDIO_OUTPUT_FLAG_FAST denied" in audioflinger/Threads.cpp,
just below the hunk that this patch changes), make sure AudioTrack
doesn't try to use the fast path if resampling is required.

This removes the possibility to enable
FAST_TRACKS_AT_NON_NATIVE_SAMPLE_RATE in AudioFlinger since it
AudioTrack now won't even try to use the fast path for content
that requires resampling, regardless of the AudioFlinger configuration.

Fixes audio stutter in some apps on some smdk/omap4 devices.

Change-Id: I6b0856908fe40b3c980faa136e8267459d2b6880
Audioflinger: add missing code for FM volume

 * If we used a proper MR2 audio HAL, this wouldn't be needed,
   but building FM support with the hacked up MR1 audio HAL we
   uses fails miserably. Adding this back fixes that.

Change-Id: If2f6ee9e417732eaf4df8718bf73b2dfd1062011
Libstagefright: Fix DP Parsing issue with mpeg4 SP,ASP

- DP partition logic returns true for mpeg4 clips with SP ,ASP
  profiles.
- Fix the issue by parsing additional fields in the ESDS atom

CRs-fixed: 556619

Change-Id: I69c719011e1a0d2a0b0ae5a9b504b7cce443866b
Merge "Libstagefright: Fix DP Parsing issue with mpeg4 SP,ASP" into du44
Merge "av: fix audio stutter" into du44
Merge "Audioflinger: add missing code for FM volume" into du44
Merge branch 'du44' of https://github.com/DirtyUnicorns-KitKat/frameworks_av into HEAD