GitHub/LineageOS/android_hardware_samsung_slsi_exynos5.git
11 years agoMerge tag 'android-4.2.2_r1.2' of https://android.googlesource.com/platform/hardware... cm-10.1 cm-10.1.0 cm-10.1.0-RC1 cm-10.1.0-RC2 cm-10.1.0-RC3 cm-10.1.0-RC4 cm-10.1.0-RC5 cm-10.1.1 cm-10.1.2 cm-10.1.3 cm-10.1.3-RC1 cm-10.1.3-RC2
Steve Kondik [Thu, 18 Apr 2013 04:43:17 +0000 (21:43 -0700)]
Merge tag 'android-4.2.2_r1.2' of https://android.googlesource.com/platform/hardware/samsung_slsi/exynos5 into cm-10.1

Android 4.2.2 release 1.2

# gpg: Signature made Wed 17 Apr 2013 01:00:33 PM PDT using DSA key ID 9AB10E78
# gpg: Can't check signature: public key not found

11 years agoexynos_omx: multi_thread: Add OMX_IndexParamVideoIntraRefresh support.
SeungBeom Kim [Fri, 16 Nov 2012 04:03:45 +0000 (13:03 +0900)]
exynos_omx: multi_thread: Add OMX_IndexParamVideoIntraRefresh support.

Add OMX_IndexParamVideoIntraRefresh support, with "Cyclic intra marcoblock refresh" mode support only.
Don't support "Adaptive intra-refresh".

o related-to-bug: 7524845

Change-Id: Id47c0cd3831db6fdb4e46ccece8f8d6f955d777a
Signed-off-by: SeungBeom Kim <sbcrux.kim@samsung.com>
11 years agoMerge "hwc: Hide layer1 if the FB_TAGET layer is not needed" into jb-mr1.1-dev
Benoit Goby [Tue, 27 Nov 2012 20:51:54 +0000 (12:51 -0800)]
Merge "hwc: Hide layer1 if the FB_TAGET layer is not needed" into jb-mr1.1-dev

11 years agoMerge "omx: basecomponent: signal abendStateEvent if componentInit fails" into jb...
Dima Zavin [Tue, 27 Nov 2012 18:03:46 +0000 (10:03 -0800)]
Merge "omx: basecomponent: signal abendStateEvent if componentInit fails" into jb-mr1.1-dev

11 years agoexynos_omx: multi_thread: Add OMX_IndexConfigVideoIntraVOPRefresh support.
SeungBeom Kim [Tue, 20 Nov 2012 03:33:33 +0000 (12:33 +0900)]
exynos_omx: multi_thread: Add OMX_IndexConfigVideoIntraVOPRefresh support.

Add config dynamic change of "encode component".

Bug: 7546690

Change-Id: I82b043d51aa8295929201ce26c2b1afd5bcdb0e8
Signed-off-by: SeungBeom Kim <sbcrux.kim@samsung.com>
11 years agoomx: basecomponent: signal abendStateEvent if componentInit fails
Dima Zavin [Thu, 8 Nov 2012 22:30:43 +0000 (14:30 -0800)]
omx: basecomponent: signal abendStateEvent if componentInit fails

Bug: 7261738
Change-Id: I1baf82b37120207de9f757a66e76185e68a81b80
Signed-off-by: Dima Zavin <dima@android.com>
11 years agohwc: Hide layer1 if the FB_TAGET layer is not needed
Benoit Goby [Tue, 30 Oct 2012 23:05:34 +0000 (16:05 -0700)]
hwc: Hide layer1 if the FB_TAGET layer is not needed

Leave layer1 enabled but hide it when not needed because if both layers
get disabled, the hdmi mixer and phy will get powered off.

Bug: 7363167
Change-Id: I4a969be7fb7877b05e866488d71f478c8f1c0fb4

11 years agoReconcile with jb-mr1-factory-release jb-mr1-release - do not merge
The Android Open Source Project [Tue, 6 Nov 2012 20:17:45 +0000 (12:17 -0800)]
Reconcile with jb-mr1-factory-release jb-mr1-release - do not merge

Change-Id: I088f7356b684381f971b7e9f6773ba24f7f9b62a

11 years agomerge in jb-mr1-release history after reset to jb-mr1-dev mr1.1-staging cm-10.1-M1 cm-10.1-M2 cm-10.1-M3
The Android Automerger [Fri, 2 Nov 2012 02:05:29 +0000 (19:05 -0700)]
merge in jb-mr1-release history after reset to jb-mr1-dev

11 years agoAllocate enough memory for HAL_PIXL_FORMAT_YV12
Rebecca Schultz Zavin [Thu, 1 Nov 2012 00:05:48 +0000 (17:05 -0700)]
Allocate enough memory for HAL_PIXL_FORMAT_YV12

Previously we were not allocating enough memory to align
the uv planes to 16 pixels.
We were allocating:
h * align(w,16) * 3 / 2 bytes
This should be:
h * align(w,16) + h * align(align(w,16)/2, 16)

