History log of /hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
c78626b15e9f29a5bcf85447ceafb17dcbf58b69 20-May-2012 Emilian Peev <epeev@mm-sol.com> CameraHal: Avoids possible race conditions while accessing 'mParams'

- Direct access of 'mParams' outside of 'get-/setParameters()' should
be avoided. The underlying strings can get invalidated with each
call to 'setParameters()', which can lead to instabilities.
- This change also removes legacy stereo code, which is not used
any more.

Bug: 6509329

Change-Id: Ief6df206c33fbdc666644cea8630e0bce6a36c00
Signed-off-by: Emilian Peev <epeev@mm-sol.com>
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
1e67b5ff2e8016d506cb29900b476435f03cb3a3 06-Apr-2012 Emilian Peev <epeev@mm-sol.com> CameraHal: Remove lock queries from 'mParams' during 'getParameters()'

- A race condition with 'set3ALock()' is possible, which
can lead to a segfault during calls to 'getParameters()'.

Bug: 6255665

Change-Id: Id64cf3ccfa1e47501d7ba0fb892f2f72329a2ad6
Signed-off-by: Emilian Peev <epeev@mm-sol.com>
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
baed3f89bba1cbd3720656f7125f25705be38db7 01-May-2012 Emilian Peev <epeev@mm-sol.com> CameraHal: Add support for YUY2 preview callbacks

- The currently used Gralloc buffers for preview
are limited to only NV12 pixelformat. In order
to support this type of preview callbacks,
CameraHal will internally convert from NV12 to
YUY2.

Bug: 6419136

Change-Id: I879e32d4b2142bdd0a1f89fe7c5496d250039b73
Signed-off-by: Emilian Peev <epeev@mm-sol.com>
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
d8bf3dc07ef357eb0761cfdacab458f2358907aa 02-May-2012 Emilian Peev <epeev@mm-sol.com> CameraHal: Do full AF sweep during lost AF status

- Previously only "OMX_FocusStatusUnableToReach" status
was activating the full AF scan. Currently with CAF
callbacks updates in Ducati, this is no longer the case
and "OMX_FocusStatusLost" should be considered as well.

Bug: 6378194

Change-Id: Ib296c6d7197cd275a9e5106f791451f4179be3e9
Signed-off-by: Emilian Peev <epeev@mm-sol.com>
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
f2170decdf6bf41e590842b0fe5c0ed3852ebec3 14-Mar-2012 Emilian Peev <epeev@mm-sol.com> CameraHal: Speedup face detection start

- Currently when face detection gets enabled
the face priority for AE and AF is getting
configured as well. This configuration takes
around 18 ms. on average and can delay the
overall startup time. The optimization will
move the algo setup away from face detection
enablement and in to the FillBufferDone
callback.

Bug: 5488236

Change-Id: I2b0e8df9fdead7a5d761a1efbcbf57d39e27ae3c
Signed-off-by: Emilian Peev <epeev@mm-sol.com>
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
fe3dccf76b03fe7e226ecc7c128dbc9e53d835a9 17-Nov-2011 Tyler Luu <tluu@ti.com> camera: fix deadlock because of mStateSwitchLock

When OMXCameraAdapter::UseBuffersPreview() is failing
mStateSwitchLock must be unlocked.

b/6046798

Change-Id: Ie9ecccc2e23b0a31b2972beb0411faca279d5d0c
Signed-off-by: Daniel Levin <dendy@ti.com>
Signed-off-by: Tyler Luu <tluu@ti.com>
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
796f0f82433a3040198f216d15fd9ce17c04f360 19-Mar-2012 Emilian Peev <epeev@mm-sol.com> CameraHal: Remove excessive focus mode configurations

- This change should improve overall stability during
image capture. Configuring focus mode while image
capture is active is always going to result in
'OMX_ErrorBadParameter'.

Bug: 6026480

Change-Id: I735c5d25adc293d163f77488c0dc6d30a636544b
Signed-off-by: Emilian Peev <epeev@mm-sol.com>
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
da310a303b2b48404f31645cf660063517da3e8a 15-Dec-2011 Emilian Peev <epeev@mm-sol.com> CameraHal: Omit 'apply3Adefaults()' during initialization

- This change should improve the standby to first shot
PPM

bug:6136966

Signed-off-by: Emilian Peev <epeev@mm-sol.com>
Change-Id: I20ffd1178a64b77d45b35bac1cf04be21d2d602b
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
a6e9160507cd4c0d276fbe45a1efb1dae28c3998 09-Mar-2012 Emilian Peev <epeev@mm-sol.com> CameraHal: Cuts down execution time of 'get-/setParameters()'

- The change utilizes two approaches:
Wrap unused parameters in 'OMAP_ENHANCEMENT' macro.
Minimize usage of CameraParameters.

bug:6136966

Change-Id: Ie4a4d2f007e6571ee9a403ed68e977d6cbf6756b
Signed-off-by: Emilian Peev <epeev@mm-sol.com>
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
ac0cf36b98237ec911f49e7b1b93ef6464666e48 07-Feb-2012 Emilian Peev <epeev@mm-sol.com> CameraHal: Various AF related fixes

- In case of AF timeout the focus callback was being
disabled. This callback will not get re-enabled
again until preview is restarted.
- Cancel AF is not working properly. Depending on the
timing the off status event might not reach 'doAutoFocus()'.
- This change also replaces the 'mDoAFSem' semaphore with
a condition variable.

