FM Radio: Add support for FM Radio in Android

Creating interface and framework for using FM Radio
RX and TX from different vendors.

Change-Id: I1a71aed01bfffdddfabf1cdfbfa3707cb1ed016b
Signed-off-by: Benn Porscke <benn.porscke@stericsson.com>
Adjusted camera parameters backported from ICS

Change-Id: I976bc539ed1b856a120ffcac6ca742c1bef15280
Hacks for adust orientation of preview and front camera

Change-Id: I17c5aae6933f0300e209e3f49ebe3ae248b8f18e
libmedia: Add ICS AudioStreamType constructor

Needed by some pre-jellybean camera blobs.

Change-Id: I9281e2a736d9b3495bddaf612e8eab7fcad97bdf
Fix ifdef!

Change-Id: Iaf00d2bb572bb5b307782d344749b75758155086
frameworks/av: Fix for audio playing on speaker when headset is
removed

- Currently LPA playback latency is set to zero. Because of this
  checkDeviceMuteStrategies() doesn't mute the stream while changing
  the devices. Hence music plays on speaker while device switch
  from headset to bluetooth.
- Set LPA plyback latency to 96ms as normal playback.

CRs-fixed: 417245
(cherry picked from commit 7108199eaa25afdf4ec29174147399664aa85d41)

Change-Id: I5798fb2b1163389e2afd21e34118a39492694a89
frameworks/av : Fix for NULL pointer deference when Audio Record fails

-- mRecord will be NULL when the AudioSource start fails due to wrong
value from getMinFrameCount.
-- In the destructor mRecord is accesed without any condition check
which results in crash.
-- Added check  to see if mRecord is not NULL before deleting it.

CRs-Fixed: 426561
(cherry picked from commit 781ef4e60c5e1477f1e79b61855d95263cea0725)

Change-Id: If4785136f77eeb071619388b6325546853ab0d00
libstagefright:Buffer size needs to be set on Native Window

In SoftwareRenderer constructor, setting of buffer size was missing, due to
this buffer size of the previous instance was being used by native window.

CRs-Fixed: 420228
(cherry picked from commit b1a38f329a4f973562241f8b8f80c622b654d919)

Change-Id: I1ec05a6ebe2552132251824523731eaaca4f09bf
audioflinger: Fix to release wakelock after closeoutput

-In DirectTrack destructor, closeOutput is called after
releaseWakelock is done. This may sometimes result in
power collapse happening even before actual close
sequence of Audio path is completed and will result
in high power consumption.
-Release wakelock only after closeOutput is done
in directtrack destructor.

(cherry picked from commit fb48938f73e335ac66c83e6adba96431e050ec94)

Change-Id: Ib8d05a38f28d7e2f0bdf9e420e5db526cf874bc6
CRs-Fixed: 430786
Change rotation degree manament!

Change-Id: Ie6171649ce77a47b8d1c997565a0d7f96c9c8833
libstagefright: fix software webm decoding with qcom

Change-Id: Ica3371d4c99e9f2ef537f89cea98b27a84cf1f90