Bug: 7431048
Change-Id: Iaba969795e8d20c29ee0b703af5dd884a4c88d2e
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
11 years agomerge in jb-mr1-release history after reset to jb-mr1-dev
The Android Automerger [Fri, 26 Oct 2012 23:22:58 +0000 (16:22 -0700)]
merge in jb-mr1-release history after reset to jb-mr1-dev

11 years agohardware: samsung_slsi: libcamera2: Fix flash torch mode
Sungjoong Kang [Thu, 25 Oct 2012 06:55:16 +0000 (23:55 -0700)]
hardware: samsung_slsi: libcamera2: Fix flash torch mode

This patch enables flash torch mode for flashlight apps.

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

11 years agomerge in jb-mr1-release history after reset to jb-mr1-dev
The Android Automerger [Thu, 25 Oct 2012 20:42:28 +0000 (13:42 -0700)]
merge in jb-mr1-release history after reset to jb-mr1-dev

11 years agohardware: samsung_slsi: libcamera2: Add AF state reset on mode change
Sungjoong Kang [Wed, 24 Oct 2012 06:50:12 +0000 (23:50 -0700)]
hardware: samsung_slsi: libcamera2: Add AF state reset on mode change

Resets AF state on AF mode change.
AF cancellation works properly in manual(infinite) mode.
Removed some compile warnings.

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

11 years agohardware: samsung_slsi: libcamera2: Synchronize AF mode and trigger
Sungjoong Kang [Fri, 12 Oct 2012 03:11:50 +0000 (20:11 -0700)]
hardware: samsung_slsi: libcamera2: Synchronize AF mode and trigger

This patch synchornizes AF mode metadata and trigger actions.

BUG: 7318812
Change-Id: I0db3fdf0f85a37bc1c6e0242bde7cba6c69e2746
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
11 years agomerge in jb-mr1-release history after reset to jb-mr1-dev
The Android Automerger [Wed, 24 Oct 2012 23:57:04 +0000 (16:57 -0700)]
merge in jb-mr1-release history after reset to jb-mr1-dev

11 years agohwc: Add properties to control hdcp and color range
Benoit Goby [Wed, 24 Oct 2012 00:49:52 +0000 (17:49 -0700)]
hwc: Add properties to control hdcp and color range

Bug: 7395373
Bug: 7259555
Change-Id: Ib8280a892bce123b165df51c5746775e2cf03bdf

11 years agomerge in jb-mr1-release history after reset to jb-mr1-dev
The Android Automerger [Tue, 23 Oct 2012 23:47:11 +0000 (16:47 -0700)]
merge in jb-mr1-release history after reset to jb-mr1-dev

11 years agohardware: samsung_slsi: libcamera2: ensure disabling flash at video snapshot
Younghwan Joo [Tue, 23 Oct 2012 09:49:50 +0000 (18:49 +0900)]
hardware: samsung_slsi: libcamera2: ensure disabling flash at video snapshot

This patch is to change aeMode in case of video snapshot to disable flash
sequence even received capture intent is not video snapshot but still capture.
A UI mode value of flash is updated only at preview and recording status.

BUG : 7396371
Signed-off-by: Younghwan Joo <yhwan.joo@samsung.com>
Change-Id: I4ce5a2b67c4590de9f896573c37387701afcd202

11 years agohardware: samsung_slsi: libcamera2: clipping fd score to the max score
Younghwan Joo [Thu, 18 Oct 2012 06:21:19 +0000 (15:21 +0900)]
hardware: samsung_slsi: libcamera2: clipping fd score to the max score

This patch is to clip fd score if the score is over the android max fd score
(100). If a fd score exceeds to 100, that value is fixed to 100.

BUG : 7368020
Signed-off-by: Younghwan Joo <yhwan.joo@samsung.com>
Change-Id: Ieae601cce47d79bcf79bc6e2d80a9ab24a1bb937

11 years agomerge in jb-mr1-release history after reset to jb-mr1-dev
The Android Automerger [Tue, 23 Oct 2012 13:59:34 +0000 (06:59 -0700)]
merge in jb-mr1-release history after reset to jb-mr1-dev

11 years agohardware: samsung_slsi: libcamera2: Fix for supporting various FPS modes
Sungjoong Kang [Mon, 22 Oct 2012 21:39:49 +0000 (14:39 -0700)]
hardware: samsung_slsi: libcamera2: Fix for supporting various FPS modes

Add support for 24 and 25 fps modes.
Fix bug on applying maximum fps parameter.

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

11 years agomerge in jb-mr1-release history after reset to jb-mr1-dev
The Android Automerger [Fri, 19 Oct 2012 13:59:48 +0000 (06:59 -0700)]
merge in jb-mr1-release history after reset to jb-mr1-dev

11 years agohwc: adjust protected content scaling for gscaler width constraints
Greg Hackmann [Thu, 18 Oct 2012 17:37:59 +0000 (10:37 -0700)]
hwc: adjust protected content scaling for gscaler width constraints

