GitHub/LineageOS/android_hardware_samsung_slsi_exynos5.git
12 years agohardware: samsung_slsi: libcamera2: Fix memory leak on exit
Sungjoong Kang [Fri, 14 Sep 2012 09:46:47 +0000 (02:46 -0700)]
hardware: samsung_slsi: libcamera2: Fix memory leak on exit

Fix memory leak caused by not freeing image buffers.

Change-Id: I151fb374f75256c2c96ec4256c11aa2a235d93a0
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
12 years agohardware: samsung_slsi: libcamera2: Remove HACK used for frame sync
Sungjoong Kang [Thu, 13 Sep 2012 23:29:41 +0000 (16:29 -0700)]
hardware: samsung_slsi: libcamera2: Remove HACK used for frame sync

Remove hack code used before frame sync is enabled.
With this patch, v4l2 error msg when zsl is enabled
will be removed also.

Change-Id: I34c38d7f3d29b1fb66f41f90afd377cf7308f238
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
12 years agohardware: samsung_slsi: libcamera2: Fix video snapshot crash
Sungjoong Kang [Thu, 13 Sep 2012 23:16:51 +0000 (16:16 -0700)]
hardware: samsung_slsi: libcamera2: Fix video snapshot crash

Fix the bug that video snapshot crashes sometimes
by using mutex for timestamp-related function

Change-Id: I9fc1f957b63959d16ec8256fe858438ba8044809
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
12 years agohardware: samsung_slsi: libcamera2: Fix the preview callback bug.
hyeonmyeong Choi [Wed, 12 Sep 2012 23:50:09 +0000 (16:50 -0700)]
hardware: samsung_slsi: libcamera2: Fix the preview callback bug.

This patch fix the preview callback bug
that the camera is failed when color format of preview callback is YV12.

Change-Id: Ib5f607773111da54e3365045c67da9aca1b634b4
Signed-off-by: hyeonmyeong Choi <hyeon.choi@samsung.com>
12 years agohardware: samsung_slsi:libcamera2: Fix Night scene mode crash
Sungjoong Kang [Thu, 13 Sep 2012 08:50:21 +0000 (01:50 -0700)]
hardware: samsung_slsi:libcamera2: Fix Night scene mode crash

Fix the crash on snapshot under dark condition
by reducing response time to avoid capture sequencer timeout.

Change-Id: Ib072acf8dd490f72991914f1c1e4aff6494a4f9c
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
12 years agohardware: samsung_slsi: libcamera2: support pre-capture metering
Younghwan Joo [Thu, 13 Sep 2012 05:21:55 +0000 (22:21 -0700)]
hardware: samsung_slsi: libcamera2: support pre-capture metering

This patch is to support pre-capture metering.
In case of standard capture, camera service uses pre-capture
tigger and notification for AE and AWB measurement before capture

Change-Id: Iec9067ea1f2ed6496062a20e339e6a417a48ec3c
Signed-off-by: Younghwan Joo <yhwan.joo@samsung.com>
12 years agohardware: samsung_slsi: libcamera2: support wb exif info
Younghwan Joo [Wed, 12 Sep 2012 18:50:04 +0000 (11:50 -0700)]
hardware: samsung_slsi: libcamera2: support wb exif info

This patch is to fix a bug that whitebalance info of EXIF
is not proper. Handling AE and AWB lock are changed due to
these parameter were separated from AE and AWB mode

Change-Id: Id5c906fb80e714813531de78238196e3e97bfee9
Signed-off-by: Younghwan Joo <yhwan.joo@samsung.com>
12 years agohardware: samsung_slsi:libcamera2: Enable ZSL and frame sync
Sungjoong Kang [Wed, 12 Sep 2012 03:41:10 +0000 (20:41 -0700)]
hardware: samsung_slsi:libcamera2: Enable ZSL and frame sync

This patch enables ZSL feature.
Stream structure has been re-organized for supporting ZSL.
Modified Start/End sequence.
Requires frame sync functionalities.

Change-Id: I02a77027934fcc4238afd63ee67259708893ea5e
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
12 years agohwc: clear cached gscaler info after failed allocation
Greg Hackmann [Wed, 12 Sep 2012 22:11:07 +0000 (15:11 -0700)]
hwc: clear cached gscaler info after failed allocation

Prevents next allocation attempt from "re-using" NULL pointers

Change-Id: I380c37317a82fdead09ad48c7836ce0e795ee80d
Signed-off-by: Greg Hackmann <ghackmann@google.com>
12 years agohwc: store gscaler configuration in correct slot
Greg Hackmann [Wed, 12 Sep 2012 22:07:23 +0000 (15:07 -0700)]
hwc: store gscaler configuration in correct slot

gsc_map is indexed by window #, not by layer #

Change-Id: I6f89e9b0de3787e0ab2aeb490bb6eb3c86bdcf8a
Signed-off-by: Greg Hackmann <ghackmann@google.com>
12 years agoRevert "hwc: enforce bandwidth limitations on each memory interface"
Greg Hackmann [Wed, 12 Sep 2012 16:49:29 +0000 (09:49 -0700)]
Revert "hwc: enforce bandwidth limitations on each memory interface"

This reverts commit aa14c9fba2a5790cfc249afe0cd361aef774d16b.

12 years agoRevert "hwc: enable gscaler on RGBX8888 surfaces"
Greg Hackmann [Wed, 12 Sep 2012 16:28:22 +0000 (09:28 -0700)]
Revert "hwc: enable gscaler on RGBX8888 surfaces"