Change-Id: I2ab7d87a05d97435aa6e67a122cc37a975794fc2
Signed-off-by: Emilian Peev <epeev@mm-sol.com>
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
c1b78765729c878af2016c05e6a036e688191f95 02-Feb-2012 Emilian Peev <epeev@mm-sol.com> CameraHal: Avoid possible segfaults in 'setExtraData()'

- There is a chance that the OMX component could get released
while 'startImageCapture()' is still waiting for the shutter
callback. In this case we should omit the extra data
configuration.
- Should fix bug: 5911295

Change-Id: I82344573e56d7b58f119f68905e2fa1eaa3d69fe
Signed-off-by: Emilian Peev <epeev@mm-sol.com>
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
057f4fd59ec05ded909e9eb9a3363d9ea345b0ca 31-Jan-2012 Tyler Luu <tluu@ti.com> CameraHal: Implementation for CAF status callbacks

1. Remove internal handling of CAMERA_MSG_FOCUS. Before we were
enabling CAMERA_MSG_FOCUS only when application calls autoFocus().
No longer needed since the CAMERA_MSG_FOCUS can come just during
preview now.

2. Add handling of unregistered focus callbacks. Since OMXCamera
will send callbacks even when we are not waiting for one, add some
handling.

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

Conflicts:

camera/OMXCameraAdapter/OMXFocus.cpp
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
46de639b23db99d7b99ff1c676ac98b84b6336c6 08-Jan-2012 Steve Block <steveblock@google.com> Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGE

See https://android-git.corp.google.com/g/#/c/157220

Bug: 5449033
Change-Id: I7d131473964d92c62a495d082a1207867f435885
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
3a7df2c042eb8c7289e24e77dd316f73bd0c456f 20-Dec-2011 Steve Block <steveblock@google.com> Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF) DO NOT MERGE

See https://android-git.corp.google.com/g/156016

Bug: 5449033
Change-Id: I551e5a040249a8908251cd8c8d7131287f1f53de
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
c387abd774bbc0aa23314bb989c1dec23e588a22 01-Nov-2011 Akwasi Boateng <akwasi.boateng@ti.com> CameraHAL: Handling OMX initialization

Additional mOmxInitialized flag has been added to
track whether OMX has been succesfully initialized
to prevent duplicate OMX_DeInit() in OMXCameraAdapter
destructor.

Signed-off-by: Daniel Levin <x0155538@ti.com>
Signed-off-by: Akwasi Boateng <akwasi.boateng@ti.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>

Change-Id: I269c5ac9d5de3f3e9088a11a3bea7127c1bd79de
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
7ce015866d4be66a147e9cacbe70a376dd1e6360 30-Nov-2011 Iliyan Malchev <malchev@google.com> am 67496a60: am 3ffd5d43: Merge changes I0878a9f8,I1011252e into ics-mr1

* commit '67496a60c60076166f6856431f68024a9412c067':
CameraHAL: Perform focus even if CAF has failed
CameraHAL: Enable LDCNSF for Video snapshot
d9520b9de06f01b9411307040cf245e6fc7fe361 12-Oct-2011 Milen Mitkov <mmitkov@mm-sol.com> CameraHAL: Enable LDCNSF for Video snapshot

Enables LDCNSF for Video snapshot, also adds start_offset and right_crop fields
to the JPEG encoder wrapper, because the image with LDCNSF has artifacts on top
and right.

Change-Id: I1011252e3f8068083f9d057b7763b7f79c59a75d
Signed-off-by: Milen Mitkov <mmitkov@mm-sol.com>
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
ef73bec8a83a2fd7fbb072d009382c64eb2da0ee 19-Oct-2011 Tyler Luu <tluu@ti.com> CameraHal: Add more Exif data for video snapshot

Fixes b/5582076. Requires changes to Ducati and external/jhead.

1. Add API to get and set ancillary data metadata so
we can use the values to fill in Exif data.
2. Add support for additional tags.

Change-Id: I537e683839c59e92a4a20ff62653b6d46e303f53
Signed-off-by: Tyler Luu <tluu@ti.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
00bd0f01354b2a6d7d447b210adc011394e36595 18-Nov-2011 Iliyan Malchev <malchev@google.com> am 8d18af6d: am e4639448: CameraHAL: clean up logs

* commit '8d18af6dfd68f047c2bcf82fe88eeeb623eafa0c':
CameraHAL: clean up logs
e46394481e771dbdc8683645c3740a3d262a3d0f 17-Nov-2011 Iliyan Malchev <malchev@google.com> CameraHAL: clean up logs

-- introduce CAMHAL_LOGI so that we don't have to dump informational messages
as LOGE
-- convert some verbose messages to CAMHAL_LOGDB
-- convert most frequent non-error log messages to CAMHAL_LOGI

Change-Id: I8afc24aa17da2c157b7b37300a79b4cde81f87e5
Signed-off-by: Iliyan Malchev <malchev@google.com>
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
2f2b0c51d518e35eac8aa2d4dc23e8eeaba9e039 10-Nov-2011 Tyler Luu <tluu@ti.com> am 8a2c7a2d: am 8eedae16: am 50f5c8a3: CameraHal: WA for green thumbnail for video snapshot

* commit '8a2c7a2d44408aea33beef1775c7b925211d1aae':
CameraHal: WA for green thumbnail for video snapshot
b5aa27b1eb67502450213b8c49f4e12454c4d284 10-Nov-2011 Sundar Raman <sunds@ti.com> am fef08387: am 7e51020e: am f9df3ee5: CameraHAL: Clear events queue fix, clear command queue on exit

