omap4xxx: libtimemmgr: remove verbose stacktrace dumps

Change-Id: If074e811a9285904287e4c8ba8c8e559f452b8a6
Signed-off-by: Iliyan Malchev <malchev@google.com>
Add new OMX component for secure playback

Change-Id: Ib55f6a1dd3ef6e9c99798b1bffabeae63671efad
Signed-Off-By:Sarthak Aggarwal<sarthak@ti.com>
Enabling ION buffers for non-secure video usecases

Change-Id: Ic6d53f51f150de6c8c1324aae7464b984eb6ee52
Signed-Off-by:Sarthak Aggarwal<sarthak@ti.com>
Moving Bitstream buffers to ION

The patch moves 1d bitstream buffers needed by video codecs from MemMngr to ION.

Change-Id: I56f010f904a64ae0d36bbc8925498f3748a0ab42
Signed-Off-By:Sarthak Aggarwal<sarthak@ti.com>
CameraHAL:  Fix a memory leak in Face detection

In some cases mFaceData is NOT null and mFaceData->faces is NULL.
In such cases we end up not freeing mFaceData. This patch takes
care of this case and frees mFaceData in such cases.

Change-Id: Ia73161064bec6f30f947f3ab596e09354e9d4b6d
Signed-off-by: Sundar Raman <sunds@ti.com>
hwc: account for 1 16MB tiler slot instead of 4 4MB one

This requires corresponding kernel change that manages TILER1D
mappings into 1 large tiler slot.

Change-Id: I868e2c252378ef74c343876eb94c15fe549cd2ed
Signed-off-by: Lajos Molnar <molnar@ti.com>
hwc: account for 1 16MB tiler slot instead of 4 4MB one

This requires corresponding kernel change that manages TILER1D
mappings into 1 large tiler slot.

Change-Id: I868e2c252378ef74c343876eb94c15fe549cd2ed
Signed-off-by: Lajos Molnar <molnar@ti.com>
DOMX: Unmap the complete ION buffer while tearing down the component

Change-Id: Iac07645546e352c37170eb46602bd1b6555fe85a
Signed-Off-By:Sarthak Aggarwal<sarthak@ti.com>
omap4xxx: libion: mark a private function as static

Change-Id: I665953204c631300f1dce8a928daacde203399bb
Signed-off-by: Iliyan Malchev <malchev@google.com>
CameraHAL: Handles "abandoned" preview SurfaceTexture

    - It's possible for the camera client to "abandon" the
      preview surface at any time. In this case the SurfaceTexture
      will start returning ENODEV error codes on every call.
      ANativeWindowDisplayAdapter should handle this case and
      not try to call the SurfaceTexture any more. If this is
      not the case, then there is a chance of a segfault in
      MediaServer.

Signed-off-by: Emilian Peev <epeev@mm-sol.com>

Change-Id: Ic529cffae5315cbe6316e583b399d3bd7a44b75c
Signed-off-by: Sundar Raman <sunds@ti.com>
CameraHal: Enable face priority 3A

    Enable face priority 3A when starting face detection
    and reset to 3A parameters from CameraParameters when
    stopping face detection. Ignore 3A parameters set by
    application if face detection is started.

Signed-off-by: Tyler Luu <tluu@ti.com>

Change-Id: I54ded2b3612f3191f6f4c3a6151ea6013b1d06a0
Signed-off-by: Sundar Raman <sunds@ti.com>
CameraHAL: OMX algo priority re-design

    - Allows stacking of different algorithm priorities.
    - Resolves an issue with AF not functioning after
      one iteration.
    - Contains a couple of fixes related to WB and
      Exposure priority modes.

Signed-off-by: Emilian Peev <epeev@mm-sol.com>

Change-Id: I9c2848e776c727cd9cc3691221621f895dc5507b
Signed-off-by: Sundar Raman <sunds@ti.com>
CameraHAL: Fixes a possible segfault during deinitialization

    - If the client releases the camera when the
      ANativeDisplayAdapter is paused, then a segfault
      is possible. This is due to the deferred
      deinitialization of ANativeDisplaAdapter in it's
      destructor. By this time 'mPreviewWindow' in
      'CameraHardwareInterface' is already NULL and
      all further calls involving it will result in a
      segfault.
    - Contains a fix for several CTS tests including
      #testJpegThumbnailSize and #testJpegExif.

Change-Id: I030e8fdccdacc6d3bf08550da562eac90b50adc3
Signed-off-by: Sundar Raman <sunds@ti.com>
CameraHAL: Fixes related to CTS test #testFocusAreas

    - The recording hint implementation was bypassing
      the logic for restoring the original correct
      CameraParameters, which is needed for passing the
      test.

Signed-off-by: Emilian Peev <epeev@mm-sol.com>

Change-Id: I8c119153dfedab5511955bff1d4c1193014ed720
Signed-off-by: Sundar Raman <sunds@ti.com>
DOMX: Clear metadata data after alloc

    There was stale data in the metadata buffers during
    initial few FBDs before omx component was ready to
    fill the data. Seeing this in face detection usecase
    where a few false rectangles are being shown when
    the app is first opened.

Signed-off-by: Tyler Luu <tluu@ti.com>

Change-Id: I442d90a2e81ed0439ea0257850abfa9e0d0da1b1
Signed-off-by: Sundar Raman <sunds@ti.com>
Camera HAL: Fixes for Face prioritized 3A, cancelAF

1. Face prioritized 3A is enabled for AF, AE (for AE it is disabled)
2. White balance modes, exposure are allowed to be changed when face detection is ON
3. Focus metering area is ignored when face detection is ON
4. CancelAF is fixed to not retain the focus mode for CAF and infinity modes

Change-Id: I43650069d4de95815381974072f5b9afabf4fc46
Signed-off-by: Sundar Raman <sunds@ti.com>
camera_test: some fixes for resolving segfaults and adding glbce

Change-Id: I0ba8aa2ad585fee34b29863e71f7f672830802bf
Signed-off-by: Sundar Raman <sunds@ti.com>
Free a ion buffer in domx only when it is allocated by DOMX

Change-Id: I1b6bb594740122c753d21eaa7a739a8e500ab57d
Signed-Off-By: Sarthak Aggarwal<sarthak@ti.com>
CameraHAL: Adds support for 'autoFocus()' calls during CAF

- Previously during CAF any calls for doing AF were
  immediately returning status. The patch will check if
  CAF has succeeded in locking and if this is not the case
  it will temporarily switch to 'auto' triggering a full
  AF sweep. CAF is again restored afterwards.
- Additionally this patch adds support for canceling AF
  during 'PREVIEW_STATE' state, which is needed in order
  to release the 3A lock after AF

Change-Id: Ie8c9b77fb134e63ed668a22453c1672b34488d94
Signed-off-by: Sundar Raman <sunds@ti.com>
CameraHAL: fixes the UV buffer start address calculation.

Signed-off-by: Solaiyappan Saravanan <saravanan.s@ti.com>

Change-Id: Ie3ed733fb163ac686c9d42766923ccc7e3715a5e
Signed-off-by: Sundar Raman <sunds@ti.com>