This reverts commit 36530ec6d52ee39c3755e1d26f6a9ead6b41e2bb.

12 years agoRevert "libgscaler: rework configuration checking and alignment"
Rebecca Schultz Zavin [Wed, 12 Sep 2012 07:33:27 +0000 (00:33 -0700)]
Revert "libgscaler: rework configuration checking and alignment"

This reverts commit a9ea534343fd683fda86df74646b57fc95caaa78.

12 years agoRevert "hwc: rewrite supports_gscaler() to use libgscaler"
Rebecca Schultz Zavin [Wed, 12 Sep 2012 07:30:52 +0000 (00:30 -0700)]
Revert "hwc: rewrite supports_gscaler() to use libgscaler"

This reverts commit f3416d3fd62de43b5f15076957d94282e13b30ba.

12 years agoMerge changes Ia20f32e5,I8adb05ca into jb-mr1-dev
Rebecca Zavin [Wed, 12 Sep 2012 00:12:28 +0000 (17:12 -0700)]
Merge changes Ia20f32e5,I8adb05ca into jb-mr1-dev

* changes:
  hardware: samsung_slsi:libcamera2: enable frame sync
  hardware: samsung_slsi: libcamera2: decrease the number of request entry

12 years agoMerge "hardware: samsung_slsi: libcamera2: Bug fix for stop sequence" into jb-mr1-dev
Rebecca Zavin [Wed, 12 Sep 2012 00:10:20 +0000 (17:10 -0700)]
Merge "hardware: samsung_slsi: libcamera2: Bug fix for stop sequence" into jb-mr1-dev

12 years agohardware: samsung_slsi:libcamera2: enable frame sync
Jiyoung Shin [Mon, 10 Sep 2012 14:14:54 +0000 (23:14 +0900)]
hardware: samsung_slsi:libcamera2: enable frame sync

To secure frame by frame operation, frame sync is enabled
It needs "USE_FRAME_SYNC" option in kernel

Change-Id: Ia20f32e540b426e3d6ea9175fab2e32ab643c1f5
Signed-off-by: Jiyoung Shin <idon.shin@samsung.com>
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
12 years agohwc: enforce bandwidth limitations on each memory interface
Greg Hackmann [Thu, 30 Aug 2012 17:07:48 +0000 (10:07 -0700)]
hwc: enforce bandwidth limitations on each memory interface

The memory bandwidth is divided between two interfaces.  Check this
after making an allocation, since it's tricky to account for during
allocation (anything involving the framebuffer can completely change the
bandwidth on each interface).

Change-Id: I17a4bc079fc24d924c3a1c2c651d1e544ebc4325
Signed-off-by: Greg Hackmann <ghackmann@google.com>
12 years agohwc: rewrite supports_gscaler() to use libgscaler
Greg Hackmann [Sat, 8 Sep 2012 00:35:48 +0000 (17:35 -0700)]
hwc: rewrite supports_gscaler() to use libgscaler

Change-Id: Ia9afc69b827a42199d2dba53245a9bf272f9aff1
Signed-off-by: Greg Hackmann <ghackmann@google.com>
12 years agolibgscaler: rework configuration checking and alignment
Greg Hackmann [Sat, 8 Sep 2012 00:32:59 +0000 (17:32 -0700)]
libgscaler: rework configuration checking and alignment

Rewritten based on constraints listed in Gscaler application note,
extracted to its own file for readability, and exposed to other modules
(i.e. the HWC) through exynos_gscaler.h.

Change-Id: I963596bbee6301fdf55f6956a0bf6b44de42c861
Signed-off-by: Greg Hackmann <ghackmann@google.com>
12 years agohwc: enable gscaler on RGBX8888 surfaces
Greg Hackmann [Wed, 1 Aug 2012 22:11:52 +0000 (15:11 -0700)]
hwc: enable gscaler on RGBX8888 surfaces

Change-Id: I6985c89d93add9134135b4a900094dd5a529b2ea
Signed-off-by: Greg Hackmann <ghackmann@google.com>
12 years agohardware: samsung_slsi: libcamera2: Bug fix for stop sequence
hyeonmyeong Choi [Sat, 8 Sep 2012 22:39:58 +0000 (15:39 -0700)]
hardware: samsung_slsi: libcamera2: Bug fix for stop sequence

This patch fixed the bug that system hang when stop sequence.
This patch make clear that the video node is closed after stream off.

Change-Id: I0a6554f50d5814a6357749b8db3b46c07b25f9c0
Signed-off-by: hyeonmyeong Choi <hyeon.choi@samsung.com>
12 years agohardware: samsung_slsi: libcamera2: decrease the number of request entry
Sungjoong Kang [Tue, 4 Sep 2012 12:43:06 +0000 (21:43 +0900)]
hardware: samsung_slsi: libcamera2: decrease the number of request entry

for faster response of cameraService, decrease the number of entry from 10 to 4

Change-Id: I8adb05ca4933e261786fae59767f41910e09052e
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
12 years agoMerge "hwc: moved GSC dst's drmmode checking." into jb-mr1-dev
Greg Hackmann [Tue, 11 Sep 2012 22:03:25 +0000 (15:03 -0700)]
Merge "hwc: moved GSC dst's drmmode checking." into jb-mr1-dev

12 years agohwc: moved GSC dst's drmmode checking.
Sanghee Kim [Fri, 31 Aug 2012 05:59:43 +0000 (22:59 -0700)]
hwc: moved GSC dst's drmmode checking.