* commit 'fef083876a27ebab9451c0151ce6fbaae0f66ccf':
CameraHAL: Clear events queue fix, clear command queue on exit
fef6b7d10925aebbfdcea86a0e7a768fd86a1a2d 10-Nov-2011 Sundar Raman <sunds@ti.com> am d3278ddd: am 977fc7e4: am 3ec18006: CameraHAL: Fixes for ANR and a setParameter issue

* commit 'd3278ddd57085e8d7f261defbdfaed4d5bbea167':
CameraHAL: Fixes for ANR and a setParameter issue
50f5c8a33223364870a21fb84eabe48c806697fd 10-Nov-2011 Tyler Luu <tluu@ti.com> CameraHal: WA for green thumbnail for video snapshot

WA for regression introduced with:
'cf0a61f135: CameraHAL: Use Ancillary data to check for snapshot"

Video snapshot postview frames are not currently being tagged
with the ancillary data. Let this check pass through when in
video mode.

Change-Id: I9b3aacb902d15f1cd7f993f6664976299fcb0427
Signed-off-by: Tyler Luu <tluu@ti.com>
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
f9df3ee5cfb3c3177bcc630abf6d756e8a60254c 10-Nov-2011 Sundar Raman <sunds@ti.com> CameraHAL: Clear events queue fix, clear command queue on exit

Fix 2/3 for b/5593964.

1. The events queue wasn't being cleared correctly inside
OMXCameraAdapter as some items were being removed while the
index was being formulated based on the original size
2. The command queue should be cleared before posting the EXIT
message for the OMX adapter threads so as not to process those
messages since we are exiting

Change-Id: I0a5eaceb3d1504fee05b064ebb5fe888e129ad44
Signed-off-by: Sundar Raman <sunds@ti.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
3ec18006399d61e97382601d14aaa43ee339c8b6 08-Nov-2011 Sundar Raman <sunds@ti.com> CameraHAL: Fixes for ANR and a setParameter issue

Fix 1/3 for b/5593964.

1. Ensure we don't race with stopImageCapture when stopPreview is called
2. Signal the shutter callback correctly
3. Do not crash the media server if focus APIs and image capture returns error
Still go ahead and perform de-init
4. Replace setParameter from CameraHAl to AppCallbackNotifier with getParameter
when needed.

Change-Id: I2b2745827d227a8d7927ce1611a84c29129e8891
Signed-off-by: Sundar Raman <sunds@ti.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
db5e469989b0a12d9d2e07968dad82cd07c8616e 10-Nov-2011 Vladislav Hristov <vhristov@mm-sol.com> am a7c06115: am efa626c4: am 956c27e3: CameraHal: Apply3aSettings at start preview

* commit 'a7c06115a023e4160d2ef922fc0930098642293c':
CameraHal: Apply3aSettings at start preview
956c27e300323eceafcca1ad77fc74ef837a5cbb 08-Nov-2011 Vladislav Hristov <vhristov@mm-sol.com> CameraHal: Apply3aSettings at start preview

Fixes b/5515136.

Change-Id: I3b462b337f42be7ebe07642f5298f45bb1431daa
Signed-off-by: Vladislav Hristov <vhristov@mm-sol.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
e07582bc653030bdfd7957f148d9ab8baf28f1ba 07-Nov-2011 Tyler Luu <tluu@ti.com> am 3c86a542: am fe3c9139: CameraHal: Wait for frame before stopping preview

* commit '3c86a5424fa4a0099d66172ff8b0a00eda9fd528':
CameraHal: Wait for frame before stopping preview
fe3c9139602c77b4890370307b63e1ab9990a75b 26-Oct-2011 Tyler Luu <tluu@ti.com> CameraHal: Wait for frame before stopping preview

Fix 3/3 for b/5472396.

We should wait for the first frame to come before trying to
stopPreview. If not, we might put OMXCamera in a bad state
i.e (IDLE->LOADED timeout). Seeing this a lot after a capture

Change-Id: I4ac6cc4f12bdc0d4d73e065b7c53caf8a440a43c
Signed-off-by: Tyler Luu <tluu@ti.com>
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
16be25dbc86a6a32514fffb347606e75ea83dd95 02-Nov-2011 Milen Mitkov <mmitkov@mm-sol.com> am eb3ed8e7: am 3c272a99: CameraHAL: Return status after CAF finishes

* commit 'eb3ed8e75abbe8785b86a47851f4d7e98300006c':
CameraHAL: Return status after CAF finishes
cd06844153a66b17f5c51682b1819bce87f28793 02-Nov-2011 Milen Mitkov <mmitkov@mm-sol.com> am 9b4a3604: am cf0a61f1: CameraHAL: Use Ancillary data to check for snapshot

* commit '9b4a3604f53dbd3f41ee380fa1a041834490b688':
CameraHAL: Use Ancillary data to check for snapshot
3c272a993dfc4ca153b09e5ec1e651f75eab90c4 28-Oct-2011 Milen Mitkov <mmitkov@mm-sol.com> CameraHAL: Return status after CAF finishes

If the user initiates autofocus while CAF
is scanning (e.g. when capturing),
wait until CAF finishes and just then
notify the focus subscribers.

bug:5514415