Protected content cannot be sent through the GPU.  Instead slightly
over-scale to meet the Gscaler's 32-pixel alignment constraint and crop
back to the requested display frame.

Also move the minimum-width check to prevent a potential divide-by-zero
in the padding calculations.

Bug: 7365351
Change-Id: Ia0807fe6c4a6c25364fe08ed1f2eb223f3cb0d4e
Signed-off-by: Greg Hackmann <ghackmann@google.com>
11 years agomerge in jb-mr1-release history after reset to jb-mr1-dev
The Android Automerger [Thu, 18 Oct 2012 13:59:48 +0000 (06:59 -0700)]
merge in jb-mr1-release history after reset to jb-mr1-dev

11 years agoMerge "Added error handling in the state change from "Load state" to "Idle state...
James Dong [Thu, 18 Oct 2012 03:16:05 +0000 (20:16 -0700)]
Merge "Added error handling in the state change from "Load state" to "Idle state"." into jb-mr1-dev

11 years agohardware: samsung_slsi: libcamera2: Add 15fps mode support
Sungjoong Kang [Wed, 17 Oct 2012 23:52:31 +0000 (16:52 -0700)]
hardware: samsung_slsi: libcamera2: Add 15fps mode support

Added 15 fps mode for camera HAL.

BUG: 6970986
Change-Id: I86ca5ec0dd7c714c66fc2fd6d3327ecbac1ca42c
     7368321
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
11 years agoMerge "hardware: samsung_slsi: libcamera2: Remove fixed-FPS for recording mode" into...
James Dong [Wed, 17 Oct 2012 23:34:55 +0000 (16:34 -0700)]
Merge "hardware: samsung_slsi: libcamera2: Remove fixed-FPS for recording mode" into jb-mr1-dev

11 years agoAdded error handling in the state change from "Load state" to "Idle state".
SeungBeom Kim [Fri, 5 Oct 2012 04:59:28 +0000 (21:59 -0700)]
Added error handling in the state change from "Load state" to "Idle state".

This patch fixes the ANR at reset/release time, caused by some failures in initilizating video decoders

Bug: 7282066

Change-Id: Ic8440ff597dc4a3a6fa568c141c28e00dda518d1
Signed-off-by: SeungBeom Kim <sbcrux.kim@samsung.com>
Signed-off-by: Yunji Kim <yunji.kim@samsung.com>
11 years agomerge in jb-mr1-release history after reset to jb-mr1-dev
The Android Automerger [Wed, 17 Oct 2012 13:59:36 +0000 (06:59 -0700)]
merge in jb-mr1-release history after reset to jb-mr1-dev

11 years agomobicore: update daemon to handle MobiCore halt status
DongJin Park [Tue, 16 Oct 2012 03:59:55 +0000 (12:59 +0900)]
mobicore: update daemon to handle MobiCore halt status

Daemon asks correct status from MobiCore: FC_INFO state_id = 1

(Update from MobiCore1.2_V005_Path3)
Bug: 71792277336639

Change-Id: I87dc8acc3fd7e56a6a0dd2c9be0c8a5b995e6c87
Signed-off-by: DongJin Park <djpax.park@samsung.com>
11 years agohardware: samsung_slsi: libcamera2: Remove fixed-FPS for recording mode
Sungjoong Kang [Wed, 17 Oct 2012 00:42:38 +0000 (17:42 -0700)]
hardware: samsung_slsi: libcamera2: Remove fixed-FPS for recording mode

Removed codes for force-setting 30 FPS for recording mode.

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

11 years agomerge in jb-mr1-release history after reset to jb-mr1-dev
The Android Automerger [Wed, 17 Oct 2012 00:30:50 +0000 (17:30 -0700)]
merge in jb-mr1-release history after reset to jb-mr1-dev

11 years agohwc: set Gscaler to narrow RGB for YUV surfaces
Greg Hackmann [Thu, 11 Oct 2012 21:26:13 +0000 (14:26 -0700)]
hwc: set Gscaler to narrow RGB for YUV surfaces

Bug: 7310985
Change-Id: I469c1de7503f53e6d8a4fecd224982547e5b9021
Signed-off-by: Greg Hackmann <ghackmann@google.com>
11 years agolibgscaler: add csc range field
Greg Hackmann [Thu, 11 Oct 2012 21:22:43 +0000 (14:22 -0700)]
libgscaler: add csc range field

Defaults to wide RGB; can be changed by setting narrowRgb field in
destination buffer configuration

Bug: 7310985
Change-Id: I7b5a4da4eeac5d82396cabb707e8651f785f039b
Signed-off-by: Greg Hackmann <ghackmann@google.com>
11 years agomerge in jb-mr1-release history after reset to jb-mr1-dev
The Android Automerger [Tue, 16 Oct 2012 13:59:37 +0000 (06:59 -0700)]
merge in jb-mr1-release history after reset to jb-mr1-dev