gsc_dst_cfg_changed() function check whether drmmode is changed.
so The checking code for drm mode should be located beforing
gsc_dst_cfg_changed().
Currently GSC dst's buffer property is same with GSC src's buffer
property related with drm mode.

Change-Id: Ib8c8b0f96d7e22c83d24ef9c77b3a0ff896dee9c
Signed-off-by: Sanghee Kim <haya93@samsung.com>
12 years agohardware: samsung_slsi: libcamera2: Add log level for camera debug
hyeonmyeong Choi [Mon, 10 Sep 2012 18:53:49 +0000 (11:53 -0700)]
hardware: samsung_slsi: libcamera2: Add log level for camera debug

This patch add new log level for camera debug.
CAM_LOGs are only enable when EXYNOS_CAMERA_LOG is defined.

Change-Id: Idf866527db839d3b8a37848d8958f91dad22186c
Signed-off-by: hyeonmyeong Choi <hyeon.choi@samsung.com>
12 years agoRemove compiler warning from gralloc, fix some white space
Rebecca Schultz Zavin [Tue, 11 Sep 2012 18:15:48 +0000 (11:15 -0700)]
Remove compiler warning from gralloc, fix some white space

Change-Id: I0cc4577a52bb1f63fae07a02d8c5df8562fcbaf1
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
12 years agohardware: samsung_slsi: gralloc: Support HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED
Sungjoong Kang [Fri, 7 Sep 2012 00:11:16 +0000 (17:11 -0700)]
hardware: samsung_slsi: gralloc: Support HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED

When allocation with HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED is requested,
gralloc chooses proper format using the usage flag.

Change-Id: Ie706444af82ba014a90af968703889963fb763d4
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
12 years agohardware: samsung_slsi: Add fnumber item for metadata
Sungjoong Kang [Sat, 8 Sep 2012 02:05:31 +0000 (19:05 -0700)]
hardware: samsung_slsi: Add fnumber item for metadata

This patch adds f-number item to camera static information.
Fnumber is used for metadata.

Change-Id: Ia4a4624c36a634d087543a42e2575b2eba17bdbe
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
12 years agohardware: samsung_slsi: libcamera2: change flash sequence
Younghwan Joo [Sun, 9 Sep 2012 04:11:18 +0000 (21:11 -0700)]
hardware: samsung_slsi: libcamera2: change flash sequence

This patch is to change flash sequence
- seperate ae/awb lock and flashMode checking routine
- apply flash status to EXIF

Change-Id: I02796340ad317327f22b2e833058a3665ef1334e
Signed-off-by: Younghwan Joo <yhwan.joo@samsung.com>
12 years agohardware: samsung_slsi: libcamera2: Recording bug fix
hyeonmyeong Choi [Sun, 9 Sep 2012 18:50:21 +0000 (11:50 -0700)]
hardware: samsung_slsi: libcamera2: Recording bug fix

This patch fixed bug that frame drop while video recording.

Change-Id: I0fc64daa70c6689b328f4fd6b6fe96c1078ea6bb
Signed-off-by: hyeonmyeong Choi <hyeon.choi@samsung.com>
12 years agodevice: samsung_slsi: libcamera2: Add support video resolutions.
hyeonmyeong Choi [Thu, 6 Sep 2012 19:45:44 +0000 (12:45 -0700)]
device: samsung_slsi: libcamera2: Add support video resolutions.

This patch add support video resolutions as below :
    1920, 1080, // 16:9
    1440, 1080, // 4:3
    1280, 1024, // 5:4
    1280,  720, // 16:9
     960,  720, // 4:3
     800,  480, // 5:3
     768,  576, // 4:3
     720,  576, // 5:4
     720,  480, // 3:2
     640,  480, // 4:3
     352,  288, // 11:9
     320,  240, // 4:3
     240,  160, // 3:2
     176,  144, // 6:5
     128,   96, // 4:3

Change-Id: I9ed59a5c7869b293ec55718fab7e556347fae8f1
Signed-off-by: hyeonmyeong Choi <hyeon.choi@samsung.com>
12 years agohardware: samsung_slsi: libcamera2: modify flash function
Younghwan Joo [Fri, 7 Sep 2012 20:34:20 +0000 (13:34 -0700)]
hardware: samsung_slsi: libcamera2: modify flash function

This patch is to fix some bugs about flash operation
- support flash torch at video mode
- fix a bug of flash with manual white balance
- fix a bug of EV setting during capture
- change checking flash status methods

Change-Id: Iecc5010bdf9a09aff27d3c2b9e6bf3b84ae77e60
Signed-off-by: Younghwan Joo <yhwan.joo@samsung.com>
12 years agohwc: warn about unexpected formats
Greg Hackmann [Tue, 14 Aug 2012 22:50:51 +0000 (15:50 -0700)]
hwc: warn about unexpected formats

Change-Id: Id4f48dba0b8be40ac3bbb228234abb10bfb45ce5
Signed-off-by: Greg Hackmann <ghackmann@google.com>
12 years agohardware: samsung_slsi: libcamera2: update flash function
Younghwan Joo [Thu, 6 Sep 2012 00:52:08 +0000 (17:52 -0700)]
hardware: samsung_slsi: libcamera2: update flash function

This patch is to modify flash sequence base on the defined
flash scenario. this patch is also applied to monitor dynamic
meta data. Due to change camera meta data structure, updating
driver and camera firmware is needed to apply this patch.