Change-Id: I971783c74f9977755cc93cdba964e4fcd3a2ab0a
Signed-off-by: Milen Mitkov <mmitkov@mm-sol.com>
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
cf0a61f13533d70cb7ad700330de94142c2afe6a 26-Oct-2011 Milen Mitkov <mmitkov@mm-sol.com> CameraHAL: Use Ancillary data to check for snapshot

Uses the ancilary data field nDCCStatus to check
if the preview frame is a snapshot.

Fixes a rare issue in which a normal (non-snapshot)
preview frame is received after capture has started.

Change-Id: I242c17ee3dd1365eb24c6c15585bb125f6938dee
Signed-off-by: Milen Mitkov <mmitkov@mm-sol.com>

related-to-bug: 5472396
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
e6d87d1ea3c5c0de9d517745b17518351fd3b34c 31-Oct-2011 Tyler Luu <tluu@ti.com> am 0f2338c5: am 39ad5f81: CameraHal: Limit 1080p framerate max

* commit '0f2338c555446e851e6290882db06a5418257a96':
CameraHal: Limit 1080p framerate max
39ad5f81c0a0cb884fafdf66a24a9473c72b2c25 28-Oct-2011 Tyler Luu <tluu@ti.com> CameraHal: Limit 1080p framerate max

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

related-to-bug: 5508276
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
2794ffaa278c6112ca357fd46280d450bf5dc002 27-Oct-2011 Tyler Luu <tluu@ti.com> am df6023f6: am fd705eb8: CameraHal: Fixes for #testFocusDistance

* commit 'df6023f6fd9a515da9cec0e98ea303306b14c5d8':
CameraHal: Fixes for #testFocusDistance
fd705eb8b757a4f3d1d80b736cf20cade04524d7 21-Oct-2011 Tyler Luu <tluu@ti.com> CameraHal: Fixes for #testFocusDistance

1. Seperate OMXCameraAdapter cancelAutoFocus with unsetting focus
lock. Adding new internal parameter to unlock focus from the
cancelAutoFocus in CameraHal. We need to cancel auto focus during
stop preview in case it is still running. If we do the unlock in
OMXCameraAdapter then, focus distance can change after stopPreview.

2. If autoFocus or takePicture comes after startPreview but before
the first preview frame comes, then sometimes the focus distance
queried after the calls won't be correct since OMX camera might
still be transitioning.

3. Update focus distances when focus is running.

b/5473673

Change-Id: I5a27d78aef437a1601a68e8c08fa860f04fc0c55
Signed-off-by: Tyler Luu <tluu@ti.com>
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
ac837f2654f5a7a7fbecf05e4b085b87a7701714 20-Oct-2011 Steve Block <steveblock@google.com> Rename LOGV(_IF) to ALOGV(_IF) DO NOT MERGE

See https://android-git.corp.google.com/g/#/c/143865

Bug: 5449033
Change-Id: Ic854588fa661ebcc63395c388bf98af268b709c7
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
3fbff633f24c84f421b86fce7153d872e8b35dc2 24-Oct-2011 Akwasi Boateng <akwasi.boateng@ti.com> Fix for double OMX_Deinit() calls

Change-Id: I43260d50a284a7d651b6309b344404bf45c7a617
Signed-off-by: Akwasi Boateng <akwasi.boateng@ti.com>

related-to-bug: 5451993
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
759396a116bb2caf006405777a626fe9a8708114 20-Oct-2011 Tyler Luu <tluu@ti.com> CameraHAL: WA for #testSceneMode

testSceneMode requires parameters to be updated properly before
starting preview. OMX Camera doesn't currently support this so
we are just going to keep a hard-coded LUT for the scene modes
for now.

Change-Id: I40c4492834d43c9328c87fd7aa4ea06fb1f1d90b
Signed-off-by: Tyler Luu <tluu@ti.com>
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
697f06bc7657009b807865ba424e0b6dd33392e2 20-Oct-2011 Sundar Raman <sunds@ti.com> CameraHAL: Disable AF assist in stop preview

If AF assist is ON when switching to video mode and flash is
not set to OFF before switching, then the torch mode is
somehow turned ON and never turns OFF.

Since AF assist is not used after stopping preview,
set it to OFF

Change-Id: I44c9e6359a0488d235929f6bf1cdd4b257565caf
Signed-off-by: Sundar Raman <sunds@ti.com>
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
70e04f3b54d5100621ffa631dbc81579d2cc3c8c 19-Oct-2011 Tyler Luu <tluu@ti.com> CameraHal: Select proper CAF mode for scene feedback

We were not choosing the right CAF mode during scene mode
feedback because CAF video has precedence in the focus mode
LUT. Adding some logic to select CAF picture if we are not if
video mode.

Change-Id: I98260dae04708d5d42248cbafa4adb57ce18221f
Signed-off-by: Tyler Luu <tluu@ti.com>
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
fab72086a1fa5d93037ec1355bc8b01355db0f41 18-Oct-2011 Tyler Luu <tluu@ti.com> CameraHAL: Keep image port enabled if possible

Try to keep the image port enabled if possible after capturing
an image. We need to disable the image port if any settings are
changed or when stopping preview. To disable image port, buffers
also have to be freed, and to keep the image port enabled, the
same buffer needs to be used. So, we are reenabling functionality
to trigger free the image buffer from camera adapter to free the
buffer as late as possible and as required by camera adapter.
Skip image buffer allocation if it is already enabled.

Fixes issue with some jerks seen in preview during video
capture while taking snapshot.

b/5449158