11 years agoOMX encode component has problem on "idle->execute->idle state change" without input...
SeungBeom Kim [Fri, 12 Oct 2012 19:36:12 +0000 (12:36 -0700)]
OMX encode component has problem on "idle->execute->idle state change" without input data.
This patch fixes the state change (Execute to Idle) bug.

related-to-bug: 7336622

Change-Id: Ied1891cbbd73c26ae635d094ab9eb043ba8ce2d6
Signed-off-by: SeungBeom Kim <sbcrux.kim@samsung.com>
11 years agoMerge "CleanSpec.mk should sit at the root of a git project." into jb-mr1-dev
Ying Wang [Mon, 15 Oct 2012 20:14:08 +0000 (13:14 -0700)]
Merge "CleanSpec.mk should sit at the root of a git project." into jb-mr1-dev

11 years agoMerge "hwc: protect on-screen gscaler buffers" into jb-mr1-dev
Greg Hackmann [Mon, 15 Oct 2012 19:07:53 +0000 (12:07 -0700)]
Merge "hwc: protect on-screen gscaler buffers" into jb-mr1-dev

11 years agoCleanSpec.mk should sit at the root of a git project.
Ying Wang [Mon, 15 Oct 2012 19:06:21 +0000 (12:06 -0700)]
CleanSpec.mk should sit at the root of a git project.

Usually you need only 1 CleanSpec.mk for a git project.

Change-Id: I95a6ce590a88f1717f5a32929311f1861af22a20

11 years agoMerge "Don't call my-dir" into jb-mr1-dev
Ying Wang [Mon, 15 Oct 2012 19:04:41 +0000 (12:04 -0700)]
Merge "Don't call my-dir" into jb-mr1-dev

11 years agoDon't call my-dir
Ying Wang [Mon, 15 Oct 2012 18:43:29 +0000 (11:43 -0700)]
Don't call my-dir

Because this is a "config" makefile which will be included in the middle
of another Android.mk, while the build system depends on my-dir to set
up LOCAL_MODULE_MAKEFILE, so the value of LOCAL_MODULE_MAKEFILE is
changed from the point where mobicore/common/LogWrapper/Android.mk is
included. That leads to incorrect dependency of export_includes.

Change-Id: I6af1e1cf4574d9ed15bf6d82bdf6a0815fb667ce

11 years agomobicore: McClient: add cleanspec so include exports are picked up
Dima Zavin [Mon, 15 Oct 2012 18:00:11 +0000 (11:00 -0700)]
mobicore: McClient: add cleanspec so include exports are picked up

Change-Id: I88896728c53182e1b80fa2280d470a6eadacecc8
Signed-off-by: Dima Zavin <dima@android.com>
11 years agomerge in jb-mr1-factory-release history after reset to jb-mr1-dev
The Android Automerger [Fri, 12 Oct 2012 23:34:36 +0000 (16:34 -0700)]
merge in jb-mr1-factory-release history after reset to jb-mr1-dev

11 years agohwc: protect on-screen gscaler buffers
Greg Hackmann [Wed, 10 Oct 2012 23:57:24 +0000 (16:57 -0700)]
hwc: protect on-screen gscaler buffers

If the display pipeline gets too far ahead then it may try to reuse a
Gscaler destination buffer while it's still on-screen.  Protect against
by setting the destination buffer's acquire fence, using the fence
obtained when it was sent on-screen.

Bug: 7319537
Change-Id: Ibac5da4b3e4b50c2413214a390abea64c9c56868
Signed-off-by: Greg Hackmann <ghackmann@google.com>
11 years agomerge in jb-mr1-release history after reset to jb-mr1-dev
The Android Automerger [Fri, 12 Oct 2012 18:50:06 +0000 (11:50 -0700)]
merge in jb-mr1-release history after reset to jb-mr1-dev

11 years agomerge in jb-mr1-factory-release history after reset to jb-mr1-dev
The Android Automerger [Fri, 12 Oct 2012 17:26:55 +0000 (10:26 -0700)]
merge in jb-mr1-factory-release history after reset to jb-mr1-dev

11 years agohwc: Call V4L2_CID_TV_UPDATE when mixer configuration is done
Benoit Goby [Mon, 8 Oct 2012 18:06:01 +0000 (11:06 -0700)]
hwc: Call V4L2_CID_TV_UPDATE when mixer configuration is done

Bug: 7286984
Change-Id: I1e607d524dd96738a193e8fb40d30c38fe39e7f6

11 years agomerge in jb-mr1-release history after reset to jb-mr1-dev
The Android Automerger [Fri, 12 Oct 2012 13:59:32 +0000 (06:59 -0700)]
merge in jb-mr1-release history after reset to jb-mr1-dev

11 years agolibgscaler: enable/disable hardware content protection during drm playback
Dima Zavin [Fri, 5 Oct 2012 23:04:52 +0000 (16:04 -0700)]
libgscaler: enable/disable hardware content protection during drm playback