Change-Id: I39a9a1b648a20470b017a5ea614dc3260e3d838a
Signed-off-by: Younghwan Joo <yhwan.joo@samsung.com>
12 years agohardware: samsung_slsi: libcamera2: Fix preview delay and recording bugs
hyeonmyeong Choi [Wed, 5 Sep 2012 07:51:31 +0000 (00:51 -0700)]
hardware: samsung_slsi: libcamera2: Fix preview delay and recording bugs

This patch fixed bugs that the preview is going slower when after capture.
This patch also fixed preview color corruption when 480p recording.

Change-Id: I4823830362cac17cd65a13776cd654801ab2d1fc
Signed-off-by: hyeonmyeong Choi <hyeon.choi@samsung.com>
12 years agohardware: samsung_slsi: libcamera2: Fix AF and CAF transition bug
Younghwan Joo [Tue, 4 Sep 2012 03:47:21 +0000 (20:47 -0700)]
hardware: samsung_slsi: libcamera2: Fix AF and CAF transition bug

This patch is to fix a bug that the transition beween
single AF and continuous AF. In that case, the region
information of single AF affects to CAF. At starting of
CAF, region infos are initialized.

Change-Id: I6cf6c7c86cd84284bc34fdaee1750ab72391fb76
Signed-off-by: Younghwan Joo <yhwan.joo@samsung.com>
12 years agohardware: samsung_slsi: libcamera2: Change ion flag for metadata
Sungjoong Kang [Wed, 29 Aug 2012 09:11:07 +0000 (02:11 -0700)]
hardware: samsung_slsi: libcamera2: Change ion flag for metadata

Set ION_FLAG_CACHED for the plane for storing metadata

Change-Id: I32a8474ac30b518e1c0573e65c4c8ee6972ada55
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
12 years agohardware: samsung_slsi: libcamera2: Fix the preview and still bugs.
hyeonmyeong Choi [Sun, 2 Sep 2012 23:02:13 +0000 (16:02 -0700)]
hardware: samsung_slsi: libcamera2: Fix the preview and still bugs.

This patch fixed two bugs that preview and still hang.
This ptach also fixed AF bugs.

Change-Id: I5576b551e0fd6ff0bd2d17580c9f719363bf69d2
Signed-off-by: hyeonmyeong Choi <hyeon.choi@samsung.com>
12 years agohardware: samsung_slsi: libcamera2: Add support resolutions / wideAspect
hyeonmyeong Choi [Fri, 31 Aug 2012 02:01:25 +0000 (19:01 -0700)]
hardware: samsung_slsi: libcamera2: Add support resolutions / wideAspect

This patch add 3:2 ratio size (720x480) and wide aspect.

Change-Id: I58fe208069a33d79e6a87826969a71c3e3014db3
Signed-off-by: hyeonmyeong Choi <hyeon.choi@samsung.com>
12 years agohardware: samsung_slsi: libcamera2: Bug fix for digital zoom
hyeonmyeong Choi [Wed, 29 Aug 2012 20:55:01 +0000 (13:55 -0700)]
hardware: samsung_slsi: libcamera2: Bug fix for digital zoom

This patch fixed bug for capture when digital zoom.

Change-Id: I37184b3245752db998958cbe326bd487b0affe06
Signed-off-by: hyeonmyeong Choi <hyeon.choi@samsung.com>
12 years agohardware: samsung_slsi: libcamera2: Bug fixes and stability enhancements
Sungjoong Kang [Sat, 1 Sep 2012 04:31:34 +0000 (21:31 -0700)]
hardware: samsung_slsi: libcamera2: Bug fixes and stability enhancements

1. Optimize preview buffer size and dequeue count
2. Fix crash when Stillshot/Record mode change
3. 30 FPS fix for video recording

Change-Id: Ia4e27e1ee58fe774b199cf15c1e05279b7d152b8
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
12 years agohwc: Fix booting with hdmi attached
Benoit Goby [Fri, 31 Aug 2012 00:42:41 +0000 (17:42 -0700)]
hwc: Fix booting with hdmi attached

Change-Id: Ie487ac413ec77b7a17c943ae51f854b0c67365e7

12 years agoMerge "hwc: Disable hdmi on blank" into jb-mr1-dev
Benoit Goby [Wed, 5 Sep 2012 00:50:13 +0000 (17:50 -0700)]
Merge "hwc: Disable hdmi on blank" into jb-mr1-dev

12 years agoMerge "hwc: Add full screen video support on HDMI" into jb-mr1-dev
Benoit Goby [Wed, 5 Sep 2012 00:49:53 +0000 (17:49 -0700)]
Merge "hwc: Add full screen video support on HDMI" into jb-mr1-dev

12 years agoMerge "libgscaler: Update for HDMI full screen video" into jb-mr1-dev
Benoit Goby [Wed, 5 Sep 2012 00:41:32 +0000 (17:41 -0700)]
Merge "libgscaler: Update for HDMI full screen video" into jb-mr1-dev

12 years agoMerge "exynos5: omx: osal: only free sharedmem buffers we allocated" into jb-mr1-dev
Dima Zavin [Tue, 4 Sep 2012 23:37:17 +0000 (16:37 -0700)]
Merge "exynos5: omx: osal: only free sharedmem buffers we allocated" into jb-mr1-dev

12 years agoexynos5: omx: osal: only free sharedmem buffers we allocated
Dima Zavin [Tue, 4 Sep 2012 22:03:42 +0000 (15:03 -0700)]
exynos5: omx: osal: only free sharedmem buffers we allocated

Buffers that get imported should not be freed as omx doesn't
own them.