Change-Id: I830cf8512fe039df10d28e1f5a22e61e30840852
Signed-off-by: Tyler Luu <tluu@ti.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
4f29332694e8222b3f1fae39d40edcdec1dec1bd 14-Oct-2011 Tyler Luu <tluu@ti.com> CameraHAL: Recorded video has jerks with video snapshot

Avoid video frame drops during video snapshot. We were previously not
sending the video frame to AppCallbackNotifier because the first
frame after video snapshot was considered a snapshot (postview) frame.
This patch sets the video frame mask regardless of preview or snapshot
frame during recording

b/5449158

Change-Id: Idaecbaa53686b81428a3d63ea95481f5b6eff23d
Signed-off-by: Raji Reddy Kandi <rajireddy.k@samsung.com>
Signed-off-by: Tyler Luu <tluu@ti.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
c78fa2adcbe6ab50b751a45adde4483de528c5e6 14-Oct-2011 Milen Mitkov <mmitkov@mm-sol.com> CameraHAL: Always reset focus mode after capture

Workaround when doing many consecutive shots,
CAF wasn't getting restarted.

Change-Id: Ibef033535360dc534de2b761861f7e9c5e79aec2
Signed-off-by: Milen Mitkov <mmitkov@mm-sol.com>
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
11be32ce333557c09434611f69830e19aca55e72 19-Oct-2011 Tyler Luu <tluu@ti.com> CameraHal: Only feedback supported params

Check to see if the updated param from scene mode selection
is supported before reporting it back to application in
getParameters. Work-around for Ducati not always reporting
supported 3A parameters for a particular scene mode.

Change-Id: Idc05f150df081b1a2b6c841730da08713b64fd47
Signed-off-by: Tyler Luu <tluu@ti.com>
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
39ab34daa6770e0995b7184ae7fd9c9213136f52 18-Oct-2011 Heechan Park <heech.park@samsung.com> Flash and WB are not restored in video mode when camera comes to foreground

Fixes b/5475271

1) Switch to video mode, enable Flash to ON
2) Press Power key, Flash is switched oFF
3) Press power key and open camera, Flash is Not switched ON.
Fix: Updating the WB, Flash and Focus values only when Scenemode is active.

Change-Id: I35f852c2611644e0115bbf12f5110d92374e6c90
Signed-off-by: Braganza Sam Roberts <sam.braganza@samsung.com>
Signed-off-by: Heechan Park <heech.park@samsung.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
9c37a78ac28cf4a6ee966d29dbbf3468e5ad74c4 13-Oct-2011 Sundar Raman <sunds@ti.com> Camera HAL Optimizations for cold startup time

1. Removes 100mS latency introduced in OMX_GetHandle
2. Calls apply3ASettings and advanceZoom after sending the callback to display (saves ~30mS)

Change-Id: I58a1f81ede4439cd19587c8390681062792fb5a8
Signed-off-by: Sundar Raman <sunds@ti.com>
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
312fa6b1a184b5e3aaedf66e6a348d17d9e38bd8 18-Oct-2011 Tyler Luu <tluu@ti.com> CameraHal: Share a lock for exec and loaded switch

Share a lock between switchToLoaded function and doSwitchToExecuting,
so the two don't try to switch state at the same time.

b/5472446

Change-Id: I425943b97b7f08d1f7812214e4a305eb86af1ff9
Signed-off-by: Tyler Luu <tluu@ti.com>
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
517107e1d948fe9268ed51b3baff64891d9b0c20 13-Oct-2011 Tyler Luu <tluu@ti.com> CameraHal: Allow EV compensation w/ preset scene

CameraHal was previously ignoring EV compensation when a scene mode
was set.

Change-Id: I15023a5c6019ca333a4ce40f178a8e4ef53be387
Signed-off-by: Tyler Luu <tluu@ti.com>
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
e552120201f0e53a6e5c9f816e91739dc4ec1e0b 11-Oct-2011 Tyler Luu <tluu@ti.com> CameraHal: Enable 3A feedback for scene modes

When a scene mode is set by the application, some 3A parameters
will be updated by Ducati. Feed these parameters back to the
application.

Change-Id: I07afec0315d2807470037388572d0bc7ee8c3ad8
Signed-off-by: Tyler Luu <tluu@ti.com>
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
41471bd18fc9a28371c4d89283f2082b513f2226 14-Oct-2011 Iliyan Malchev <malchev@google.com> omap4xxx: camera: not an error when callback threads are already running

Potential fix for b/5431225 (if not, it will point in the right direction)

-- When CallbackThread or OMXCallbackThread is already running during
initialization(), do not treat this as an error.
-- Print an error on logcat when the OMX component state is not as expected
during intialization

Change-Id: Icf7312e609a7a17ccaf412d3c3fe6a5075de00f7
Signed-off-by: Iliyan Malchev <malchev@google.com>
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
1c7383822ebd9f8e70d7eec6dd204bb691d29c47 08-Oct-2011 Sundar Raman <sunds@ti.com> CameraHAL: Pass zoom values smoothly

Update the zoom values to the ducati only in the
fillBufferDone callback if another zoom request
is already in progress. However, overwrite the
zoom value with the latest value requested by the
application

Fixes b/5251916

Change-Id: I419baadb2ddd094277f003ddf25f63dca5d078f8
Signed-off-by: Sundar Raman <sunds@ti.com>
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
b5abb7cbdf48ecccbf0e6d5e61a1846c0c4b28a5 01-Oct-2011 Tyler Luu <tluu@ti.com> omap4xxx: camera: set capture settings only if changed

