Noise will be heard if audio sample rate not matched with audio track

When audio sample rate which set to audio track is not the same with
the actual pcm data, noise will be heard. Fix the bug when write 8 bit
pcm samples.

AOSP commit: https://android-review.googlesource.com/#/c/59837/

Change-Id: Idcb0d7b0e9aaa250dd22b758c8337e23d1706049
Signed-off-by: Ming Zhou <b42586@freescale.com>
Signed-off-by: guoyin.chen <guoyin.chen@freescale.com>
Merge remote-tracking branch 'cm/cm-10.1'
libstagefright: support for disabling buffer metadata

- Metada mode video recording is enabled by default.
- use setprop debug.camcorder.disablemeta 1 to disable metadata mode recording.

Change-Id: I422c49c0ace0c3a3e1f4459c7e4bf29e70af763a
Merge "libstagefright: support for disabling buffer metadata" into cm-10.1
Merge remote-tracking branch 'cm/cm-10.1'

Conflicts:
	media/libmediaplayerservice/StagefrightRecorder.cpp
Merge "libstagefright: support for disabling buffer metadata" into cm-10.1

Change-Id: I6a7a91d930f7789ca78370f0c0e0e306dad87028
Merge remote-tracking branch 'cm/cm-10.1'