Bug: 7287429
Change-Id: Ife33062c8e1ee961139e8f3b50720ea43c2882e3
Signed-off-by: Dima Zavin <dima@android.com>
11 years agohardware: samsung_slsi: exynos5: add secure path configure API
Jungtae Kim [Tue, 2 Oct 2012 23:08:56 +0000 (16:08 -0700)]
hardware: samsung_slsi: exynos5: add secure path configure API

The library includes two interfaces:
- CP_Enable_Path_Protection()
- CP_Disable_Path_Protection()
The first one is should be called before start of DRM playback.
The second one is should be called after end of DRM playback

Bug: 7287429
Change-Id: I44aab1cca7638fb8eac3d3fc90154c5382d8c71a
Signed-off-by: Jungtae Kim <jt1217.kim@samsung.com>
[ dima: fixed extern to C and make files ]
Signed-off-by: Dima Zavin <dima@android.com>
11 years agomerge in jb-mr1-release history after reset to jb-mr1-dev
The Android Automerger [Thu, 11 Oct 2012 23:26:41 +0000 (16:26 -0700)]
merge in jb-mr1-release history after reset to jb-mr1-dev

11 years agohwc: Implement blank per display
Benoit Goby [Sat, 22 Sep 2012 02:14:08 +0000 (19:14 -0700)]
hwc: Implement blank per display

Bug: 7286984
Change-Id: I7382ca332de3b4035573349227b06c43dee38f86

11 years agomerge in jb-mr1-factory-release history after reset to jb-mr1-dev
The Android Automerger [Thu, 11 Oct 2012 15:19:26 +0000 (08:19 -0700)]
merge in jb-mr1-factory-release history after reset to jb-mr1-dev

11 years agomerge in jb-mr1-release history after reset to jb-mr1-dev
The Android Automerger [Thu, 11 Oct 2012 14:03:58 +0000 (07:03 -0700)]
merge in jb-mr1-release history after reset to jb-mr1-dev

11 years agoexynos5: hwc: add dst's crop size alignment.
Sanghee Kim [Wed, 10 Oct 2012 03:04:23 +0000 (20:04 -0700)]
exynos5: hwc: add dst's crop size alignment.

Bug :7274341

Change-Id: Icc4b631e81ddfd432bbd7902fa033d4b187b9273
Signed-off-by: Sanghee Kim <haya93@samsung.com>
11 years agomerge in jb-mr1-release history after reset to jb-mr1-dev
The Android Automerger [Wed, 10 Oct 2012 21:06:45 +0000 (14:06 -0700)]
merge in jb-mr1-release history after reset to jb-mr1-dev

11 years agomerge in jb-mr1-factory-release history after reset to jb-mr1-dev
The Android Automerger [Wed, 10 Oct 2012 15:56:12 +0000 (08:56 -0700)]
merge in jb-mr1-factory-release history after reset to jb-mr1-dev

11 years agomerge in jb-mr1-release history after reset to jb-mr1-dev
The Android Automerger [Wed, 10 Oct 2012 13:59:35 +0000 (06:59 -0700)]
merge in jb-mr1-release history after reset to jb-mr1-dev

11 years agohardware: samsung_slsi: libcamera2: Fix EXIF GPS Processing Method
Sungjoong Kang [Wed, 10 Oct 2012 04:12:15 +0000 (21:12 -0700)]
hardware: samsung_slsi: libcamera2: Fix EXIF GPS Processing Method

This patch fixes the case that GPS Processing Method field is not
set in EXIF data.

BUG: 7318174
Change-Id: Iad9059072e2b9e27d4c2e90543a966dcd7a26f7a
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
11 years agomerge in jb-mr1-release history after reset to jb-mr1-dev
The Android Automerger [Tue, 9 Oct 2012 23:07:23 +0000 (16:07 -0700)]
merge in jb-mr1-release history after reset to jb-mr1-dev

11 years agomerge in jb-mr1-release history after reset to jb-mr1-dev
The Android Automerger [Tue, 9 Oct 2012 22:39:06 +0000 (15:39 -0700)]
merge in jb-mr1-release history after reset to jb-mr1-dev

11 years agolibcamera2: Round instead of truncate GPS Coords
Alex Ray [Tue, 9 Oct 2012 21:35:41 +0000 (14:35 -0700)]
libcamera2: Round instead of truncate GPS Coords

Bug: 6970573
Change-Id: Ie984a945ce5a2e4a552bd33353ee0de60a64fc59

11 years agohardware: samsung_slsi: libcamera2: Change square aspect resolution
Sungjoong Kang [Tue, 9 Oct 2012 19:00:51 +0000 (12:00 -0700)]
hardware: samsung_slsi: libcamera2: Change square aspect resolution

Under VDIS, maximum height of scaler output is 1080.
This patch changes the resolution of square aspect resolution
to 1024 by 1024.
Also removed VDIS and 3DNR mismatch case.

BUG: 7308846
Change-Id: Ia384082ef125263161ac568bef4c3ae74d1984c6
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
11 years agohardware: samsung_slsi: libcamera2: Fixed release stream bug.
Hyeonmyeong Choi [Tue, 9 Oct 2012 00:19:00 +0000 (09:19 +0900)]
hardware: samsung_slsi: libcamera2: Fixed release stream bug.