Partial fix for b/5371242

Only set capture configs when they have changed from our current setting to
save some SetConfig time.

Change-Id: I68d7b7ebd4be3273abd534ce8e939da62d38d481
Signed-off-by: Tyler Luu <tluu@ti.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
7016577b173fc73f5b43e76cbc122bb0a9346613 30-Sep-2011 Akwasi Boateng <akwasi.boateng@ti.com> omap4xxx: camera: switch to executing state when surface is null

Partial fix for b/5422679

To enhance standby to first shot performance

Change-Id: Ib32e8120a7908419c76e8cf2f1830f0667b258c0
Signed-off-by: Akwasi Boateng <akwasi.boateng@ti.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
9a412956d5327ec851ff8adc3e9804640fa30c7f 06-Oct-2011 Tyler Luu <tluu@ti.com> CameraHal: Allow only certain number of instances

1) Protect against simultaneous access to camera_device_open
2) Set a value of MAX_SIMUL_CAMERAS_SUPPORTED to dictate number
of simultaneous cameras that can be open at once. Set to 1 for
now in this patch. Return error if more is requested.
3) Change OMXCameraAdapter to allocate new instance for each
factory create call.
4) Add lock to capabalities factory function in OMXCameraAdapter
to protected against multiple OMXCamera GetHandles...

b/5401791 b/5404200 b/5405235

Change-Id: I179d493f8070d228877ebfac637047978afc7d55
Signed-off-by: Tyler Luu <tluu@ti.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
b3fb1a45ce906ab0365f247caf596665ea0c9f39 26-Sep-2011 Sundar Raman <sunds@ti.com> CameraHAL: Improved error handling inside the adapters

1. unlock and cancel buffers to ANativeWindow when freeBuffers is called
2. Free the omx handle and deinitialize DOMX when errors occur while
calling critical OMXCamera apis
3. Retry OMX_GetHandle if it fails to take care of error recovery
scenarios.

"Fixes b/5379663"

Change-Id: I4729fab40e6104dfa6660ba6f6b1a90f805c2f59
Signed-off-by: Sundar Raman <sunds@ti.com>
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
2bc5d70a6c9ca52c7d2fbafdf545b42aef08215a 23-Sep-2011 Tyler Luu <tluu@ti.com> CameraHal: Changes to releasing of focus lock

Do not release focus lock during stopPreview and after
takePicture.

bug:5356404

Change-Id: Ib7078f5261ee21579143c4519896d1b13874697b
Signed-off-by: Tyler Luu <tluu@ti.com>
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
f9e7d93cfc739190426ae5c3d204980ec8b2e475 23-Sep-2011 Akwasi Boateng <akwasi.boateng@ti.com> Make previous zoom index a member variable

Change previous zoom index variable from static to
member variable since variable is not reset when
application is closed or during suspend resume.

Change-Id: I7a757655dc7e5b30d21716dd38908f3d18131cde
Signed-off-by: Akwasi Boateng <akwasi.boateng@ti.com>
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
0e2a9f1fabc12a1a1123f8374d0e4d6faf5a2d62 20-Sep-2011 Tyler Luu <tluu@ti.com> CameraHal: Changes to 3A lock implementation

1) Only take user set values for AE and AWB locks. Decouple
interaction between AE/AWB locks and AF/takePicture/stopPreview
2) When in CAF mode, if we query AF and see that focus is already
locked, we do not have to call SetConfig for OMX_IndexConfigFocusControl.
Just return the status to upper layers instead.
3) If user doesn't call cancelAutoFocus after a doAutoFocus call, we
need to forcefully unlock AF to ensure we do a scan. This would also
essentially render CAF as normal auto AF.

bug:5356404

Change-Id: I5bb840ca0122d8a9387f72290d2b421703dba23d
Signed-off-by: Tyler Luu <tluu@ti.com>
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
b8923d57614400f11c61a524e15f040dd68d25bc 22-Sep-2011 Devaraj Rangasamy <dev@ti.com> OMXCameraAdapter: Update timstamp calculation and comment

In timestamp calculation, latency incurred in Ducati camera buffer
reaching CameraHal should be considered

Patchset 2:
- Updated variable name, migrated to header file
- Update comment description

Change-Id: Icc93c27a66477867e9c415b139a331646eb2fba8
Signed-off-by: Devaraj Rangasamy <dev@ti.com>
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
8e88af31129b8cc09675279ca2eac88256d8526b 16-Sep-2011 Akwasi Boateng <akwasi.boateng@ti.com> Grallock lock and unlock fixes

1. Get and store Y and UV pointers from
all gralloc handles to be used for
preview callback and video frames.
2. Ensure gralloc lock is successfull
before frame return to OMXCameraAdapter

Change-Id: Ibeea6d00f2c1a1c45bcd2eafb22b90a795516e5c
Signed-off-by: Akwasi Boateng <akwasi.boateng@ti.com>
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
7b4990d47f1765a2264cdf925730e486791c2d1c 19-Sep-2011 Tyler Luu <tluu@ti.com> CameraHal: Debug prints from "CameraHal: Error handling before sending frames"

Fix debug macro mismatch and some levels from "CameraHal:
Error handling before sending frames"

Change-Id: Ib8b4a7b09b32246aa9d972b91a72f53a139e5773
Signed-off-by: Tyler Luu <tluu@ti.com>
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
9dc08c5fb736308cfca6659f66b14165b265baeb 19-Sep-2011 Tyler Luu <tluu@ti.com> CameraHal: Lock focus after AF completion