Change-Id: I1667879937a2e855bbccc7276fa15eb333401dc9
Signed-off-by: Dima Zavin <dima@android.com>
12 years agohardware: samsung_slsi: libcamera2: add new HAL stub
Eino-Ville Talvala [Tue, 4 Sep 2012 20:41:55 +0000 (13:41 -0700)]
hardware: samsung_slsi: libcamera2: add new HAL stub

Add stub method for allocate_reprocess_stream_from_stream to match new
camera2_device_ops.

Change-Id: I3310d5e766bc5a98e923cc758b0a64594555bd6e

12 years agohwc: Disable hdmi on blank
Benoit Goby [Fri, 31 Aug 2012 00:17:34 +0000 (17:17 -0700)]
hwc: Disable hdmi on blank

Change-Id: Ida919c7097c8a4f1aae11e05f6cbbcaa3ffbbfd6

12 years agohwc: Add full screen video support on HDMI
Benoit Goby [Thu, 16 Aug 2012 21:17:14 +0000 (14:17 -0700)]
hwc: Add full screen video support on HDMI

Stream a 1x1 pixels image under the video, so that we have something
to stream while reconfiguring the gscaler.

Don't force framebuffer composition if we have a layer to display on
HDMI.

Change-Id: I466637868497c9fa17311c6242b1b50beea2df24

12 years agolibgscaler: Update for HDMI full screen video
Benoit Goby [Tue, 28 Aug 2012 22:17:09 +0000 (15:17 -0700)]
libgscaler: Update for HDMI full screen video

Change-Id: I0b85e5a46e1374cf599040e582a75c0ba959df24

12 years agoSTOPSHIP: Turn back off exif data until we ship
Rebecca Schultz Zavin [Tue, 4 Sep 2012 16:44:10 +0000 (09:44 -0700)]
STOPSHIP: Turn back off exif data until we ship

Change-Id: I11da13c788ac3006ace68e80b047b2187075c6f2
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
12 years agohardware: smasung_slsi: libcamera2: add flash function
Younghwan Joo [Thu, 30 Aug 2012 20:56:53 +0000 (13:56 -0700)]
hardware: smasung_slsi: libcamera2: add flash function

This patch is to enable flash operation for camera
The default flash mode may be disabled. Because Cameraservice can't
inform flash mode to cameraHAL. Changing flash UI is updated at
aa_aemode. but this field also includes AE_MODE_LOCKED value.
To capture image, CameraService always set this value to AE_MODE_LOCKED.
so cameraHAL can't recognize the current flash mode

Change-Id: Ic66dce38e460509669de293e7878d5b3fd86a891
Signed-off-by: Younghwan Joo <yhwan.joo@samsung.com>
12 years agohardware: samsung_slsi: libcamera2: fix thumbnail size bug
Sungjoong Kang [Thu, 30 Aug 2012 06:14:17 +0000 (15:14 +0900)]
hardware: samsung_slsi: libcamera2: fix thumbnail size bug

1. default thumbnail size is 160*120
2. thumbnail size is decided from metadata

Change-Id: Iac6faec295f8df0fc55a400431596077381807b4
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
12 years agohardware: samsung_slsi: libcamera2: Enable preview callback
Sungjoong Kang [Wed, 29 Aug 2012 20:25:46 +0000 (13:25 -0700)]
hardware: samsung_slsi: libcamera2: Enable preview callback

Supprots preview callback using android YUV formats

Also fixes the issue that recorded images are all green

Change-Id: I96205cbb9c9249a4527654d419729a9d058d31ec
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
12 years agoMerge "exynos_omx: multi_thread: Remove OMX Error log on init time." into jb-mr1-dev
James Dong [Thu, 30 Aug 2012 22:30:35 +0000 (15:30 -0700)]
Merge "exynos_omx: multi_thread: Remove OMX Error log on init time." into jb-mr1-dev

12 years agoexynos_omx: multi_thread: Remove OMX Error log on init time.
SeungBeom Kim [Mon, 13 Aug 2012 17:58:21 +0000 (10:58 -0700)]
exynos_omx: multi_thread: Remove OMX Error log on init time.

It is not error.
this code is just for the check of OpenMAX component loading.

Change-Id: I159ef88d9e300c3fbeebf697547eecab609fd0d9
Signed-off-by: SeungBeom Kim <sbcrux.kim@samsung.com>
12 years agogralloc: add extra line of padding after aligning
Greg Hackmann [Wed, 29 Aug 2012 16:58:45 +0000 (09:58 -0700)]
gralloc: add extra line of padding after aligning

Padding before aligning adds 15 unneeded lines.  Also check that the
extra line is needed (i.e., the alignment didn't add padding of its
own).

Change-Id: Iefbf5f26d8f346ba487195a5973693ae871f843f
Signed-off-by: Greg Hackmann <ghackmann@google.com>
12 years agogralloc: make sure rgb buffers have at least 1 line of padding
Greg Hackmann [Wed, 29 Aug 2012 16:58:45 +0000 (09:58 -0700)]
gralloc: make sure rgb buffers have at least 1 line of padding

The display controller may read up to 1 line past the end of the image

Change-Id: Ibb6ed15d1c02d07fe955922249c71b7ce9bce0fc
Signed-off-by: Greg Hackmann <ghackmann@google.com>
12 years agohardware: samsung_slsi: libcamera2: Enable 4x digital zoom
Sungjoong Kang [Tue, 28 Aug 2012 22:02:19 +0000 (15:02 -0700)]
hardware: samsung_slsi: libcamera2: Enable 4x digital zoom