This patch fixed bug that could not release recording stream.

BUG: 7300841
Change-Id: Icbbe4f23b24a410a0686c57f7ce5b3b9cacbebe6
Signed-off-by: Hyeonmyeong Choi <hyeon.choi@samsung.com>
11 years agohardware: samsung_slsi: libcamera2: Apply pending JPEG count to in_progress
Sungjoong Kang [Mon, 8 Oct 2012 23:15:15 +0000 (16:15 -0700)]
hardware: samsung_slsi: libcamera2: Apply pending JPEG count to in_progress

Apply the count of pending JPEG output to the result of
get_in_progress_count.

BUG: 7276954
Change-Id: I89aa1311618423d089c9572c9a292d90eb5de92d
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
11 years agoRevert "STOPSHIP libcamera2: remove device metadata"
Rebecca Schultz Zavin [Tue, 9 Oct 2012 19:10:49 +0000 (12:10 -0700)]
Revert "STOPSHIP libcamera2: remove device metadata"

This reverts commit 1d47061ad52ca8f85ccd22e891f9427d020d9a0f.

Bug: 7065917
Change-Id: Iddcb2e0a89625c438516b1d7a01ca039d078b677

11 years agoRevert "STOPSHIP libcamera2: remove device metadata"
Rebecca Schultz Zavin [Tue, 9 Oct 2012 19:10:44 +0000 (12:10 -0700)]
Revert "STOPSHIP libcamera2: remove device metadata"

This reverts commit 6c7b0add3629c0fae49a947e2639892c7cf1b074.

Bug: 7065917
Change-Id: I3685b40708bf17eed1a62ac90ae91ff564667c4e

11 years agoAlign secure video surfaces to 1 MB
Rebecca Schultz Zavin [Sat, 6 Oct 2012 16:20:31 +0000 (09:20 -0700)]
Align secure video surfaces to 1 MB

Change-Id: I6de31d4f07b31cbc40d08d8cddb076149455dc55
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
11 years agoMerge "hwc: always make forward progress in fimd set()" into jb-mr1-dev
Greg Hackmann [Tue, 9 Oct 2012 15:55:57 +0000 (08:55 -0700)]
Merge "hwc: always make forward progress in fimd set()" into jb-mr1-dev

11 years agomerge in jb-mr1-release history after reset to jb-mr1-dev
The Android Automerger [Tue, 9 Oct 2012 13:59:33 +0000 (06:59 -0700)]
merge in jb-mr1-release history after reset to jb-mr1-dev

11 years agolibgscaler: Fix acquireFenceFd leak with m2m gscalers
Benoit Goby [Mon, 8 Oct 2012 21:29:35 +0000 (14:29 -0700)]
libgscaler: Fix acquireFenceFd leak with m2m gscalers

After exynos_gsc_m2m_run_core succeeds, the gscaler has a reference on
the acquireFenceFd fences, so they must be closed before returning.

Bug: 7286984
Change-Id: Ie59009e7c6a3e2648e1aa9bb974d8a908788f1e5

11 years agohwc: always make forward progress in fimd set()
Greg Hackmann [Mon, 8 Oct 2012 21:54:45 +0000 (14:54 -0700)]
hwc: always make forward progress in fimd set()

If the FIMD's set() fails for any reason, post a black screen to ensure
forward progress, and try setting the HDMI contents anyway.  If the
black screen fails something has gone horribly wrong, so terminate the
runtime.

Bug: 7304464
Change-Id: I6d7333574286e3a87c990c2476c5d987613067d8
Signed-off-by: Greg Hackmann <ghackmann@google.com>
11 years agolibgscaler: Fix acquireFenceFd leak with m2m gscalers
Benoit Goby [Mon, 8 Oct 2012 21:29:35 +0000 (14:29 -0700)]
libgscaler: Fix acquireFenceFd leak with m2m gscalers

After exynos_gsc_m2m_run_core succeeds, the gscaler has a reference on
the acquireFenceFd fences, so they must be closed before returning.

Bug: 7286984
Change-Id: Ie59009e7c6a3e2648e1aa9bb974d8a908788f1e5

11 years agolibcamera2: Prevent multiple camera open calls
Alex Ray [Mon, 8 Oct 2012 20:20:21 +0000 (13:20 -0700)]
libcamera2: Prevent multiple camera open calls

Requires that previous open camera be closed before a new camera can be
opened.

Bug: 7298182
Change-Id: If128fd5bfa0ce5d6e721351245f220f0530373e8

11 years agolibcamera2: Clean up scary looking dequeue_request returned NULL log message.
Igor Murashkin [Mon, 8 Oct 2012 20:16:07 +0000 (13:16 -0700)]
libcamera2: Clean up scary looking dequeue_request returned NULL log message.

Bug: 7307253
Change-Id: I12e1f18809b98603af54708184f833762b946db4