1) Add API to use OMX_IndexConfigImageFocusLock to lock autofocus
2) Remove FIXME to always return true status when CAF is set

Change-Id: Ie195206243bc1f750954def5f4f9f4466295bc7c

b/5338488
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
c493114006e0e136c8c88c2fc9865994054959bf 16-Sep-2011 Sundar Raman <sunds@ti.com> CameraHAL: Adds some useful debug logs on frame counts

Change-Id: Ifb1434f9fd1c85f040d67f3df6fb7c4a86e135db
Signed-off-by: Sundar Raman <sunds@ti.com>
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
348e4eaaf2f88810f2a3c55fd1b0df540a5104ed 17-Sep-2011 Tyler Luu <tluu@ti.com> CameraHal: Error handling before sending frames

Adding a few error checks before sending frames to make
sure we have the proper conditions to send a frame.

Fixes a bug where FillBufferDone gets preempted by the stop
path and by the time it returns the buffers and subscribers
are freed. Adding checks in send frame context since it is
protected by a Mutex.

Change-Id: I860bee796669606e1ec3e26e19916f386fc3e9aa
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
5e02dd977e79ee977ee063496033bbc363a70780 14-Sep-2011 Akwasi Boateng <akwasi.boateng@ti.com> Update frame ref counting

1. Make only one sendframe call from OMXCameraAdapter
2. Add frame type mask to frame structure
3. Frame type mask used to indicate type of frame
e.g video, preview, image or preview and video
4. Set frame ref count before sending frames to
subscribers.
5. Hold frame subscriber lock for setting the
refcount and sending the frames to the
subscribers to allow for the number of
subscribers not to change until frames
are sent.

Change-Id: Ic00a195847f2dc962e931ee8a9f36e3933e67c2d
Signed-off-by: Akwasi Boateng <akwasi.boateng@ti.com>
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
0ff71809874c00d540af83c123f3dc34759f1871 14-Sep-2011 Sundar Raman <sunds@ti.com> Camera HAL: Crash media server in case of camera hardware errors

Applications do not handle errors other then CAMERA_SERVER_DIED.
So there is no way for the application to know about fatal errors
other than killing the media server when they happen.
So this patch aborts media server whenever the ducati throws a
fatal exception or when it hangs so that the apps notify the user
of the error and then close. The user will be able to restart the
application since the media server restarts automatically and the
ducati is also restored by syslink automatically.

Change-Id: Ic3e93130818edbe281affca99b808e09e08614c5
Signed-off-by: Sundar Raman <sunds@ti.com>
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
96e5c60fc857eea34bb76b0334844b229b59506a 09-Sep-2011 Devaraj Rangasamy <dev@ti.com> OMAP4: Camera: Video: Update timestamp offset only when recording begins

Update timestamp offset only when recording begins, or else
camera buffers wont have timestamp field updated, hence resulting
in wrong calculation.

Patcset2:
Update bitwise AND to logical AND in logic conditon

Change-Id: Ia3f9051b7c1b2035d00c0e1d1137e1259feb1443
Signed-off-by: Devaraj Rangasamy <dev@ti.com>
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
36e9bdd56757ff8048e08f6e52f234480c44f122 08-Sep-2011 Tyler Luu <tluu@ti.com> CameraHal: Add Exif support to video snapshot

Use jhead library to insert Exif to jpeg stream
returned from libjpeg.

Change-Id: Ia6398180b7ef3c1b3ddcb35e489527289565fef5
Signed-off-by: Tyler Luu <tluu@ti.com>
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
6b5eaf29c3d17a24731bf9271bd0d199d433813e 09-Sep-2011 Akwasi Boateng <akwasi.boateng@ti.com> Unblock semaphores during Fatal Errors

1. Remove all pending events and unblock
all waiting semaphore during Fatal error.

2. Exit execution when in invalid state.

3. Remove error nitiifcation from
Appcallback thread

Change-Id: I1612ff75e83ebf285d4cc168a829e0f81d4968b1
Signed-off-by: Akwasi Boateng <akwasi.boateng@ti.com>
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
470b7353f563741371ebd464f6c4a662f45e65c4 09-Sep-2011 Tyler Luu <tluu@ti.com> CameraHal: Handle a few corner cases with capture

1. Do not apply 3A settings in the middle of a capture.
Causing an issue with the capture pipe
2. If we happen to unregister shutter callback while
somebody is still waiting for it, go ahead and
signal them.

Change-Id: I961571a1feeec5349b9888748cf002e1e30cea4e
Signed-off-by: Tyler Luu <tluu@ti.com>
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
ba027fc89ec3950e1ac2f95fcc3f1002442ddabb 12-Sep-2011 Sundar Raman <sunds@ti.com> CameraHAL CTS: Fix for #testAutoExposureLock, #testAutoWhiteBalanceLock

Locks were not retained if the user forces the lock to true
before calling autoFocus. This patch addresses this scenario.

Change-Id: I2b5161806f8123b3042d46bc856773f0d4701458
Signed-off-by: Sundar Raman <sunds@ti.com>
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
9b981b1785b6758b2dc8b147587188e5cf0d893d 09-Sep-2011 Akwasi Boateng <akwasi.boateng@ti.com> Destroy and recreate semaphore in case of timeout

Destroy and recreate semaphor during timeout
and remove event from event queue.