Enables 4x digital zoom function
Requires matching version of driver

Change-Id: I1abbd2781fd3d47c162a68802d5b532c54e0dcb6
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
12 years agohardware: samsung_slsi: libcamera2: Fix AF lockup
Sungjoong Kang [Tue, 28 Aug 2012 20:05:01 +0000 (13:05 -0700)]
hardware: samsung_slsi: libcamera2: Fix AF lockup

Fixed most of the cases of AF lockup

Change-Id: If5e190e916c4b1f4e0246ee953d55d1e5d8a4882
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
12 years agohardware: samsung_slsi: libcamera2: Fix Night scene mode
Sungjoong Kang [Tue, 28 Aug 2012 19:55:39 +0000 (12:55 -0700)]
hardware: samsung_slsi: libcamera2: Fix Night scene mode

When using night scnee mode, separate parameter will be appiled
for preview/capture operation.

Change-Id: I2875baa0d404fd92cc6df98f7c174bf86adbd9db
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
12 years agohardware: samsung_slsi: libcamera2: add basic function for frame sync
Sungjoong Kang [Tue, 28 Aug 2012 14:35:43 +0000 (23:35 +0900)]
hardware: samsung_slsi: libcamera2: add basic function for frame sync

1. add memory allocation for metadata which is used in frame sync
2. add one plane for meta data

Change-Id: I46858d3e408b5fcfc2a8fdaaba93ae9481675563
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
12 years agohardware: samsung_slsi: libcamera2: remove unnessary signal
Sungjoong Kang [Tue, 28 Aug 2012 13:59:48 +0000 (22:59 +0900)]
hardware: samsung_slsi: libcamera2: remove unnessary signal

remove signal spam in sensor thread.

Change-Id: Id7b5d5e654ebc826e593433185bcf3101e131e6c
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
12 years agohardware: samsung_slsi: libcamera2: Fix crash on back/front change
Sungjoong Kang [Tue, 28 Aug 2012 10:48:30 +0000 (03:48 -0700)]
hardware: samsung_slsi: libcamera2: Fix crash on back/front change

Fixed crash on camera back/front mode change.

Change-Id: Iae5f2a01fe4f1ccf2a7d32f92d212c05f8c2e830
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
12 years agohardware: samsung_slsi: libcamera2: seperate stream thread functions
Sungjoong Kang [Tue, 28 Aug 2012 08:29:11 +0000 (17:29 +0900)]
hardware: samsung_slsi: libcamera2: seperate stream thread functions

seperate stream thread functions from 1 to 3 for readibility and stability.

Change-Id: Iea0ec217df8ffb10ca92b76114a0679b58e58fda
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
12 years agohardware: samsung_slsi: libcamera2: Protection for sensor failure
Sungjoong Kang [Mon, 27 Aug 2012 07:29:28 +0000 (00:29 -0700)]
hardware: samsung_slsi: libcamera2: Protection for sensor failure

Added protection code for sensor H/W init failure

Change-Id: Id8f40bb3ac6a9ae61d2e0d9c2af3afa5df43ad87
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
12 years agohardware: samsung_slsi: libcamera2: Enabled Touch Auto Focus
Sungjoong Kang [Mon, 27 Aug 2012 07:02:22 +0000 (00:02 -0700)]
hardware: samsung_slsi: libcamera2: Enabled Touch Auto Focus

Touch Auto Focus is enabled.

Change-Id: I01f8475a874763561e74294d2d8bff9484faf536
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
12 years agohardware: samsung_slsi: libcamera2: Enabled Face Detection
Sungjoong Kang [Mon, 27 Aug 2012 00:44:25 +0000 (17:44 -0700)]
hardware: samsung_slsi: libcamera2: Enabled Face Detection

Face Detaction is enabled.

Change-Id: I3e004a10252cc2a4514951439203a1aae08e492b
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
12 years agohardware: samsung_slsi: libcamera2: removing dummy qbuf to ISP
Sungjoong Kang [Sat, 25 Aug 2012 06:08:06 +0000 (23:08 -0700)]
hardware: samsung_slsi: libcamera2: removing dummy qbuf to ISP

For efficiency, removed registering buffers to ISP by dummy qbuf.
Requires counterpart of Fimc-is-mc2 driver patch

Change-Id: I35e8344dea008c1b43be2cfcc598942ba3961a18
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
12 years agoSTOPSHIP libcamera2: remove device metadata
Alex Ray [Tue, 28 Aug 2012 00:23:41 +0000 (17:23 -0700)]
STOPSHIP libcamera2: remove device metadata

Change-Id: I358b77b8a18d8a7dc76823b905a0930df845f743
Signed-off-by: Alex Ray <aray@google.com>
12 years agohardware: samsung_slsi: libcamera2: Modified CAF Algorithm
Sungjoong Kang [Fri, 24 Aug 2012 00:38:20 +0000 (17:38 -0700)]
hardware: samsung_slsi: libcamera2: Modified CAF Algorithm

Modified CAF Algorithm and fixed lockup during operation.

Change-Id: I313171d13414825d3bce1e12c1b123a1922b2296
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
12 years agohardware: samsung_slsi: libcamera2: Fixed JPEG related problems
Sungjoong Kang [Thu, 23 Aug 2012 23:35:08 +0000 (16:35 -0700)]
hardware: samsung_slsi: libcamera2: Fixed JPEG related problems

1. Fixes crash after capturing multiple snapshots
2. Supports EXIF tags
3. Supports Thumbnails

