Permalink
Commits on Nov 15, 2011
Commits on Nov 9, 2011
  1. Merge "Power widget defaults (brightness and sound)" into gingerbread

    rmcc committed with Gerrit Code Review Nov 9, 2011
Commits on Nov 7, 2011
  1. libcameraservice: Support FFCs with reversed rotation logic

    Double mirroring, how does it work? :(
    
    This also does a revert of change I795b216228da46ee98efc8540ada1780d00b18d8,
    ("libcameraservice: Add exceptions to handle the FFC on the LGE star")
    since it serves the same purpose in a better (and generic) way.
    
    Change-Id: I2bcc770ad51bd185103956e80d1a13d5c81c5edd
    rmcc committed Jul 23, 2011
  2. Power widget defaults (brightness and sound)

    Default behavior for the new brightness and sound power widgets
    should be to cycle through all options and treat all of them as
    selected when first configured.
    
    Change-Id: Ie1831a8b7361bcb2dc6e9cc3c6a7d8e69796e6eb
    Spitemare committed Oct 25, 2011
  3. Revert "OMAP: Configuring sample rate appropriatetly for AMR-WB record"

    This reverts commit 4f9d14cc63f8ac4a7195670ea0f7b8abb776dbf8.
    
    Original commit was:
    "StagefrightRecorder was setting the sample rate incorrectly for
    AMR-WB speech codec. This change will configure this setting
    accordingly.".
    This, however, overrides the sample rate selected by
    setParamAudioSamplingRate and causes all audio to be recorded in its
    lowest sample rate, resulting in significantly degraded audio quality.
    
    Change-Id: I341a58ad4eaef06422f0f026b92155ab54294c21
    nexx committed with rmcc Nov 6, 2011
  4. Merge "audioflinger: Add support for the LGE star's FM radio" into gi…

    …ngerbread
    rmcc committed with Gerrit Code Review Nov 7, 2011
  5. audioflinger: Add support for the LGE star's FM radio

    Unlike qcom, FM isn't enabled by setting a magic output device,
    but by setting a specific FM audio mode. So set that mode instead
    of using the qcom logic of output routing.
    
    Change-Id: Ie5851b33aa9260dee6183be894a600db7a98350c
    rmcc committed Nov 7, 2011
Commits on Nov 5, 2011
  1. framework: Add a board option to specify a touchpad input id

    zeus and zeusc (Xperia play gsm/cdma) have a synaptics touchpad
    that is detected as a touchscreen. The InputReader has the facilities
    to handle touchpads but the are not used.
    
    This patch adds TARGET_TOUCHPAD_INPUT_DEVICE_ID, a boardconfig option
    that allows devices to specify the input device id of the touchpad
    and they should work correctly.
    
    This also removes the previous touchpad code that was exclusive to the
    zeus board and which will now be moved to the device repository.
    
    Change-Id: Ib1ff12af87e5da8ba334f8fa14fa8ba8ee034800
    defer committed Nov 5, 2011
Commits on Nov 3, 2011
  1. media: Make HAVE_FM_RADIO play nice with OMAP_ENHANCEMENT

    OMAP_ENHANCEMENT devices can use CM's FM app (and stack)
    without using HAVE_FM_RADIO, but the volume controls are lost.
    
    If the target device's master volume affects FM, using
    BOARD_HAVE_FM_RADIO is sufficient.
    However, if a specific FM volume control is necessary,
    HAVE_FM_RADIO needs to be used (and the volume functions
    implemented in that device's HAL)
    
    Change-Id: I00c46727a6f09cdd0cc11265a0a94a5a5aa63721
    rmcc committed Nov 3, 2011
Commits on Oct 30, 2011
Commits on Oct 29, 2011
  1. Mediadefs: Allow use of mime types keys for all

    This table is used in a lot of aosp forks : Tegra, Moto Omap3/4...
    
    Safe part of OMAP_COMPAT patch
    
    Change-Id: I0ca47b6bf503731b379c7b2b57f5c6f41080bb45
    tpruvot committed Oct 29, 2011
  2. Maintain separate media volumes for when the headset is and is not pl…

    …ugged in.
    
    When a headset is plugged in, the last media volume set for a headset is restored.
    When the headset is unplugged, the last media volume set for the speaker is restored.
    This enables, for example, keeping media volume at 0 normally to avoid unexpected
    sounds from the speaker, but having it automatically turned on when you plug in a headset,
    since you would presumably be plugging the headset in to listen to something.  Or, if you
    crank the volume on the speaker, you won't suffer hearing damage if you forget to turn it
    down again next time you plug in a headset.
    
    Whitespace fixed.
    
    Added headset icons to volume panel.  Now shows a headset icon
    when changing volume with a wired headset plugged in.
    
    Added fitsnugly's icons
    
    Change-Id: I5965cb165433368dd858b3ba06d487c89403f7fa
    bkrodgers committed with cyanogen Sep 15, 2011
  3. Merge "CacheManager: fix issue with expire time set to "now"" into gi…

    …ngerbread
    cyanogen committed with Gerrit Code Review Oct 29, 2011
  4. Quiet Hours Haptic Feedback (1/2)

    Part 2 : http://review.cyanogenmod.com/#change,9429
    
    Allow haptic feedback to be controlled via quiet hours
    
    Change-Id: Ic168185e09246fa104a98e77413a6e929bf4e930
    Danesh committed with cyanogen Oct 27, 2011
  5. Merge "Updated Swedish translations" into gingerbread

    cyanogen committed with Gerrit Code Review Oct 29, 2011
  6. Merge "frameworks: Updated Italian translations" into gingerbread

    cyanogen committed with Gerrit Code Review Oct 29, 2011
  7. (1/2) Lockscreen calendar now supports all-day events, event descript…

    …ion and location, new calendar icon
    
    * Lockscreen calendar now displays all-day events in correct timezone.
    * All-day events display as localized "Thu Jul 4" instead of "Thu 5:00 PM" (date instead of time).
    * Added event location and event description on newlines underneath title, if either are set.
      (Can toggle display by: Don't show; Show first line; Show all)
    * Use calendar icon instead of alarm icon for calendar, and alarm icon for regular alarms.
    * Adjusted lockscreen layout so widgets fit better:
      moved "now playing" to directly above music controls in portrait mode
      moved music controls to bottom left corner in landscape mode
      moved album art and "now playing" to right of music controls in landscape mode
      "now playing" text appears over tabs/rotary/rings widgets instead of behind
      album art resized smaller in landscape mode
    * Music "Now playing" widget now appears correctly in landscape and portrait modes
    
    Change-Id: I9f1c500fe5a2a5e84cedcee822b827a09e063f1c
    pragma78 committed with cyanogen Sep 27, 2011
  8. Merge "Traditional Chinese: Update translations" into gingerbread

    cyanogen committed with Gerrit Code Review Oct 29, 2011
  9. Allow LED setting by category (Framework) (1/2)

    Change-Id: Ib8c08f40d54317164adee694554598b281f98a09
    pawitp committed with cyanogen Oct 6, 2011
  10. hiding dBm display when in airplane mode

    showing -oo (infinity) when no signal
    
    Change-Id: I59242a960326e7e6d4518db2ec7140370f14590b
    Thomas Schachtner committed with cyanogen Aug 5, 2011
  11. frameworks/base: surfaceflinger: Increase min texture width limit

    Increase minimum texture width limit to 480
    and it should be multiple of 16 for
    vertical stripes optimization.
    
    (cherry picked from commit 624055c0927097e7db1ebc6fe025f6c66b9bca01)
    
    Change-Id: I24d1396842590c0c39b64b80420148e26efe1772
    Omprakash Dhyade committed with cyanogen Sep 23, 2011
  12. frameworks/base: surfaceflinger: Use vertical quads for 90/270 orient…

    …ation
    
    Use vertical quads for 90/270 orientation, this improves
    cache performance as buffers are read vertically
    in 90/270 orientation.
    
    (cherry picked from commit 2a41c9ab091088e53fa1088417ec61b33072cff9)
    
    Change-Id: Ib52ac0da962b16ab68ac13ba84bc231ae4f25dca
    Omprakash Dhyade committed with cyanogen Sep 7, 2011
Commits on Oct 28, 2011
  1. Merge "PowerWidget : Sound mode fix" into gingerbread

    rmcc committed with Gerrit Code Review Oct 28, 2011
Commits on Oct 27, 2011
  1. Stagefright: Return error if codec takes too long to return a buffer.

    There are many scenarios where the codec may not return a valid buffer.
    In such a case, the OMXCodec::read() call hangs indefitely. Therefore,
    wait() call is replaced with waitRelative() so that it timesout after a
    few seconds and we exit gracefully.
    
    (CM: Restored change after loss in OMAP merge)
    
    Change-Id: Ie03c5d1e979b71f6253efcaa0665aa5e541cebd2
    Signed-off-by: Anu Sundararajan <sanuradha@ti.com>
    Anu Sundararajan committed with rmcc Apr 14, 2011
  2. stagefright: Fix more USE_GETBUFFERINFO breakage

    Change-Id: Ic7ac0cce9df3cc3db8a9ab353fa0481df3e634de
    rmcc committed Oct 27, 2011
Commits on Oct 26, 2011
  1. Merge "Fix audio notifications" into gingerbread

    rmcc committed with Gerrit Code Review Oct 26, 2011
  2. Fix audio notifications

    These were broken by Change-Id I5c9f0be1257e855dcd3341eae7eaeb9a01b18906,
    restore them to working condition
    
    Change-Id: I172f9f96a4a8adf75916078db05763352ac86e98
    rmcc committed Oct 26, 2011
  3. CacheManager: fix issue with expire time set to "now"

    Reported by Marc Newman, NASA/JSC/SDIL Primary Systems Analyst
    tpruvot committed Oct 26, 2011
  4. libstagefright: fix JPEG decoder component name typo

    Change-Id: Ibed0c227543cb53e8e1c931c4b47f888ea7bf7ff
    tpruvot committed Oct 25, 2011
  5. PowerWidget : Sound mode fix

    Currently when you upgrade to a nightly that makes use of : http://review.cyanogenmod.com/#change,8643
    You get a force close if previously you had the setting to say 4, or anything
    greater than the current length of modes.
    
    This attempts to address that issue.
    
    Change-Id: I7de56191059ee4893b42a2c6bfd63f3d992bc589
    Danesh committed Oct 26, 2011
  6. OMXCodec: Fix build on USE_GETBUFFERINFO devices

    Derped during the OMAP_ENHANCEMENT merge
    
    Change-Id: I4ce1db697fcb799740ab02e99acac428d901d572
    rmcc committed Oct 26, 2011
  7. Revert "LGEStarRIL: Ensure GPRS attachment class on p970"

    This reverts commit 40629dd.
    Wrong way to fix it
    rmcc committed Oct 26, 2011
Commits on Oct 25, 2011
  1. LGEStarRIL: Don't use showPdpAddress on non-mobile interfaces

    This applies to, for example, gannet0, and fixes the inability to
    send MMS with Kineto
    
    Change-Id: Ic6352c9defabaaaf90a7bf7e7c3d8d1daeef844b
    rmcc committed Oct 25, 2011
  2. Updated OMAP support

    Adds updated TI code (under the OMAP_ENHANCEMENT conditional) for
    compatibility with the current version of OMAP3/OMAP4 kernel-side
    code.
    
    This is a squashed combination of 138 commits from omapzoom:
    
    Stagefright OMXCodec changes to enable TI Hardware Codecs
    
    Descritpion:
    These changes are ported from Froyo branch. The change details:
    (1) Decoder table is updated with TI Ducati codec components
    (2) OMX version is updated
    (3) Component quirks are modified as per ducati codec requirements
    (4) Codec configuration parameters are modified as per ducati codec
    requirements
    
    Change-Id: If845c3464281a1be053dbbff85c8db56b1163286
    Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
    
    Stagefright changes for video thumnail generation
    
    Descritpion: These changes are ported from Froyo branch.
    The change details:
    (1) OMXCodec changes for quirks, bufferallocation
    (2) Colorconverter changes to support strided buffer color conversion
    from NV-12 packed to RGB
    (3) stagefright metadata retriever changes for codec create with proper
    flags and codec configuration changes required for Ducati codec
    
    Change-Id: I252284d9e98653d9cccc46521e6391f1d439e90a
    Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
    
    Stagefright Changes to use externally allocated buffers
    
    Description: These changes are ported from Froyi branch.
    The change details:
    (1) Video Renderer and OMXRenderer interface changes to pass buffers
    from Renderer to Awesome player
    (2) Awesoem player changes to set the buffers with the OMXCodec
    and release the buffers once rendered
    (3) OMXCodec changes to use the externally allocated buffers
    while configuring the hardware codec.
    
    Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
    
    Patch Set 5: Cherry-picked on current tree.  No changes made.
    Taking verifications and approvals from previous patch sets.
    Signed-off-by: Jean Johnson <jean-johnson@ti.com>
    Change-Id: I39e1c014eb52f9b0c2cb717671d0339889b09e07
    
    Stagefright changes to support interlaced video formats
    
    Description: These changes are ported from Froyo branch
    Change details:
    (1) Stagefrightmetadata retriever changes to check the video content
    and configure teh OMXCodec with appropriate flags.
    (2) OMX Codec changes to update the quirks and configure codec accordingly.
    
    Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
    
    Patch Set 4 Cherry-picked on current head of tree.  No changes
    made.  Taking verifications and approvals from previous patch sets.
    Signed-off-by: Jean Johnson <jean-johnson@ti.com>
    
    Change-Id: Ia2e79d3883b2359ea416d5fcf509c4f3c38358e2
    
    Stagefright changes for H263 decoders
    
    Desrciption: These changes are ported from Froyo branch.
    The change details:
    H263 mime type and color format checks are added.
    
    Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
    
    Patch Set 4 : Cherry-picked on current head of tree.  No changes
    made.  Taking verifications and approvals from previous patch sets.
    Signed-off-by: Jean Johnson <jean-johnson@ti.com>
    
    Change-Id: Iafac582a0b426503533fcd53f62d3ced91b89b15
    
    OMXCodec changes for buffer alignment
    
    Description: These changes are ported from Froyo branch
    The change details:
    A constant has been defined to make buffer size aligned on 32 bit boundary
    
    Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
    
    Patch Set 4 : Cherry-picked on current head of tree.  No changes
    made.  Taking verifications and approvals from previous patch sets.
    Signed-off-by: Jean Johnson <jean-johnson@ti.com>
    
    Change-Id: I8e8850eaa907966fd9670a57a254c1328cfb1478
    
    Non-PreAnnouncement mode for thumbnail generation
    
    Description: These changes are ported from Froyo
    Since tiler memory is limited we cannot have 2 instance of decoder 1 instance of encoder
    and camera running in parallel. This is a requirement from 1080p camcorder perceptive.
    To save tiler memory we are allocating only 2 actual full size buffers but remaining all
    buffers as dummy. The dummy buffer will help us to move to idle state. Then we would provide
    full allocate buffers only to ducati and then on receiving the Third EmptyThisBufferDone we
    would send an EOS. This will flush out the Decoded first I frame buffer back to the component.
    This is the frame from which we will make the thumbnail.
    
    Here we have not voilated any OMX protocol but still able to save memory. This is called as
    NON-PreAnnoucement mode where we dont give all the actual buffer to the OMX component before
    Hand for mapping on the accelerator
    
    Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
    
    Patch Set 4: Cherry-picked on current head of tree.  No changes
    made.  Taking verifications and approvals from previous patch sets.
    Signed-off-by: Jean Johnson <jean-johnson@ti.com>
    Change-Id: Icd9650f2aa51a2eb919b51962f4c9e61ca763fe5
    
    OMXCodec changes for software codec
    
    Descritpion: These changes are ported from Froyo
    change details:
    (1) property based checks are added for software codecc
    
    Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
    Patch Set 4: Cherry-picked on current head of tree.  No changes
    made.  Taking verifications and approvals from previous patch sets.
    Signed-off-by: Jean Johnson <jean-johnson@ti.com>
    
    Change-Id: I3cd522ecaf69f8d46877fd89f10000550fbd8622
    
    OMXCodec changes to add software decoders/encoders to the list
    
    Description: The codecs table is updated with the Android software codecs.
    
    Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
    
    Patch Set 2: cherry-pick on current tree.  No changes made.
    Verifications and approvals taken from patch set 1.
    Signed-off-by: Jean Johnson <jean-johnson@ti.com>
    
    Change-Id: I4fdcf597fe087b54f6be10c0ad93dea0ce24bdce
    
    OMX Renderer changres for on-the-fly resize support
    
    Description: These changes are ported from Froyo.
    Change details:
    (1) Renderer interface is extended for resize
    (2) Init Renderer is modified to call resize instead of destroy renderer,
    if teh rendere is already created.
    
    Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
    
    Patch Set 4: Cherry-picked on current head of tree.  No changes
    made.  Taking verifications and approvals from previous patch sets.
    Signed-off-by: Jean Johnson <jean-johnson@ti.com>
    
    Change-Id: I519ba180cf652cf16ea7579e98c8a5278a16d790
    
    Stagefright media extractor and parser changes
    
    Description: These changes are ported from Froyo branch.
    The change details:
    (1) Extended MPEG4 extractor to support more format types
    (2) Addition of cutom enums for openmax formats and errors
    
    Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
    
    Patch Set 4: Cherry-picked on new tree. No changes made.
    Taking verifications and approvals from previous patch
    sets.
    Signed-off-by: Jean Johnson <jean-johnson@ti.com>
    Change-Id: If28b1605ea9e75f453adab7499095b5f69348af9
    
    Stagefright and Surfaceflinger changes for S3D
    
    Description: These changes are ported from Froyo
    Change details:
    (1) custom SEI parser is added
    (2) Renderer creation is overloaded for s3d
    (3) Awesome player has been modified to create the appropriate renderer
    (4) Surface flinger is modified for appropriate overlay creation
    
    Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
    
    Patch Set 7: Cherry-picking patch 4  on current head.  No changes made.
    Taking verifications and approvals from patch set 4.  Just reuploading
    to get description right.
    Signed-off-by: Jean Johnson <jean-johnson@ti.com>
    
    Change-Id: I9e8824ac88279bacf6ad9e71dd2a94e6fefd9c73
    
    StageFright Audio fixes
    
    Description: These changes are ported from Froyo
    Change details:
    (1) Audio flush function is added
    (2) quirks are updated for MP3 and AAC codecs
    (3) mpeg4 extractor is updated for amr codecs
    
    Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
    
    Patch Set 4: Cherry-picked on current tree.  No changes made.
    Taking verifications and approvals from patch set 3.
    Signed-off-by: Jean Johnson <jean-johnson@ti.com>
    Change-Id: Ic9f351b8b251aa29d36e1805014f27184c1dff22
    
    Mediaplayer & AwesomePlayer changes for Video Cloning
    
    The changes are for porting the below patch from Froyo to Gingerbread
    ----------------------------------------------------------
    http://review.omapzoom.org/#change,9754
    
    Description# MediaPlayer interface and video Renderer interfaces have been
    extended for enabling and disabling video cloning. Awesome receives the
    Video mode state from mediaplayer and sets the renderer accordingly.
    
    ----------------------------------------------------------
    
    Signed-off-by:<dnk.mohan@ti.com>
    
    Patch Set 2: Cherry-picked on current tree.  No changes made.
    Taking approvals and verifications from patch set 1.
    Signed-off-by: Jean Johnson <jean-johnson@ti.com>
    Change-Id: I0eeec627987c16cf54e361cafb927809493629a1
    
    Awesomeplayer changes for Video Cloning on HDMI after application suspend/resume
    
    The changes are for porting the below patch from Froyo to Gingerbread
    ----------------------------------------------------------
    http://review.omapzoom.org/#change,10447
    
    Description# when Gallery app is suspended by pressing home button, MediaPlayer
    gets suspended and underlying Renderer and overlay are destroyed. But the
    Awesomeplayer is just reset. Hence the Videomode (normal or Clone) is left
    to the last value set before the suspend.
    Once the application is resumed, and tries to set the clone mode again,
    it would be filtered at the AwesomePlayer level because of the cached value.
    This is fixed by resetting the Video mode to normal while resetting the
    Awesomeplayer.
    ----------------------------------------------------------
    
    Signed-off-by:<dnk.mohan@ti.com>
    
    Patch set 2:  Cherry-picked on current tree.  No changes made.
    Taking verifications and approvals from patch set 1.
    Signed-off-by: Jean Johnson <jean-johnson@ti.com>
    Change-Id: Ie346c1a81b976ad56cfd7be675a26368556caf35
    
    Stagefright: Updating meta data with profile,level,referenceframe data. Communicate to AVC component
    
    The changes are for porting the below patch from Froyo to Gingerbread
    ----------------------------------------------------------
    http://review.omapzoom.org/#change,9467
    
    - Added support to parse and save Video profile,level, scan-type,number of reference frames in meta data
    - Communicate to ducati component
    - Removed earlier isinterlaced() interface, and replaced with more updatemetadata() call in TIVideoConfigParser.cpp
    ----------------------------------------------------------
    
    Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
    
    Patch set 4: No changes made.  Cherry-pick on current tree.
    Taking verification, approvals and build test from patch set 3.
    Signed-off-by: Jean Johnson <jean-johnson@ti.com>
    Change-Id: I1bb89f27a19ac53461f0ed98a54b7adbee6c66a6
    
    Flush the audio sink when resuming from a pause-->seek
    
    The changes are for porting the below patch from Froyo to Gingerbread
    ----------------------------------------------------------
    http://review.omapzoom.org/#change,9462
    
    1) Play an audio file
    2) Pause playback
    3) Seek to another position in the file
    4) Resume playback
    ... some audio from the position before the seek is played before the audio at the new position is played.
    This patch resolves the issue by flusing the audio sink before resuming the playback if there had been a seek
    while the audio was paused
    ----------------------------------------------------------
    
    Signed-off-by:<dnk.mohan@ti.com>
    
    Patch set 3: Cherry-pick on current tree.  No changes made.
    Taking verifications, approvals and build test from patch set
    2.
    Signed-off-by: Jean Johnson <jean-johnson@ti.com>
    Change-Id: Ic2b135473f4400cbcc92b4f2906e482f07aa4c1f
    
    Improve AV sync logic for accurate frame posting
    
    Current logic:
    1. On Play a 10msec defalt event is posted which has a callback onVideoEvent in awesomeplayer.cpp.
    2. If we find a frame in renderer comming from Ducati then we check its time stamp against system / audio time stamp
    3. There is a start delta which is always adjusted from the current time.
    4. If the frame is late by 50 msec we drop it
    5. If the frame is early more than 100 msec then we post a event after 10msec
    6. if the frame is within 10 msec of current time then post it.
    7. After a frame is posted we trigger a 10msec event to go to next frame
    
    Flaws in current logic
    1. we will never post it accurate; a 33 msec frame will get divided in three 10 msec windows and we will post it 3 mec early.
    2. 100 msec check was wrong.
    3. polling every 10 msec is increasing the MHZ
    4. After displaying the frame we start a 10msec event which could have been 1 Msec to get more accurate posting results
    5. Audio on OMAP4 increase the timestamp after 42 msec and we need accuracy of 1msec. So we will never have a precise posting
    
    Modified logic
    1. We check 10msec for early ness as per google original logic. Required for precise posting
    2. For PPM optimization 2 things are done
    1. Post the first frame event after 1 msec instead of 10 msec
    2. Post the exact time future event for frame posting
    e.g 33 msec we will have 1 msec and 32 msec 2 polls only reducing the ARM MHZ and also having precise posting of frame
    3. Increase accuracy of audio by interpolating in between 2 audio frame increments. So polling in between 42 msec also provides
    accurate results and keeps audio buffer sizes independent of AV sync logic
    4. Added safety check so that if audio dies we dont keep playing video via interpolating logic.
    5. A safety modulation logic is added so that if we seek we dont wait in the event for huge time.
    This will cause hangs if we dont do this in seek case.
    6. Added few instrumentation to know the exact delta between to postings
    Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
    
    Patch Set 2: Failed rebase.
    
    Patch set 3: Cherry-pick on current tree.  No changes made.
    Taking verifications, and approvals from patch set 1.
    Signed-off-by: Jean Johnson <jean-johnson@ti.com>
    Change-Id: Ic5651df3a8e657c123c670b11724e043218fb349
    
    OMAP4:Stagefright player changes to use Codec recommended number of O/P buffers
    
    Description: Currently there is no communication between OMX codec configuration
    and the TIHardware renderer wrt the number of Overlay buffers to be used for
    on the output port. In this patch, the Awesome player logic is enhanced to
    query Codec for the recommended number of buffers for output port and
    communicate the same down to TI Hardware Renderer. The codec recommended number
    is buffered with the optimal buffer count to be maintained at the DSS driver.
    With this patch the hardcoding for the output port buffer number is removed
    and also the lower limit for the buffer count is removed in TIHardware Renderer.
    this patch has to be merged along with 1.21-p5 ducati migration.
    
    Validation: Tested AV playback from Android Gallery for different resolution cl$
    
    Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
    
    Patch set 2: Cherry-pick on current tree.  No changes made.
    Taking verifications, approvals and build test from patch set
    1.
    Signed-off-by: Jean Johnson <jean-johnson@ti.com>
    Change-Id: I7d858108e8768294ded1b2fc2c2887429f8968a7
    
    OMAP3: create mCodecSpecificData without CodecConfig flag
    
    This fixes a case that encoder returns the first buffer not
    including CodecConfig. In case of OMX.TI.Video.encoder using
    MPEG4 or H.264, the encoder does not return the CodecConfig
    buffer but returns CodecConfig and the first encoded data
    in one buffer without OMX_BUFFERFLAG_CODECCONFIG flag set.
    Concerning the compatibility of Froyo and GB, this regards only
    MPEG4Writer issue in GB.
    
    Change-Id: Ie4d541fd6d3ae540eebbdebed0ef235ec0d557e7
    Signed-off-by: keun-o.park <sahara@ti.com>
    
    H264 encoder fixes for OMAP4
    
    logic put in for OMAP3 h264 encoder is breaking OMAP4 h264 encoder.
    Making change OMAP3 specific. Also fixing debug compilation error.
    
    Signed-off-by: Dandawate Saket <dsaket@ti.com>
    
    Patch Set 3: Simple Cherry-pick on tree.  Taking approvals,
    verfications from patch set 2.  No changes made.
    Signed-off-by: Jean Johnson <jean-johnson@ti.com>
    Change-Id: Iebfd4ca74b0c7c15c4bb504399653baa8a4e4a65
    
    OMAP: Stagefright: Added rotation support to S3D Renderer.
    
    OMX in Gingerbread need new HardwareAPI, createRendererWithRotation
    to create rotated overlay for play video clips which have rotation info.
    OMAP used old-fashion createRenderer to pass platform specific args,
    such as isS3D, numOfOpBuffers but, no rotation degrees passed.
    
    The function, createRendererWithRotation dynamically loaded
    from libstagefrighthw.so only if it is defined. If not,
    createRenderer will be loaded just like old times.
    
    Change-Id: I440637aab1ba9c68fdb6eeb413095cf3814b5dad
    Signed-off-by: Homin Lee <homin.lee@ti.com>
    
    Gingerbread Camcorder : Generic Encoder chnages.
    
    Description : These cahnges are generic to all the encoders. It sets the
                   port configurations, I/p & O/p buffers count, Quirks for
                  i/p * o/p ports, stride information & other generic ducati settings.
    
    Signed Off By : Sreenidhi Koti <sreenidhi@ti.com>
    
    Patch Set 4: Cherry-picking on current tree.  Merge conflict resolved.
    Taking approvals and verifications from patch set 3.
    Signed-off-by: Jean Johnson <jean-johnson@ti.com>
    
    Change-Id: I49d3af4f26e0e0948cf36e867d99c921ee106b2d
    
    Gingerbread Camcorder : Support for H.264 Encoder
    
    Description : Adds support for H.264 encoder.
    
    Signed Off By : Sreenidhi Koti <Sreenidhi@ti.com>
    
    Patch Set 5: Rebasing to break dependency chain.  Cherry-picked
    on current tree.  No changes made.  Taking verifications and
    approvals from patch set 4.
    Signed-off-by: Jean Johnson <jean-johnson@ti.com>
    Change-Id: Ic2e811ac32ceadc2ae34dc7a9dc75c462df8a77c
    
    Encoder-H264 : Support for B-Frames
    
    This patch enables inclusion of B-Frames in H264 Encoded Video.
    
    Signed-off-by : Kalpesh Patil <kalpeshpatil@ti.com>
    
    Patch set 3: Simple cherry-pick to break dependency on non-existent
    patch.  No changes made.  Taking approvals and verifications fom
    patch set 2.
    Signed-off-by: Jean Johnson <jean-johnson@ti.com>
    Change-Id: I020e5d45febe2830e7a72536043267db051be2c0
    
    Stagefright: OMAP4 output buffer count from codec - bug fix.
    
    minimum no of buffers required on a port is communicated by codec via video.portdef.nBufferCountMin
    actual no. of buffers allocated on a port  is communicated to codec via def.nBufferCountActual parameter.
    
    Today def.nBufferCountActual is used to set buffer count which is not intended and causing high buffer count usage
    
    Signed-off-by: Devaraj Rangasamy <dev@ti.com>
    
    Patch Set 2:  Simple cherry-pick on current tree.  No changes made.
    Taking build test, verifications and approvals from patch set 1.
    Signed-off-by: Jean Johnson <jean-johnson@ti.com>
    Change-Id: Ib9f57aa981b86408aaf7612f80b3540587d57e7a
    
    Store Stride in the meta data.
    
    Stride is required by flash to perform color conversion.
    
    Note# these changes are ported from Froyo
    http://review.omapzoom.org/#change,10713
    
    Signed-off-by: Anu Sundararajan <sanuradha@ti.com>
    
    Patch Set 2:  Cherry-pick on current tree.  No changes made.
    Taking verifications, approvals and build test from patch set
    1.
    Signed-off-by: Jean Johnson <jean-johnson@ti.com>
    Change-Id: I3404dd2f3687f59618d50b7fc297c9d48a6301cb
    
    OMXCodec: Initialize quirk to kRequiresAllocateBufferOnOutputPorts
    
    If the quirk is set to kRequiresAllocateBufferOnOutputPorts by the
    OMXCodec Client, then AllocateBuffer is called on the output buffer
    else UseBuffer is called. UseBuffer can be called only for Overlay
    buffers. Ideally speaking, one should not expect the client to know
    these details. They must be handled internally.
    
    In the case of flash playback, it is expected to call
    OMXCodec::Create() with the flag kPreferAllocateBufferOnOutputPorts.
    This flag is a TI specific flag and hence flash is unaware of it.
    Furthermore, it cannot be hardcoded in flash since the enum value
    has been changing too.
    
    Patch Set 3: Resolved OMAP3 build issues by making it OMAP4 specific.
    
    Signed-off-by: Anu Sundararajan <sanuradha@ti.com>
    
    Patch Set 4:  Simple cherry-pick on current tree.  No changes made.
    Taking build test, approvals and verifications from patch set 3.
    Signed-off-by: Jean Johnson <jean-johnson@ti.com>
    Change-Id: I8ad9697cbaf25d04b0d5e3e394fd2db66b78fe59
    
    Stagefright: Making kRequiresAllocateBufferOnOutputPorts as default quirk breaks NPA thumbnail mode
    
    Changeset1:
      - Making kRequiresAllocateBufferOnOutputPorts as default quirk breaks NPA thumbnail mode
        Clear it for NPA thumbnail mode
    
      - Break was introduced by http://review.omapzoom.org/11427
    
    Change-Id: I14ba6d98398903a436b306e1e5490f6d83341719
    Signed-off-by: Devaraj Rangasamy <dev@ti.com>
    
    OMXCodec changes to handle overlay decided buffer count
    
    The changes are for porting the below patch from Froyo to Gingerbread
    ----------------------------------------------------------
    http://review.omapzoom.org/#change,9211
    Description: Currently, the number of buffers required on code output port are
    calculated in OMXcodec as well as in TIHardwareRenderer.
    And OMXCodec assumes that those many buffers are in deed allocated by overlay.
    But in some scenarios it it so possible that, Overlay might get fewer number
    of buffers than requested by OMXCodec. In that scenario there will be a
    segmentation fault in the system. In order to handle this scenario, OMX codec
    is enhanced to reconfigure the codec when it receives the buffers from the
    Hardware Renderer (through AwesomePlayer) for the first time.
    ----------------------------------------------------------
    
    Signed-off-by:<dnk.mohan@ti.com>
    
    Patch Set 3: Cherry-pick on current tree.  No changes made.  Taking
    approvals and verifications from patch set 2.
    Signed-off-by: Jean Johnson <jean-johnson@ti.com>
    Change-Id: Ie1642d25eb8f520cb796526882969cb70e751acd
    
    OMAP4: Re-enable Vorbis decoder
    
    MIMETYPE of Vorbis audio decoder contents is missing after
    OMAP4 integration, resulting in no OGG sound
    
    Patch Set 2:  No changes made.  Simple cherry-pick on top of
    current tree.  Taking verifications and approvals from patch
    set 1.
    Signed-off-by: Jean Johnson <jean-johnson@ti.com>
    Change-Id: I24a85288ad124c345ef0a9035d18e0d247fc2af3
    
    Stagefright: Added support for 2 new codecs - VP6 and VP7
    
    Description# Modified OMXCodec table to include ducati VP6 and VP7 codecs.
    updated decoder caps for the same. And updated ducati specific checks for
    VP6 & VP7 as well.
    
    Note# These changes are ported from Froyo
    
    Patch Set 2: Rebased against latest.
    
    Change-Id: I6bd46ed45c862e21e80e2b11166b846881ba4406
    Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
    Signed-off-by: Anu Sundararajan <sanuradha@ti.com>
    
    Stagefright: Enable support for dynamic port -reconfiguration while using Ducati IVAHD codecs
    
    Patchset1:
      - When codec detects change is width,height of the stream, it raises port reconfig event, port is disabled and enabled.
      - For port  -reconfiguration during AVPlaybakc usecase, Since new set of overlay buffers are required before re  -enabling port, defer port enable for ducati playback usecase till overlay buffers are available.
      - ResizeRenderer() should be aware of new output buffer count for new resolution
      - For port  -reconfiguration during thumbnail usecase or stagefright   -t tests, retry will happen in StagefrightMetaDataretriever, while output port will disable and reenable itself with allocated buffers.
      - Limitation: NPA mode for thumbnail is not working for now and disabled. will be enabled incrementally
    
    Patchset2:
      - Rebased to latest codebase
    
    Signed-off-by: Devaraj Rangasamy <dev@ti.com>
    
    Patch Set 3: Cherry picked on current tree.  No changes made.  Taking
    approvals, build test and verifications from patch set 2.
    Signed-off-by: Jean Johnson <jean-johnson@ti.com>
    Change-Id: I1eabf4fb9d060dc5126b443cbe77f687687ec7d9
    
    OMXRenderer changes to propagate display W&H on resizing
    
    Description# OMXRenderer is modified to propagate the display
    W&H along with the decoded buffer W&H while resizing the
    rendererer. This is required to update the crop window with
    Overlay.
    
    Awesomeplayer is modified to query the Video width and height
    and provide the same for resize Rendererer call.
    
    DRT#OMAPS00236082 - Multiple robustness test clips are playing with noise
    in the right side of screen due to incorrect port reconfig handling
    Note#This is one of the multiple patches for this DR
    this patch is dependent on
    http://review.omapzoom.org/#change,12705
    
    Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
    
    Patch Set 3: Simple cherry-pick on current head. Taking approvals,
    verification and build test from patch set 2.
    Signed-off-by: Jean Johnson <jean-johnson@ti.com>
    Change-Id: Iceadb97202750b08dd45f8749a5337d5c69f0dc5
    
    Surfaceflinger changes for dynamic display change
    
    Description: These changes are ported from Froyo
    change details:
    (1) custom omap mm library has been added
    (2) Surface class is extended for display ID settings and introduced omapmm
    lib as a friend class
    (3) Layer base and buffer class changes for display setting to the Overlay
    
    Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
    
    Patch Set 5: rebased again.  Merge conflicts fixed.
    Patch Set 6: Patch Set 5 with a comma in include/surfaceflinger/ISurface.h.
    Signed-off-by: Jean Johnson <jean-johnson@ti.com>
    Change-Id: If13257af633958fab57a63a504b17d17c27d2537
    
    SurfaceFlinger changes for Overlay cloning
    
    The changes are for porting the below patch from Froyo to Gingerbread
    ----------------------------------------------------------
    http://review.omapzoom.org/#change,9708
    
    Description# ISurface interface is extended for dynamic overlay cloning.
    This includes ISurface binder extension and layer buffer implemetation
    to call overlay data context for requesting overlay cloning.
    The same interface is used for enabling/disabling the overlay cloning.
    Hence based on whether this is enable or disable, the ISurface interface
    handles duping the fd for the cloned video device.
    
    ----------------------------------------------------------
    Signed-off-by:<dnk.mohan@ti.com>
    
    Patch Set 2: No change made.  Simple cherry-pick on current tree.
    Taking verfications and approvals from patch set 1.
    Signed-off-by: Jean Johnson <jean-johnson@ti.com>
    Change-Id: Ie1df963238ffa83181b36fd1cb92b9aa5ce020ce
    
    Changes made to OMXCodec.h so that a derived class can be created.
    
    Minor changes made to the class definition so that we can create a TIOMXCodec that is derived from OMXCodec.
    In future, all changes to OMXCodec should be made in TIOMXCodec, instead.
    AwesomePlayer also needs to be modified to use TIOMXCodec instead of OMXCodec.
    
    This is necessary in order to maintain compatibility for flash playback.
    Note# these changes are ported from Froyo
    http://review.omapzoom.org/#change,9014
    
    Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
    
    Patch set 2: Simple cherry-pick.  No changes made.  Taking
    approvals, build test and verifications from patch set 1.
    Signed-off-by: Jean Johnson <jean-johnson@ti.com>
    Change-Id: Id687b5b2e84c71f1aab71276d5c0ae16770431c2
    
    Stagefright: Re-enable NPA mode for thumbnail generation, which was disabled for port reconfiguration changes
    
    Changeset1:
     - Our Stagefright NPA statemachine has to be reset when PortReconfig is triggered,
       so as to go ahead with post port-config sequence
    
     - For 1D output buffer usecases, port config should result in nStride update as nFrameWidth will be new.
       No chagne for 2D output buffers, since constant 4K stride is used
    
    Changeset2:
    
     - Rebased
    
    Signed-off-by: Devaraj Rangasamy <dev@ti.com>
    
    Patch Set 3:  Breaking dependency on merge commit.  No changes made.
    Taking approvals and verifications from patch set 2.
    Signed-off-by: Jean Johnson <jean-johnson@ti.com>
    Change-Id: Ic421140a892384b8c30a9e59e2d5076b1bd8fa65
    
    Gingerbread : Including TI Index header files & removing duplicate codes
    
    Description : Removing duplicate codes by including TI index header files.
    
    Signed Off By : Sreenidhi Koti <sreenidhi@ti.com>
    
    Patch Set 5:  Cherry-picking on current tree to break the dependency on
    patch 9556.  Taking approvals and verification from patch set 4.
    Signed-off-by: Jean Johnson <jean-johnson@ti.com>
    
    Change-Id: I9063c273426fb1987c9c20d04af6f10633140b20
    
    FM Rx: Added FM framework support
    
    This patch is rework of patch 6235 (cd38325421b73ae5693b1f9991aeeb5b982154c8) on p-froyo for FM Rx
    changes. The audio flinger directory is changed in gingerbread. Resubmitting the patch for FM Rx in
    gingerbread. All the changes are in OMAP_ENHANCMENT flag
    
    Description: FM Support: Added the FM support in the framework for enabling FM.
    
    Change-Id: I1ff2f6484c673522f83659d9696aba6a2060a798
    
    Defined the DEVICE_OUT_FM_TRANSMIT for FM Tx device in Android Framework
    
    cherry picked from p-froyo commit-id b820e1009d4c619c254ef6cfaa58cf48182b4e3f
    
    Signed-off-by: Shitiz Kumar <shitiz_kumar@ti.com>
    
    Patch Set 2:  Cherry pick onto current head.  No changes made.
    Taking verification and approvals from previous patch set.
    Signed-off-by: Jean Johnson <jean-johnson@ti.com>
    Change-Id: If8c05732954fd7b2c7ca908504a9e27820b115c5
    
    add support for Low Power and DMIC
    
        AudioService registers for intents from applications
        that notify of mic selections, and changes in power mode.
    
        For now, mic choice will be determined by system property only.
    
        For changes in power mode, AudioService will set the connection
        state of a new DEVICE_OUT_LOW_POWER and trigger policy manager to
        route to the low power hw device.
    
    Signed-off-by: Chris Kelly <c-kelly@ti.com>
    
    Patch Set 2: Removed whitespace error.  No significant changes made.
    Taking approvals and verifications from patch set 1.
    Signed-off-by: Jean Johnson <jean-johnson@ti.com>
    
    Change-Id: I9085217d76d5e897c855df31d397a604649ef04c
    
    AudioSystem: voice call record: new channel CHANNEL_IN_VOICE_UPLINK_DNLINK
    
    Voice call record is started by selecting inputsource
    AUDIO_SOURCE_VOICE_UPLINK or AUDIO_SOURCE_VOICE_DOWNLINK
    or AUDIO_SOURCE_VOICE_CALL.
    For inputsource AUDIO_SOURCE_VOICE_UPLINK and
    AUDIO_SOURCE_VOICE_DOWNLINK, there's only 1 dedicated input channel
    that permits to start record in mono.
    But for inputsource AUDIO_SOURCE_VOICE_CALL, there's no dedicated
    channel so the channel CHANNEL_IN_VOICE_UPLINK and
    CHANNEL_IN_VOICE_DNLINK are enable.
    Therefore the record is done in stereo.
    To avoid that and be inline with a voice call record uplink only
    or downlink only a new input channels is created.
    
    Change-Id: I6f1d383e185b51d4798db8e62f9310a52ad8da7c
    
    Add a java OMAP_ENHANCEMENT property definition
    
    Cherry picked from 3f812d8daf3ffa685104083abeb7fcb30056baf1
    
    Change-Id: I439fc98cbb38e07044d568444ed9a729a0172e81
    
    OMXCodec changes to overload constructor for OMXNode Id
    
    The changes are for porting the below patch from Froyo to Gingerbread
    ----------------------------------------------------------
    http://review.omapzoom.org/#change,10897
    Description# OMXCodec create function is overloaded to provide OMXNode Id
    handle back. The node Id is used by the Awesomeplayer for configuring the
    codec directly.
    This patch is only addition of the overloaded method, but the method is
    not being used at this point.
    ----------------------------------------------------------
    Patchset2: Fixed build error for OMAP3
    
    Change-Id: I52fb78486048f66e00608e08d31bd20b32f2c178
    Signed-off-by:<dnk.mohan@ti.com>
    
    GingerBread Camcorder : Support for padded width & padded height.
    
    Adds support for padded width & padded height in Stagefright AV-Record path.
    
    Patchset-3 makes correction in width & height used for SetParameter for
    OMX_TI_IndexParam2DBufferAllocDimension.
    
    Signed Off By : Sreenidhi Koti <sreenidhi@ti.com>
    
    Change-Id: I60aa6a5caf01218d6650eea2f090427a16b46d02
    
    Stagefright fix: Low resolution clips crash with ducati codec
    
    The changes are for porting the below patch from Froyo to Gingerbread
    ----------------------------------------------------------
    http://review.omapzoom.org/#change,9651
    
    - MediaBuffer mSize should used video padded height, rather than original video height,
    since output buffer size will have padded width and height.
    
    Break should've introduced when Android video proxy is updated to remove 2D buffer support.
    ----------------------------------------------------------
    
    Signed-off-by:<dnk.mohan@ti.com>
    
    Patch Set 2: Cherry-picked on current head, no changes made.
    Taking verifications, approvals and build test from patch set 1.
    Signed-off-by: Jean Johnson <jean-johnson@ti.com>
    
    Change-Id: I142b622a7c4455e7cfe431847001a458a8875599
    
    OMXCodec fix for buffer size calculation.
    
    Description# When the video source meta data is maintained
    separately for video frame w&h and buffer w&h, the buffer size should be
    calculated from the padded height instead of the Video height.
    This was missed out earlier, this patch corrects the buffer size calculation.
    
    Change-Id: Idd46b71e050c2c3759b92330aa91aea52878591b
    Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
    
    Stagefright: Thumbnail corruption fix on port reconfig
    
    Patchset1:
     - On port reconfig, thumbnail driver or any other OMXCodec user should be aware of updated WxH
       MediaTrack metadata will have new WxH
       OMXCodec MetaData will have padded WxH (this is by default)
    
     - Whitespace changes (remove tabs)
    
    Signed-off-by: Devaraj Rangasamy <dev@ti.com>
    
    Patch Set 2:  Simple cherry-pick on current tree.  No changes made.
    Taking approvals and verifications from patch set 1.
    Signed-off-by: Jean Johnson <jean-johnson@ti.com>
    Change-Id: Ibeb7935307c49492e482dc74d779a69300e4b620
    
    Stagefright changes to maintain buffer padded W&H along with Video W&H
    
    Description# Stagefright OMXCodec and AwesomePlayer are modified to
    store and use the padded width and height for the output buffers.
    This is required to handle port reconfiguration scenarios where in,
    both video dimensions and buffer dimensions are required. Earlier the OMXCodec
    metadata was always holding the padded width and height, hence there was
    no way to communicate the video dimensions to Awesomeplayer.
    
    DRT#OMAPS00236082 - Multiple robustness test clips are playing with noise
    in the right side of screen due to incorrect port reconfig handling
    Note#This is one of the multiple patches for this DR
    
    Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
    
    Patch Set 3:  Simple cherry-pick on current head.  Taking approvals,
    verfication and build test from patch set 2.
    Signed-off-by: Jean Johnson <jean-johnson@ti.com>
    Change-Id: I441c95dece8b126794f749759d6b6fc651f27094
    
    Moving Input buffer of video decoder to usebuffer call
    
    Currently we are using allocate buffer call for input buffer.
    These buffers are 1D tiler buffers and allocated by DOMX.
    We see improvement in memcopy if we ask omx il to allocate buffer
    and pass it to the component. THis improvement in copy time is
    due to cache attributes. So we have moved to use buffer than
    allocate buffer. This was also recomended by PSI team
    
    Defect ID: OMAPS00229223
    
    Change-Id: Ib2d355417e479fe2be76c3d5ce5e127158fcf482
    Signed-off-by: Dandawate Saket <dsaket@ti.com>
    
    Resolved VP6/7 playback issues
    
    New extended OMX parameters must be set for VP6/7
    depending on the type of stream.
    
    Note# these changes are ported from Froyo
    http://review.omapzoom.org/#change,9653
    
    Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
    
    Patch set 2: Cherry-pick on current tree.  No changes made.
    Taking verifications, and approvals from patch set 1.
    Signed-off-by: Jean Johnson <jean-johnson@ti.com>
    Change-Id: Iee8d579bfc4dd7e93cb08275a89e2514aef05e32
    
    Add support for ASF parser in Stagefright
    
    This patch adds the changes needed to support the ASF parser which is needed for playing
    WMV and WMA clips.  This patch does not contain the parser itself but it makes the parser
    runtime-discoverable.
    
    Change-Id: I72bad81bbdecc5293b0528b593d9cd3df4f65815
    
    VideoView changes to handle Dynamic display changes
    
    Description: This patch includes changes in the VideoView widget to
    load the custom java/jni, and send dynamic display change events to the JNI.
    
    Note# these changes are ported from Froyo branch
    
    Change-Id: I95f9ca064375985501cebf1ef228a1ed4e18d36f
    Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
    
    VideoView changes to enable Video cloning on HDTV and LCD
    
    Description# Video view is modified to set the mediaplayer with the Omapmmlib.
    This mediaplyer instance is used by the Omapmmjni service to enable
    video cloning on media player.
    
    Validation# tested aV playback on LCD and HDMI
    
    Change-Id: Ia8fdc3ebb2c002fe07ea9321b831d63a9cc4f862
    Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
    
    OmapMMLibrary changes for Video Cloning The changes are for porting the below patch from Froyo to Gingerbread ---------------------------------------------------------- http://review.omapzoom.org/#change,9755
    
    Description#OmapMMlibrary is extended to talk to mediaplayer for
    video cloning. Video view is modified to set the mediaplyer instance object
    with the omapmm custom library.
    ----------------------------------------------------------
    Patchset2: Removed changes in videoview.java as it will be handled in another patch
    to avoid build issues.
    
    Change-Id: Iaa5cfeba74e3884397a4f301b6d5380b8b2f85a7
    Signed-off-by:<dnk.mohan@ti.com>
    
    stagefright: Pass offset value of the frame data from camera source to omx codec
    
    When VNF is enabled the data received from camera source provides an offset
    value with each frame that has to be passed to the omx codec (ducati) for
    proper encoding. In the absence of this there were artifacts seen in the
    resulting output. This patch addresses this issue.
    
    Solves DR#OMAPS00233255
    
    Verified sanity on AV record/playback.
    
    Signed-off-by:<dnk.mohan@ti.com>
    
    Patch Set 3:  Addressed the formatting issues raised by Dan.
    Taking approvals and verifications from patch set 2 since no
    code was fundamentally changed.
    Signed-off-by: Jean Johnson <jean-johnson@ti.com>
    Change-Id: I2081c1038195671843d83977d8940af1914731f1
    
    Framebuffer: Support variable number of framebuffers in the UI
    
    This change defines a macro NUM_FRAME_BUFFERS to set
    the desired number of framebuffers to be used by the UI,
    instead of hard-coding 2 framebuffers.
    
    Aditional logic was added to handle the initialization and destruction
    of NUM_FRAME_BUFFERS buffers.
    
    Ported from FroYo
    
    Change-Id: I86c707d6deaae61ef72e5e48ae91437b2472977a
    Signed-off-by: Rodrigo Obregon <robregon@ti.com>
    
    Native window support for any FB.
    
    This patch allows clients of the class FrameBufferNativeWindow
    to be able to create a native window surface on any display.
    
    Change-Id: I8902858be85b83b287b8d9944bc80c82e7c34e1f
    Signed-off-by: Rodrigo Obregon <robregon@ti.com>
    
    OverlayRenderer: A new class for accessing Overlay
    
    Since only the mediaserver process has the necessary permissions
    to create a surface and to create an overlay, we need this new class
    for the flash plugin to make use of overlay.
    Note# these changes are ported from Froyo
    http://review.omapzoom.org/#change,9245
    
    Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
    
    Patch set 2: Cherry-pick on current tree.  No changes made.
    Taking verifications, and approvals from patch set 1.
    Signed-off-by: Jean Johnson <jean-johnson@ti.com>
    Change-Id: Ic482acffd3148d7b4b189646f4741cfe85a430a9
    
    IOMX: implement getBuffer() call for IOMX interface, so as exteral application use own player driver
    
    The changes are for porting the below patch from Froyo to Gingerbread
    ----------------------------------------------------------
    http://review.omapzoom.org/#change,10692
    if External applicaiton creates a player driver(awesomeplayer), then H/W renderer is
    created by MediaServer if the AwesomePlayer, which is created by external-application
    wants to send buffers to the H/W Renderer, it have to send by Binder calls.
    This patch implements getBuffer Binder interface between H/W Renderer of MediaServer
    and AwesomePlayer of external application.
    ----------------------------------------------------------
    
    Signed-off-by:<dnk.mohan@ti.com>
    
    Patch set 2: Cherry-pick on current tree.  No changes made.
    Taking verifications, approvals and build test from patch set
    1.
    Signed-off-by: Jean Johnson <jean-johnson@ti.com>
    Change-Id: I6cddb8f06a8bbf857763839ed5de698c303c9a6a
    
    OMAP4: Enable Stride and Offset Support in Camera Framework
    
    Modify camera and stagefright framework for taking
    stide and offset from timestamp callback
    
    Change-Id: I19308cda849bfad3a03dbe7fe070c38ab5bdc5d4
    
    Conflicts:
    
    	services/camera/libcameraservice/CameraService.h
    
    OMAP3: SF: Fix the misuse of mLastVideoBuffer in AwesomePlayer
    
    mLastVideoBuffer is not used with OMAP_ENHANCEMENT flag. And,
    current code causes a segmentation fault when it tries to access
    mLastVideoBuffer which is not initialized at constructor.
    This fixes the segmentation fault in suspend function.
    
    Because there's no code for OMAP4, 'if(0) {' routine for OMAP4
    was still left unchanged.
    
    Change-Id: Ie2a8abaf3f36a62235be4331956a74737c8aa896
    Signed-off-by: keun-o.park <sahara@ti.com>
    
    OmapmmLib changes to fix native surface field
    
    Description# surface class mSurface field id replaced with mNativeSurface.
    
    patchset2: rebased to the latest codebase.
    
    Change-Id: I7bdc8148ea8bf58ce73a62cd6d68e0f44c6cc84e
    Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
    
    OMXCodec fix for NPA mode thumbnail scenario
    
    Description# The mNumberOfNPABuffersSent state variable
    update is corrected in fillbufferdone callback.
    Earlier we were decrementing the state variable in
    FillbufferDone callback unconditionally.During port
    reconfiguration scenarios we were resetting this variable
    to "0" hence the further decrement in FillBufferDone callback
    was wrapping around this unsigned state variable to large value.
    This was resulting in no buffer sending to Ducati for thumbnail
    generation, hence thumbnail generator was hanging forever.
    
    This is fixed by decrementing the mNumberOfNPABuffersSent state
    memeber only if it non-zero positive number.
    
    DRT# OMAPS00236210 - No thumbnails generated for the clips which result
    in port reconfiguration
    
    Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
    
    Patch Set 2: Simple cherry-pick on current head. Taking approvals,
    verfication and build test from patch set 1.
    Signed-off-by: Jean Johnson <jean-johnson@ti.com>
    Change-Id: Ibaaca788497583ab7d0fadef5cc491c72dfb0486
    
    OMXCodec changes for tearing effect
    
    Description# In the OMXCodec buffer info, a new field has been added to track
    the buffers which are with Player. This means the buffer could be in AV sync
    logic, or already with DSS for rendering in case of video buffers, or with
    Audio HAL incase of Audio buffers. Earlier these buffers are given back
    to codec for filling irrespective of whether they are with sink or free.
    This is fixed by adding additional state for the buffer to track the
    life cycle of the buffer with the sink.
    
    Validation# tested AV playback and AV record.
    DRT#OMAPS00234704 - Tearing video frame on display when fastford/rewind
    during the video playback
    
    Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
    
    Patch Set 2:  Simple cherry-pick on current tree.  No changes made.
    Taking approvals, verification and build test from patch set 1.
    Signed-off-by: Jean Johnson <jean-johnson@ti.com>
    Change-Id: I1bcddddfeaf79c624f304b63f0b342625a4d6e33
    
    OMAP4: S3D: OMX component configurations to handle SEI messages for video playback
    
           Description: Reads Codec buffer metadata to reconfigure S3D display driver
    
                        - Parse output buffer for SEI MetaData
                        - Read metadata and configure S3D display driver
                          upon framelayout changes sent by codec
    
           Note: Patch ported from Froyo
           Dependencies: Patches 13385
    
    Change-Id: I1a1afc1159248f98fc199c0aa288366a592f7e89
    Signed-off-by: Gilles-Arnaud Bleu-Laine <gilles@ti.com>
    
    Gingerbread Camcorder : Fix for color distortion in Recorded Clip
    
    Encoder needs a NULL buffer pointer to be passed to OMX_UseBuffer() fucntion.
    Whereas Decoder needs a valid buffer pointer for the same.
    This patch adds an overloaded function definition for useBuffer() with extra argument 'size'.
    For Encoders, this size is passed to OMX_UseBuffer() along with NULL buffer pointer.
    For Decoders, this size is ignored.
    With this patch, decision is taken which argument to pass based on if component is Encoder or Decoder.
    
    Signed-off-by : Kalpesh Patil <kalpeshpatil@ti.com>
    
    Patch Set 4: Simple cherry-pick on current tree.  No changes made.
    Taking verifications and approvals from patch set 3.
    Change-Id: I176881dd632af2f61e9ed6ade02f6d50e1edbc94
    Signed-off-by: Jean Johnson <jean-johnson@ti.com>
    
    Patch Set 5: fixed compilation issue with OMAP3
    changed #ifdef to be omap4 specific in include/media/IOMX.h
    
    OMAP4: Include OMX_TI_IVCommon.h header file to support definition of color format (PackedSemiPlanar_Sequential_TopBottom)
    
            -- Remove the definiton from Stagefright includes files as
            it is a TI custom index.
    
            Note: Patch ported from Froyo.
    	Dependencies:
                  GITS    omx    (http://review.omapzoom.org/#change,10685)
                          omap3  (http://review.omapzoom.org/#change,13389)
    
    Change-Id: Ie45ac17d985a5008c631e5c5d8b49e3a849f5dea
    Signed-off-by: Gilles-Arnaud Bleu-Laine <gilles@ti.com>
    
    Avoid deadlock in OMX::freeNode
    
    By making sure OMXCodecObserver does not hold the
    last reference of OMXCodec object
    
    Mirroring change in OMXCodecObserver from mirror update. Mutex
    is removed from on_message and moved to onMessage function in
    OMXCodecObserver. Fixes race condition we see when stopping
    video record.
    
    See 6328185b6cc632f85ff640f6e854ab33815ae97f from gingerbread mirror
    
    Change-Id: If5f4c92f06eb56060659547db39341b428da2b9f
    
    Code cleanup to fix some issues introduced in the ASF parser patch
    
    Fixed following issues:
    - Removed complete path from a #include
    - Removed leftover debug messages
    - Fixed indentation
    - Fixed whitespace issues
    
    Change-Id: Ia509d62cd1b93509cf6708eebcd44ae0b0808b50
    
    Changes to support repeated PAUSE_RESUME Scenario.
    
    Consider the following scenario:
    1. Buffer arrives early, means in function onVideoEvent mVideoBuffer is not set to NULL
    2. Pause
    3. Resume, play_l is called successfully at this point
    4. In function onVideoEvent, mFirstVideoBuffer is not made NULL as mVideoBuffer is not NULL (see point 1)
    5. Again Pause
    6. Then Resume
    7. play_l is called with mFirstVideoBuffer non-NULL
    8. play_l fail in CHECK(mFirstVideoBuffer == NULL)
    
    This patch corrects this issue by releasing mFirstVideoBuffer, if it has not been released already in onVideoEvent
    
    Change-Id: Ie9de7c647936aee3c16bf2ab0ea4cb7bae3cae04
    
    Stagefright: Awesome player and OMXCodec changes to fix some types of port reconfig
    
    Port reconfig is supported as of now. But it does not support port reconfig
    during playback (after playing some frames).
    This patch adds changes to appropriately flush the buffers towards OMX component
    and the renderer.Also it sends proper free buffer requests to OMX component to
    enable proper state transitions in OMX component.
    
    Verified with available port reconfig clips.
    
    Patchset2:
    For clips having Port reconfig at the beginning sometimes there was a race
    condition on causing failure to start playback. This is addressed by adding a
    delay in setbuffers before flushing the buffers with freeBuffersOnPort().
    
    Signed-off-by:<dnk.mohan@ti.com>
    
    Patch Set 3:  Simple cherry-pick on current tree; no changes made.
    Taking approvals and verification from patch set 2.
    Signed-off-by: Jean Johnson <jean-johnson@ti.com>
    Change-Id: I5ef8feb46812f1c34e0398d208cd0336d1bdcfe2
    
    AwesomePlayer changes to handle the render buffer failure scenario
    
    Description# Currently Awesome player local data structures are updated with
    the buffers with renderer after the render call returns. This would leave out
    a scenario where, the render call fails to successfully queue the buffer
    with the DSS. In this scenario the buffer can't be reclaimed as it is not
    registered with the Awesomeplayer.
    This is fixed by updating the bufferswithrenderer structure before invoking
    the render method.
    
    Validation# AV playback suspend/resume on LCD and HDTV
    DRT#OMAPS00234816 - Gallery app stop reponding after pressing END CALL key
    while playing a video on HDMI
    DRT#OMAPS00234810 - PT: PPM: AV Playback on HDMI. Video is not rendered back
    to HDMI after suspend/resume; instead is played distorted in the LCD
    
    Change-Id: Ib6ce15c6f87c81eeb67b4eb6316f8801cdddc816
    Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
    
    OMAP3: set static buffer count for video output
    
    Due to VRFB buffer limitation, it is needed to limit the buffer count
    of output port for OMAP3. This fixes that memcpy is used for video
    output.
    
    Signed-off-by: keun-o.park <sahara@ti.com>
    
    Patch set 6: Simple cherry-pick on current tree; no changes made.
    Taking approvals, build test and verifications from patch set 5.
    Signed-off-by: Jean Johnson <jean-johnson@ti.com>
    Change-Id: I254032d9235e11bc5203560f3de1e8c728f84960
    
    Modified Buffer Allocation logic for Video Decoders
    
    Current logic:
    
    For all video decoder usecases (thumbnail, gallery playback, stagefright tests,
    flash playback, etc), call OMX_UseBuffer for output port.
    
    For Non-Overlay usecases, the output buffers are allocated by MemoryDealer.
    For Overlay usecases, the output buffers are allocated by Overlay.
    
    This ensures that there is no memcpy even when OMXCodec(browser process) and
    OMXNodeInstance(mediaserver process) live in two different process contexts.
    
    Patch Set 2&3: Rebased patch on current tree. Fixed merge conflict.
    
    Change-Id: I94eecfa337f115d268ffd26ad95e93ab388529d5
    Signed-off-by: Anu Sundararajan <sanuradha@ti.com>
    
    OMAP3: lib StageFright crashes on end of decoding WMA
    
    WMA Decoder sends stopped signal twice at the end of decoding.
    The second signal will cause Stagefright to crash due to invalid
    thread state.
    
    Signed-off-by: Steve Schefter <sschefter@ti.com>
    
    Patch Set 3:  Simple cherry-pick on current tree.  No changes made.
    Taking approvals, verifications and build test from previous patch
    sets.
    Signed-off-by: Jean Johnson <jean-johnson@ti.com>
    Change-Id: I0258d3d7124479bc00f0288604a4c5c6966e26f5
    
    Surfaceflinger changes for overlay integration
    
    Description: These changes are ported from Froyo
    Change Details:
    (1) LayerBuffer class is modified to route Layer calls to Overlay library
    
    Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
    
    Patch Set 4: Cherry-picked on current head of tree.  No changes
    made.  Broke the dependency chain.
    Taking verifications and approvals from previous patch sets.
    
    Change-Id: I62bb72f36d2d8f9be34c129337527f7f4742ed64
    
    SurfaceFlinger changes to decide when to enable the color key
    
    The changes are for porting the below patch from Froyo to Gingerbread
    ----------------------------------------------------------
    http://review.omapzoom.org/#change,9443
    Description: Since color key and per-pixel alpha need to be enabled exclusively
    there should be a mechanism in surface flinger to decide when to enable
    color key and when to disable.
    a new method has been added to the surface flinger to query the graphic plane
    pixel format and then enabl/disable color key accordingly.
    ----------------------------------------------------------
    
    Change-Id: Id7b08c9bcb1187e9eb90fc31f237b3b66c033f4b
    Signed-off-by:<dnk.mohan@ti.com>
    
    Moving Input buffer of video decoder to usebuffer call
    
    Currently we are using allocate buffer call for input buffer.
    These buffers are 1D tiler buffers and allocated by DOMX.
    We see improvement in memcopy if we ask omx il to allocate buffer
    and pass it to the component. THis improvement in copy time is
    due to cache attributes. So we have moved to use buffer than
    allocate buffer. This was also recomended by PSI team
    
    Defect ID: OMAPS00229223
    
    Change-Id: I8518c1adf2389028417ee2f041f2aa8b92bb395f
    Signed-off-by: Dandawate Saket <dsaket@ti.com>
    
    Both OUT and IN buffers should be 128byte aligned according to DSPBridge requirement.
    
    When decoding H264 video via Flash10 Player, OUTPUT buffers are allocated by Stagefright *OMXCodec.cpp), but they have not been 128byte aligned. And it causes the DSPProcessor MAP failure.
    This patch applies 128byte alignment for OUTPUT buffer before allocating the memory by Stagefright.
    For INPUT buffers, 128byte aligned size is set by OMX before, so we don't need to re-aligned it by Stagefright again.
    For the Gallery usecase, OUTPUT buffers are allocated via Overlay, so we don't need to make a alignment here.
    
    Patch Set 2:  Simple cherry-pick on current tree.  No changes made.  Taking
    approvals and verifications from previous patch set.
    Signed-off-by: Jean Johnson <jean-johnson@ti.com>
    Change-Id: Ib54eae1fe173f4393643f91e9dd498cfb2a4584d
    
    Reduce memcpy in mpeg4extractor for H264
    
    Currently the file content is read into a source buffer and then
    parsered for NAL unit size. Then the start code and nal unit is
    dumped in destination buffer provided by application.
    
    The code is optimized to put the data from file directly into
    application buffer.
    
    Defect ID: OMAPS00229223
    
    Change-Id: Ie6411145fcd5bc1cac4d0d76efee2cb3c133185d
    Signed-off-by: Dandawate Saket <dsaket@ti.com>
    
    MPEG4 Extractor memcpy logic correction
    
    Description# Currently the memcpy logic inside MPEG4Extractor
    works fine for mNALLengthSize = 4, but for the clips which have
    different mNALLengthSize the logic results in segmentation fault.
    The memcpy logic is corrected in this patch.
    
    Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
    
    Patch Set 2:  No changes made.  Taking verifications and approvals
    from previous patch set.
    Signed-off-by: Jean Johnson <jean-johnson@ti.com>
    Change-Id: I95355367e17df9eeb172f7716ab048880af9af85
    
    OMAP4::S3D: Fix S3D playback of recorded videos
    
    	Note: -Add support for multiple SEI types per NAL Unit
    	to support recorded videos.
    
    	      -Add OMAP4 flag around SEINALLength initialization
    
    	Patch set 3 - fix SEINALLenght init for GB.
    
    Change-Id: I2f9a8561792d08a8b17e17566b8dee56051bc260
    
    Signed-off-by: Gilles-Arnaud Bleu-Laine <gilles@ti.com>
    
    libstagefright: Confine port reconfiguration related changes to Ducati video decoders
    
    The below patches
    http://review.omapzoom.org/#change,11472
    http://review.omapzoom.org/#change,11485
    
    have port reconfiguration related changes that are relevant to
    Ducati video decoders only. For other omx decoders(eg:audio)they are not
    applicable and will cause issues at start of decoding.
    This patch adds additional checks for this purpose.
    
    Verified AV playback and Thumbnail generation.
    
    Signed-off-by:<dnk.mohan@ti.com>
    
    Patch Set 2:  Simple cherry-pick, no changes made.  Taking
    approvals and verifications from patch set 1.  Taking build
    test from there too.
    Signed-off-by: Jean Johnson <jean-johnson@ti.com>
    Change-Id: I2280dbb2086022fb508e21c214487f111dbd6bdb
    
    Setting mOverlay to 0 after destroying it
    
    The changes are for porting the below patch from Froyo to Gingerbread
    ----------------------------------------------------------
    http://review.omapzoom.org/#change,4536
    Setting mOverlay to 0 after destroying it
    
    This was a fix made on HTC Codebase to resolve some Seg faults.
    Hence migrating it from Donut to eclair to froyo.
    ----------------------------------------------------------
    
    Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
    
    Patch set 2: Cherry-pick on current tree.  No changes made.
    Taking verifications, approvals and build test from patch set
    1.
    Signed-off-by: Jean Johnson <jean-johnson@ti.com>
    Change-Id: I692a831441016a2a7054bfcd14928a84a59648d9
    
    LayerBuffer fix for Dynamic Display ID change
    
    Description# HDMI Hotplug support is added by modifying the Layer dpy field
    from the omapmmLib. This dpy is modified inside the Layer Source on every
    display Change event. In this model, there is corner case possible where in
    We initiate the suspend/resume, but abort it immediately. This would trigger
    HDMI detach in the kernel and hence the detach event is propagated to LayerB
    But by this time if the OverlaySource is already destroyed keeping the Layer
    Buffer alive, we miss this Layer dpy update. Hence on immediate resume,
    The overlay source would see HDMI as the current dpy and configures overlay
    for the same even though HDMI is not yet attached in the kernel.
    This would result in Overlay configuration failure and hence no Video on LCD
    or TV.
    This is fixed by initializing the Layer dpy to 0 while constructing the
    Overlay source.
    
    DRT# OMAPS00235635 - PT: HDMI AV Playback: When resuming system, before
    unlocking the screen, the notification bar shows the clip playing.
    DRT# OMAPS00235626 - HDMI AV Playback suspend/resume: Gallery hang
    
    Change-Id: I73f66dd8049849748cc86cc1ad28e9b68294c1a7
    Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
    
    OMAP3: SF: fix build error
    
    This fixes 'frameworks/base/media/libstagefright/AwesomePlayer.cpp:
    1368: error: 'MEDIA_MIMETYPE_AUDIO_WMA' was not declared in this
    scope' in OMAP3
    
    Change-Id: I13325b54b75ff314a567ef4ab8239322630996ff
    Signed-off-by: keun-o.park <sahara@ti.com>
    
    libui: Ensures there isn't an uninitialised function pointer
    
    This patch fix the boot up issue in gingerbread with DDK 1.7.17.4958
    for using cancelbuffer.
    
    Change-Id: I21336878b39efa0b804ce232a23eebe09e3cd5c0
    Signed-off-by: Eric Luong <x0119002@ti.com>
    
    Camera Framework: Adds support for burst messages
    
                            - Burst, Exposure and Temporal
                              bracketing are being started and run
                              with just one call to takePicture. The
                              existing mechanism in CameraService
                              prevents this by explicitly reseting and
                              checking the compressed message
                              type during each dataCallback. The
                              new burst message type on the other
                              hand will continue processing burst
                              frames until the sequence completes.
    
    Signed-off-by: Emilian Peev <epeev@mm-sol.com>
    
    Patch Set 6: Simple cherry-pick on current tree.  No changes made.
    Taking verifications and approvals.
    Signed-off-by: Jean Johnson <jean-johnson@ti.com>
    
    Change-Id: Ib9bfdeae1e4121b5d09f09001224acd9df3b5b40
    
    OMAP4: Enable Camera on Gingerbread
    
    Modify CameraService to select correct overlay format
    
    Change-Id: I4c90cb9161db0d237649f706430e397a4918a1d3
    
    Enable S3D preview in camera framework
    
    Porting over changes from Froyo to enable
    S3D preview.
    
    Change-Id: I47a5ab32072a5b118c8ca8ea239e92aa857e655d
    
    Gingerbread Camcorder : Support for H.263 Encoder
    
    Description : Adds support for H.263 encoder.
    
    Signed Off By : Sreenidhi Koti <Sreenidhi@ti.com>
    
    Patch Set 4: Cherry-picked on current tree.  No changes made.
    Taking verification and approvals from patch set 3.
    Signed-off-by: Jean Johnson <jean-johnson@ti.com>
    
    Change-Id: Ib0ac27fa493b567279cd4a28b121183ca56a9006
    
    OMAP4: S3D: Add SEI Video Encoding configuration support in Stagefrigth
    
    	Description:  Get Camcorder encoder settings and configure OMX component
    		      to incorporate SEI messages.
    
    	Patch Set 7: Set preset values to userdefined in case of S3D
    
    Change-Id: I2982cb71fc8dfdfef33c3b60a97a1c044e083188
    Signed-off-by: Gilles-Arnaud Bleu-Laine <gilles@ti.com>
    
    Removing initial seekTo(0) when playing back camera shutter sound.
    
    This fixes DR OMAPS00236070.  After boot, with headset plugged in,
    when doing an image capture, the shutter sound would play twice due to
    an unnecessary seek from the camera service. The seek in this case is
    happening before the AudioPlayer is created, and thus, it gets treated as
    a deferred seek, which results in the AudioPlayer not being able to do
    a simple end of stream call.
    
    Signed-off-by: Ricky Bhatia <a0866433@ti.com>
    
    Change-Id: I7938657c3ceecc01e09ea14d4e42493e190b8146
    
    OMAP3: Handle NULL pointer exception in RawCallback
    
    Change-Id: Ic3a4ca6d2dd58b864be60d183af16bd9562680bb
    Signed-off-by: Julian Shandorov <jshandorov@mm-sol.com>
    
    Gingerbread Camcorder : Setting the correct colour format for recording
    
    Descrition : Using YUV420PackedSemiPlanar color format for recording use-cases.
    
    Signed Off By : Sreenidhi Koti <Sreenidhi@ti.com>
    
    Change-Id: Iea7316ca75cf52d3e06c708f6cff742da52f4010
    
    OMAP3: set UYVY format for YUV422I CameraSource
    
    OMX.TI.Video.encode uses YUV422ILE(Little endian) for encording.
    So setting YCbYCr caused the incorrect color issue when decoding
    the encoded video clip.
    
    Signed-off-by: keun-o.park <sahara@ti.com>
    
    Patch Set 5: Simple cherry-pick; no changes made. Taking approvals,
    verifications and build test from patch set 4.
    Signed-off-by: Jean Johnson <jean-johnson@ti.com>
    Change-Id: Iad509f0b4d96ec7f4c87c52765043e8281a79917
    
    Fix for EOS buffer sending in Thumbnail mode
    
    In case of thumbnail we are providing 2 codec config buffers and one data buffer.
    The data buffer has EOS flag which triggers the decoding and flushing on the output
    port. It was seen that the input buffer also gets an callback. This was causing next
    input buffer to be send with EOS which is not desired. We want to send only 1 input
    buffer.
    
    Signed-off-by: Dandawate Saket <dsaket@ti.com>
    
    Patch Set 2: Removing whitespace errors.
    Signed-off-by: Jean Johnson <jean-johnson@ti.com>
    
    Patch Set 3: Review comment fix
    
    Patch Set 4: White space removal
    
    Signed-off-by: Dandawate Saket <dsaket@ti.com>
    
    Patch Set 6:  Simple cherry-pick.  No changes made.  Taking
    approvals and verifications from pathc set 5.
    Signed-off-by: Jean Johnson <jean-johnson@ti.com>
    Change-Id: Ic520417621fd4086061a5d8f4185b3d24155c926
    
    Gingerbread Camcorder : Support for MPEG4 Encoder
    
    Description : Adds support for MPEG4 encoder.
    
    Signed Off By : Sreenidhi Koti <Sreenidhi@ti.com>
    
    Patch set 4: Simple cherry-pick on current tree.  No changes
    made.  Taking verifications and approvals from patch set 3.
    Signed-off-by: Jean Johnson <jean-johnson@ti.com>
    
    Change-Id: I2b8c22c3426511bfe5843668885e45afae716297
    
    stagefright: remove memcpy from mp4 parser to OMX input buffer
    
    For AV playback, mem copy from MP4 parser to OMX is a cost operation,
    this patch avoided the intermediate copy from MPEG4Source to OMX I/P
    which is currently configured to use Tiler 1D buffers, audio and NAL
    fragments/multi-slice mode are not impacted by this optimization.
    
    DR#OMAPS00232517
    
    Signed-off-by: Yong Zhi <y-zhi@ti.com>
    
    Patch Set 5: Simple cherry-pick on current tree.  No changes made.
    Taking approvals, verifications and build test from patch set 4.
    Signed-off-by: Jean Johnson <jean-johnson@ti.com>
    Change-Id: I4716d16f64f164d09f7cb6f45f2f051e6f0add33
    
    MPEG4 parser changes for ctts structure
    
    Description: These changes are ported from Froyo.
    Change details:
    MPEG4 parser currently doesnt understand the ctts structure. If decode
    timestamp is not sample as presentation timestamp then the frames will
    be presented to AV sync logic in wrong order.
    
    The mp4 parser mandates to take into account the ctts if the decode &
    display timestamps are not same.
    
    Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
    
    Patch Set 4: Cherry-picked on current head of tree.  No changes
    made.  Taking verifications and approvals from previous patch sets.
    Signed-off-by: Jean Johnson <jean-johnson@ti.com>
    
    Change-Id: I53c3339f8fcba937ac3ddc13ea6810719703ff23
    
    OMXCodec pause/resume scenario handling
    
    Description# For OMXCodec source, there is a pause state, but
    there is no explicit resume state. On resume of Awesomeplayer,
    the OMXCodec is resumed on first read call from AwesomePlayer.
    During this pause/resume transitions, on few iterations, there
    is a starvation of Codec for buffers on the input port, because of previous
    EMPTY_BUFFER_DONE call back couldn't initiate buffer to Codec,
    because of Pause assertion. This is fixed by initiating the
    buffer flow on I/P port in read method if the OMXCodec is resumed
    from pause state.
    
    Validation# Tested AV playback pause/resume multiple times.
    
    patchset2# moved input buffer drain logic before filloutput buffer
    to avoid deadlock.
    
    Change-Id: Id0e72e346b1c9b50e4118007f01ca4ee0610bf75
    Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
    
    SF: removing race condition of setting mOwnedByComponent
    
    This fixes a race condition of setting mOwnedByComponent value.
    Without this fix, setting mOwnedByComponent at the return of
    fill_buffer() call sometimes lose in the race with FillBufferDone
    call which also tries to set mOwnedByComponent.
    To avoid the race condition and keep proper meaning of
    mOwnedByComponent, mOwnedByComponent line should be placed right
    before the fill_buffer() or emtpy_buffer() call.
    
    Signed-off-by: keun-o.park <sahara@ti.com>
    
    Patch set 3: Simple cherry-pick on the current tree.  No changes
    made.  Taking verifications, approvals and build test from patch
    set 2.
    Signed-off-by: Jean Johnson <jean-johnson@ti.com>
    Change-Id: I49a3fd18f7fac48d53956f8294e302f7362be641
    
    Stagefright: Putting back memcpy from a previous change for OMAP3
    
    This change will put back a memcpy removed by a previous change by
    setting the changes to be target specific.
    
    Signed-off-by: Juan Escamilla <juan.escamilla@ti.com>
    
    Patch set 3:  Simple cherry-pick on current tree.  Taking approvals,
    verfication and build test from previous patch set.
    Signed-off-by: Jean Johnson <jean-johnson@ti.com>
    Change-Id: Id1a11c4f85482da2eb2e07057b49e96fda6f094a
    
    OMAP3: enable two ITTIAM encoder codecs
    
    This patch enables the two ITTIAM encoder.
    OMX.ITTIAM.AAC.encode
    OMX.TI.720P.Encoder
    
    Change-Id: I84533191575e7f3be847f5dffb64d7038eb1e7b8
    Signed-off-by: keun-o.park <sahara@ti.com>
    
    Camcorder : Support for No Audio feature in MediaRecorder
    
    By default NB-AMR is enabled for No-audio.
    This patch prevents setting of Audio Encoder Parameters for No-Audio option.
    This patch ports below patch from Froyo to Gingerbread.
    http://review.omapzoom.org/#change,5318
    
    Patchset-2 Adds check for SystemProperties.OMAP_ENHANCEMENT
    
    Signed-off-by : Kalpesh Patil <kalpeshpatil@ti.com>
    
    Change-Id: I408c25ba5d758bd222f4e006ee7e3a7de938927b
    
    FM UI framework changes for FM Rx GUI
    
    The changes are done under OMAP_ENHANCEMENT flag for FM+ Multimedia combo use cases.
    
    cherry picked from p-froyo commit-id 541a8145f7994b59b9334d53a0448f0e43a3d4bb
    
    Change-Id: I5c9f0be1257e855dcd3341eae7eaeb9a01b18906
    Signed-off-by: Shitiz Kumar <shitiz_kumar@ti.com>
    
    Disable capture …
    rmcc committed Jul 19, 2011