Change-Id: Id9428ff58a55f90a6807776327bfba1961d9089d
Signed-off-by: Akwasi Boateng <akwasi.boateng@ti.com>
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
ee6bb64f60c228d711dc1d6875d8f4b0ed88b6cf 01-Sep-2011 Tyler Luu <tluu@ti.com> CameraHal: Initial support for video snapshot

Adds support for capturing an image while
recording in video mode. Sets up Ducati to
return a YUV422I buffer and encode is performed
in AppCallbackNotifier with Encoder_libjpeg class.

Change-Id: Ia351fc99dab63a12add8c6c960b186bbe5be275a
Signed-off-by: Tyler Luu <tluu@ti.com>
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
fdc26e9268306a90ca884934ca328d465545a303 30-Aug-2011 Tyler Luu <tluu@ti.com> Possible memory leak fix

EventMsgQ may still have unreleased messaages
during OMX adapter deinit

Change-Id: Iab91e68d7f5027b5b890ecf9270f2c9c333a3373
Original-author: Akwasi Boateng <akwasi.boateng@ti.com>
Signed-off-by: Akwasi Boateng <akwasi.boateng@ti.com>
Signed-off-by: Tyler Luu <tluu@ti.com>
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
024e97a1213041f9d266ee09f7148a0c9b007260 31-Aug-2011 Tyler Luu <tluu@ti.com> CameraHAL: Fixes some uninitialized variables in OMXCameraAdapter

Change-Id: I3603c8ea55cf8ffc1479ec2cc0df437bd2838ad1
Original-author: Emilian Peev <epeev@mm-sol.com>
Signed-off-by: Emilian Peev <epeev@mm-sol.com>
Signed-off-by: Tyler Luu <tluu@ti.com>
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
8cb48e582f4f3c93aa25159c1116a7c83bfa388a 25-Aug-2011 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>
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
00479a8f1d791824870513b8b0b9edd67d2560ff 25-Aug-2011 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>
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
aa6e62e279cb54ae76c55ba9f8d02da230ce34e7 16-Aug-2011 Tyler Luu <tluu@ti.com> CameraHal: Adjust FD callbacks to updated javadoc

FD callback behavior is updated in latest javadoc
patch "Improve camera face detection javadoc."

Change-Id: I963628ae55eec62083c25d34bbb380ae6673e431
Signed-off-by: Tyler Luu <tluu@ti.com>
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
00fd87fc096d092bfbe3579cd7fe2c1824e6eac0 19-Aug-2011 Tyler Luu <tluu@ti.com> CameraHal: Fix face detection for front sensor

When sensor is in landscape orientation, we should not be
accounting for the mirroring in the sensor orientation
calculations.

bug:5183013

Change-Id: I3bc854c79d210622d99edaf0718c9ba0ca40ceee
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
782a084e5fec691d3985b31c3ab7be1584d879b3 17-Aug-2011 Iliyan Malchev <malchev@google.com> Revert "(TEMP) Avoid SetConfig when starting front sensor"

This reverts commit 2f394067996c47b8c02a335af7403c34908bff07.
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
1cf687eacd44966b1e37ca7b70d15f3bc20f28d8 17-Aug-2011 Iliyan Malchev <malchev@google.com> Revert "(TEMP) Fix for reset mWaitToSetConfig to false in stopPreview"

This reverts commit ba9c1504171d4455f0616c317a1bc42e38f1feb9.
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
ba9c1504171d4455f0616c317a1bc42e38f1feb9 12-Aug-2011 Sundar Raman <sunds@ti.com> (TEMP) Fix for reset mWaitToSetConfig to false in stopPreview

Fixes an issue with secondary camera video record - the capture
mode was not being set after switching from image mode because
the variable mWaitToSetConfig was not reset as the camera was
switched within 100 frames.

Should be reverted when the below patch is reverted

2f394067996c (TEMP) Avoid SetConfig when starting front sensor

Change-Id: I8cff990df95af4f4871f434e21ddd4c1d2d8e919
Signed-off-by: Sundar Raman <sunds@ti.com>
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
ce8e32eddf46a966b6f637c30ad0c464631c1d86 11-Aug-2011 Tyler Luu <tluu@ti.com> CameraHal: Prevent issue when free/aqcuire handle

There could be a potential issue if a CameraHal instance
tries to acquire an OMX Camera handle while another instance
is freeing it.

Change-Id: I33e4c679efc11561ceca3aee217952939bfad6b7
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
80c50ac56bfa97be0cf04332ec1d314637c8770f 09-Aug-2011 Sundar Raman <sunds@ti.com> Lock AE and AWB after AF

Change-Id: I12f1037be3d890b50c5413925d3084a2cf5256aa
Signed-off-by: Sundar Raman <sunds@ti.com>
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
2f394067996c47b8c02a335af7403c34908bff07 09-Aug-2011 Tyler Luu <tluu@ti.com> (TEMP) Avoid SetConfig when starting front sensor

Delay SetConfig calls for the first 99 frames when
starting front sensor. Front sensor is currently freezing
if any SetConfig is called within those first frames.

This patch needs to be removed once Ducati side issue
is fixed.

Change-Id: Ie50dab38724077443719a1061c9b038f59c6b545
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
c322989ae6ff6769490828de1b5eda12b749cce9 08-Aug-2011 Iliyan Malchev <malchev@google.com> initial commit

Change-Id: I8f7a7eeece0e516efa486b77e9d97805c0e65d3e
Signed-off-by: Iliyan Malchev <malchev@google.com>
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXCameraAdapter.cpp