Change-Id: I60fed4eb64ffbb2c49ceaafb44877d5e23da8562
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
12 years agohardware: samsung_slsi: libcamera2: Stability Enhancement
Sungjoong Kang [Thu, 23 Aug 2012 23:16:44 +0000 (16:16 -0700)]
hardware: samsung_slsi: libcamera2: Stability Enhancement

Also added supported resolutions

Change-Id: Ie53adbbfd3b115811625ca85df05c370074107e6
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
12 years agoMerge "exynos_omx: multi_thread: Change Log Message." into jb-mr1-dev
James Dong [Tue, 28 Aug 2012 15:20:50 +0000 (08:20 -0700)]
Merge "exynos_omx: multi_thread: Change Log Message." into jb-mr1-dev

12 years agoMerge "exynos_omx: multi_thread: Fix the bug of video recording I-frame interval...
James Dong [Tue, 28 Aug 2012 15:20:34 +0000 (08:20 -0700)]
Merge "exynos_omx: multi_thread: Fix the bug of video recording I-frame interval." into jb-mr1-dev

12 years agoMerge "exynos_omx: multi_thread: Fix wrong variable name." into jb-mr1-dev
James Dong [Tue, 28 Aug 2012 15:20:11 +0000 (08:20 -0700)]
Merge "exynos_omx: multi_thread: Fix wrong variable name." into jb-mr1-dev

12 years agohwc: support drm video play back.
Sanghee Kim [Thu, 9 Aug 2012 06:31:10 +0000 (23:31 -0700)]
hwc: support drm video play back.

In case of drm video play back, GSC's destination buffer
should be allocateed from reserved memory using protected flag
in gralloc.
If src buffer is protected buffer, dst buffer should be same.

Change-Id: I5eb2a698f2ca404a585c436d6536462580ca4ba6
Signed-off-by: Sanghee Kim <haya93@samsung.com>
12 years agolibgscaler: support gsc's content protection ctrl.
Sanghee Kim [Thu, 9 Aug 2012 06:37:30 +0000 (23:37 -0700)]
libgscaler: support gsc's content protection ctrl.

In case of drm video play back, contents should be protected.
Added gsc's content protection control.

Change-Id: If724de5aaf5cadab8eada160211b1ab3ce1b758a
Signed-off-by: Sanghee Kim <haya93@samsung.com>
12 years agoexynos5: include: vb2: added V4L2_CID_CONTENT_PROTECTION.
Sanghee Kim [Sat, 11 Aug 2012 07:24:03 +0000 (00:24 -0700)]
exynos5: include: vb2: added V4L2_CID_CONTENT_PROTECTION.

This flag is used in DRM play back to inform gscaler
that we are passing it protected content.

Change-Id: I41890bbe1e261b645b0ee501fa19fbc1f9bdf7ac
Signed-off-by: Sanghee Kim <haya93@samsung.com>
12 years agogralloc: add support to allocate protected buffers
Sanghee Kim [Thu, 9 Aug 2012 05:59:55 +0000 (22:59 -0700)]
gralloc: add support to allocate protected buffers

Change-Id: I0c8cc054f5fa15544177a9b9042aca095c64eb82
Signed-off-by: Dima Zavin <dima@android.com>
12 years agoFix whitespace in gralloc.cpp and mapper.cpp
Rebecca Schultz Zavin [Tue, 28 Aug 2012 04:31:22 +0000 (21:31 -0700)]
Fix whitespace in gralloc.cpp and mapper.cpp

Change-Id: Ia710e1f6aada45644f4b062cca1288b306f4c06c
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
12 years agoAdd framework yv12 and nv21 formats to gralloc
Rebecca Schultz Zavin [Mon, 27 Aug 2012 22:23:32 +0000 (15:23 -0700)]
Add framework yv12 and nv21 formats to gralloc

Change-Id: I115f2511503bc6d9e638df23fe14758e7ab45c9d
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
12 years agoImport ion handles when registering buffers
Rebecca Schultz Zavin [Mon, 27 Aug 2012 17:58:52 +0000 (10:58 -0700)]
Import ion handles when registering buffers

Import ion handles from registerBuffer, this will allow us
to track ion buffers as they are passed between processes
for debug purposes.

Change-Id: I60f3b6c210c807c06dc312d3254644d2151c354f
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
12 years agoexynos_omx: multi_thread: Change Log Message.
SeungBeom Kim [Mon, 27 Aug 2012 21:14:07 +0000 (14:14 -0700)]
exynos_omx: multi_thread: Change Log Message.

Change Log Message in "Exynos_OMX_Venc.c".

Change-Id: I66c83024afda26a10c97d33e5ef8fd5f6dcbfe55
Signed-off-by: SeungBeom Kim <sbcrux.kim@samsung.com>
12 years agoexynos_omx: multi_thread: Fix the bug of video recording I-frame interval.
SeungBeom Kim [Mon, 27 Aug 2012 05:34:08 +0000 (22:34 -0700)]
exynos_omx: multi_thread: Fix the bug of video recording I-frame interval.

Before Fix, OpenGOP Recording.
(Return the I-Frame after each 10 frame.)
After Fix, Return the I-Frame after each 30 frame.
(Stagefright has set the I-frame interval 30 frame.)

Change-Id: I6089bdb5ae1b0cf2d999233f39a97c64884b6bb9
Signed-off-by: SeungBeom Kim <sbcrux.kim@samsung.com>
12 years agoexynos_omx: multi_thread: Fix wrong variable name.
SeungBeom Kim [Mon, 27 Aug 2012 21:25:57 +0000 (14:25 -0700)]
exynos_omx: multi_thread: Fix wrong variable name.