11 years agogralloc: pad RGB buffers by a minimum of 2 extra lines
Greg Hackmann [Mon, 8 Oct 2012 17:14:53 +0000 (10:14 -0700)]
gralloc: pad RGB buffers by a minimum of 2 extra lines

If the buffer is xcrop pixels off the left edge of the screen, xcrop
extra pixels are needed past the 1 line of padding normally expected by
the FIMD.  xcrop is not known at allocation time so assume the worst
case of a full extra line.

Bug: 7304464
Change-Id: I126992eccfb36a402a202a8236a07a5479332812
Signed-off-by: Greg Hackmann <ghackmann@google.com>
11 years agomerge in jb-mr1-release history after reset to jb-mr1-dev
The Android Automerger [Mon, 8 Oct 2012 13:59:24 +0000 (06:59 -0700)]
merge in jb-mr1-release history after reset to jb-mr1-dev

11 years agoMerge "hwc: Use sync fences with m2m gscalers" into jb-mr1-dev
Benoit Goby [Mon, 8 Oct 2012 01:31:22 +0000 (18:31 -0700)]
Merge "hwc: Use sync fences with m2m gscalers" into jb-mr1-dev

11 years agoMerge "libgscaler: Add support for sync fences" into jb-mr1-dev
Benoit Goby [Mon, 8 Oct 2012 01:31:15 +0000 (18:31 -0700)]
Merge "libgscaler: Add support for sync fences" into jb-mr1-dev

11 years agomerge in jb-mr1-release history after reset to jb-mr1-dev
The Android Automerger [Sun, 7 Oct 2012 23:05:21 +0000 (16:05 -0700)]
merge in jb-mr1-release history after reset to jb-mr1-dev

11 years agohardware: samsung_slsi: libcamera2: Enable 3DNR
Hyeonmyeong Choi [Fri, 5 Oct 2012 04:10:21 +0000 (13:10 +0900)]
hardware: samsung_slsi: libcamera2: Enable 3DNR

This patch enable 3DNR for video stabilization.

Bug: 7290340
Change-Id: Ib9ced603c8e65bf517684a01817a3fe6d336f213
Signed-off-by: Hyeonmyeong Choi <hyeon.choi@samsung.com>
11 years agomerge in jb-mr1-release history after reset to jb-mr1-dev
The Android Automerger [Sun, 7 Oct 2012 13:59:31 +0000 (06:59 -0700)]
merge in jb-mr1-release history after reset to jb-mr1-dev

11 years agohwc: Use sync fences with m2m gscalers
Benoit Goby [Thu, 4 Oct 2012 23:35:57 +0000 (16:35 -0700)]
hwc: Use sync fences with m2m gscalers

Bug: 7286984
Change-Id: If714474ddb5093d4c2fe0bf35fb15ce612846664

11 years agolibgscaler: Add support for sync fences
Benoit Goby [Thu, 4 Oct 2012 20:25:29 +0000 (13:25 -0700)]
libgscaler: Add support for sync fences

gsc_m2m_run returns a release fence for both the src and dst images.
The src releaseFenceFd can be returned to userspace as the
releaseFenceFd of the layer and the dst releaseFenceFd can be used as
the acquiredFenceFd for the next pipeline step.

Bug: 7286984
Change-Id: I16bd2828f03fd3eed2c62b23e2325357b1e477e9

11 years agohardware: samsung_slsi: libcamera2: make sync between pre and main flash(2)
Younghwan Joo [Fri, 5 Oct 2012 04:36:28 +0000 (13:36 +0900)]
hardware: samsung_slsi: libcamera2: make sync between pre and main flash(2)