Change-Id: I0d86bb3747c7e686e2b8ca013b08cc7b1ac4ea9f
Signed-off-by: SeungBeom Kim <sbcrux.kim@samsung.com>
12 years agohwc: implement dump() with last configuration accepted by fb driver
Greg Hackmann [Thu, 23 Aug 2012 19:58:02 +0000 (12:58 -0700)]
hwc: implement dump() with last configuration accepted by fb driver

Change-Id: I592af8403d98a0d1a1907c44f7aa784e58a222b9
Signed-off-by: Greg Hackmann <ghackmann@google.com>
12 years agoReduce the number of advertised buffers needed from producer (hal) end
James Dong [Fri, 24 Aug 2012 21:42:26 +0000 (14:42 -0700)]
Reduce the number of advertised buffers needed from producer (hal) end

o related-to-bug: 7046065

Change-Id: I4fd2dcaaff1a2d89d004f9f7033256b8cef456c1

12 years agoDisambiguate framework formats from exynos formats
Rebecca Schultz Zavin [Thu, 23 Aug 2012 07:03:05 +0000 (00:03 -0700)]
Disambiguate framework formats from exynos formats

Previously exynos hal code was using the framework definitions
of YV12 and NV21 to describe custom exynos formats that are
similar but not the same.  This patch defines new formats that
describe the custom formats that should be used instead.

Change-Id: I05f5c07d4ab77ef614c765f51fb7254b47005f79
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
12 years agoUpdate for cleanups in hwc interface
Jesse Hall [Tue, 21 Aug 2012 19:12:55 +0000 (12:12 -0700)]
Update for cleanups in hwc interface

Change-Id: I8f43423df620bdeb1f7dd0a61d0222bf0c54f204

12 years agohwc: fix set() with zero layers
Greg Hackmann [Wed, 22 Aug 2012 18:27:38 +0000 (11:27 -0700)]
hwc: fix set() with zero layers

Initialization for the post callback should not be skipped, since set()
requires eglSwapBuffers() to be called even when there are zero layers

Change-Id: I624ef55e73b389aadf3516a6d2c541d67d398333
Signed-off-by: Greg Hackmann <ghackmann@google.com>
12 years agoTurn off verbose logging
Rebecca Schultz Zavin [Wed, 22 Aug 2012 07:55:29 +0000 (00:55 -0700)]
Turn off verbose logging

Change-Id: I57c76e879a8d5baf4180dfdf7e5fafa63e400349
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
12 years agoMerge changes I52e67161,I97547674,If04eb3af,I5e3dd4f1,I8dddc167 into jb-mr1-dev
Rebecca Zavin [Wed, 22 Aug 2012 06:48:20 +0000 (23:48 -0700)]
Merge changes I52e67161,I97547674,If04eb3af,I5e3dd4f1,I8dddc167 into jb-mr1-dev

* changes:
  hardware: samsung_slsi: libcamera2: Add SceneMode support
  hardware: samsung_slsi: libcamera2: Add AF/CAF Feature
  hardware: samsung_slsi: libcamera2: 4th release of camera
  hardware: samsung_slsi: libcamera2: Remove memcpy for JPEG output
  hardware: samsung_slsi: libcamera2: Add support for metadata

12 years agohardware: samsung_slsi: libcamera2: Add SceneMode support
Sungjoong Kang [Fri, 17 Aug 2012 22:47:56 +0000 (15:47 -0700)]
hardware: samsung_slsi: libcamera2: Add SceneMode support

This patch enables SceneMode feature.
Requires camera 4th release.

Change-Id: I52e67161f0b89b4d05147d04f4f4a68b54c4e89c
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
12 years agohardware: samsung_slsi: libcamera2: Add AF/CAF Feature
Sungjoong Kang [Fri, 17 Aug 2012 22:43:12 +0000 (15:43 -0700)]
hardware: samsung_slsi: libcamera2: Add AF/CAF Feature

This patch enables AF/CAF of camera.
Requires camera 4th release.

Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
Change-Id: I97547674ee115f7a00fd9ceeebbd0456a37c25e4

12 years agohardware: samsung_slsi: libcamera2: 4th release of camera
Sungjoong Kang [Fri, 17 Aug 2012 19:34:33 +0000 (12:34 -0700)]
hardware: samsung_slsi: libcamera2: 4th release of camera

Redesigned HAL for increasing stability

Change-Id: If04eb3af7675e04fc9b59775e6e4ca396f1ed64a
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
12 years agohardware: samsung_slsi: libcamera2: Remove memcpy for JPEG output
Sungjoong Kang [Wed, 8 Aug 2012 18:13:48 +0000 (11:13 -0700)]
hardware: samsung_slsi: libcamera2: Remove memcpy for JPEG output

Remove memcpy by changing the destination of JPEG encoder
to the memory buffer provided by camera service.

Change-Id: I5e3dd4f1ecfc3371a0d4ee7c5291ebccc7b26208
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
12 years agohardware: samsung_slsi: libcamera2: Add support for metadata
Sungjoong Kang [Wed, 8 Aug 2012 20:38:09 +0000 (13:38 -0700)]
hardware: samsung_slsi: libcamera2: Add support for metadata

Added supports for metadata for both requests and frames.
AWB modes and scene modes are enabled on HAL side

Change-Id: I8dddc1676b45638eb6c554b8fc6c0a6bfef480a5
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>