This patch is to matching pre-flash and main-flash. In flash scenario,
Firing main flash have to be followed by firing pre-flash.
This commit is to add previous patch. (#25402, patchset 3)

BUG : 7276572
Change-Id: I0290519f791802705a20309be20e910678f3df24
Signed-off-by: Younghwan Joo <yhwan.joo@samsung.com>
11 years agohardware: samsung_slsi: libcamera2: Supports AE region
Sungjoong Kang [Fri, 5 Oct 2012 02:38:41 +0000 (19:38 -0700)]
hardware: samsung_slsi: libcamera2: Supports AE region

With this patch, selecting AE region by touching screen
will be enabled.

BUG: 7286132
Change-Id: Ifffe5589081ed4d8da47b663e427897bc87b0cce
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
11 years agohardware: samsung_slsi: libcamera2: Fix CAF to AF transition error
Sungjoong Kang [Fri, 5 Oct 2012 01:19:14 +0000 (18:19 -0700)]
hardware: samsung_slsi: libcamera2: Fix CAF to AF transition error

This bug fixes AF failure on changing to AF from CAF mode.

BUG: 7287500
Change-Id: Idae0d247787ad3bb7dfe68e4f1d16f39cfb68fbd
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
11 years agohardware: samsung_slsi: libcamera2: Support JPEG quality
Hyeonmyeong Choi [Thu, 4 Oct 2012 07:34:55 +0000 (16:34 +0900)]
hardware: samsung_slsi: libcamera2: Support JPEG quality

This patch support JPEG quality and thumbnail quality.
The default values of JPEG and thumbnail quality are 100.

Change-Id: I4dc1f21b5b36cb21b3500646817378a0d91e49d6
Signed-off-by: Hyeonmyeong Choi <hyeon.choi@samsung.com>
11 years agohardware: samsung_slsi: libcamera2: Fix screen blinking on start
Sungjoong Kang [Thu, 4 Oct 2012 20:37:07 +0000 (13:37 -0700)]
hardware: samsung_slsi: libcamera2: Fix screen blinking on start

This patch fixes screen blinking on starting camera app

BUG: 7288978
Change-Id: Iba3e2de36da898571d42db1aefb8675602bce393
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
11 years agohardware: samsung_slsi: libcamera2: Fix JPEG GPS Coordinates
Sungjoong Kang [Thu, 4 Oct 2012 20:31:13 +0000 (13:31 -0700)]
hardware: samsung_slsi: libcamera2: Fix JPEG GPS Coordinates

Fixed JPEG GPS Coordinates error due to unit mismatch.

BUG: 7287793
Change-Id: Ie063f21e8a684fe7d5c6e56ca97b907d8fb302a9
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
11 years agoMerge "hardware: samsung_slsi: libcamera2: Correct front and rear camera info" into...
Igor Murashkin [Fri, 5 Oct 2012 20:46:18 +0000 (13:46 -0700)]
Merge "hardware: samsung_slsi: libcamera2: Correct front and rear camera info" into jb-mr1-dev

11 years agohardware: samsung_slsi: libcamera2: Correct front and rear camera info
Sungjoong Kang [Fri, 5 Oct 2012 04:51:47 +0000 (21:51 -0700)]
hardware: samsung_slsi: libcamera2: Correct front and rear camera info

This patch corrects AF, AE and Scene mode parameters
for front and rear camera each.

BUG: 7287905
Change-Id: I95c16293530903f3d83170bdb172e67f9adcbaff
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
11 years agohardware: exynos5: hwc: add gsc's width alignment constraint.
Sanghee Kim [Fri, 5 Oct 2012 01:44:36 +0000 (18:44 -0700)]
hardware: exynos5: hwc: add gsc's width alignment constraint.

1.M2M case
GSC's dst width should be aligned with 32 pixels in case of RGB888.

Bug: 7276111
Change-Id: I563f7367b7f368d24194d178c8b0ca3b445b6ec3
Signed-off-by: Sanghee Kim <haya93@samsung.com>
11 years agomerge in jb-mr1-release history after reset to jb-mr1-dev
The Android Automerger [Fri, 5 Oct 2012 13:59:45 +0000 (06:59 -0700)]
merge in jb-mr1-release history after reset to jb-mr1-dev

11 years agohwc: don't logspam about unexpected formats
Greg Hackmann [Thu, 4 Oct 2012 21:42:44 +0000 (14:42 -0700)]
hwc: don't logspam about unexpected formats

Bug: 7289360
Change-Id: Ib562e94ee127980a1910cbb2ce4ed206806a7c5d
Signed-off-by: Greg Hackmann <ghackmann@google.com>
11 years agoFix bug in gralloc
Rebecca Schultz Zavin [Thu, 4 Oct 2012 18:23:56 +0000 (11:23 -0700)]
Fix bug in gralloc

If buffers were allocated and then locked without ever
being passed to another process lock would return NULL
instead of a pointer to the buffer.  Instead map the buffer
from lock if it hasn't already been done by register.  Also
check in free and unmap the buffer it is mapped.

Change-Id: I3fe670ccb429f3de5f2e4dd07768414e70a02036
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
11 years agoMerge changes I28fc9f33,I7594e39e,I831e4839 into jb-mr1-dev
Greg Hackmann [Thu, 4 Oct 2012 18:15:19 +0000 (11:15 -0700)]
Merge changes I28fc9f33,I7594e39e,I831e4839 into jb-mr1-dev

* changes:
  hwc: keep gscaler streaming on between frames
  libgscaler: don't reconfigure m2m gscaler every frame
  libgscaler: split stop operation into discrete wait and stop operations

11 years agohwc: keep gscaler streaming on between frames
Greg Hackmann [Wed, 3 Oct 2012 23:28:19 +0000 (16:28 -0700)]
hwc: keep gscaler streaming on between frames

Reconfiguring requires stopping and starting the stream, so only call
gsc_config_exclusive() when the configuration actually needs to be
changed.  Use the new gsc_wait_exclusive() operation to wait every frame
but only stop on cleanup.

Bug: 7202379
Change-Id: I28fc9f33a9345c91aef3f82098aeb668893f620e
Signed-off-by: Greg Hackmann <ghackmann@google.com>
11 years agomerge in jb-mr1-release history after reset to jb-mr1-dev
The Android Automerger [Thu, 4 Oct 2012 13:59:49 +0000 (06:59 -0700)]
merge in jb-mr1-release history after reset to jb-mr1-dev