Commit graph

61 commits

Author SHA1 Message Date
Simon Shields
28bf1cc919 exynos4: allow using SLSI stack
Change-Id: I6201fb7b513f0b0d771460be133a7f32691b5070
2017-01-10 13:25:38 +00:00
Dominggoes Isakh
cb48f297ff exynos4: Fix libfimc build
* Expected return type is an address, not a boolean.

Change-Id: I454c23b66388fe06fc6d630b7b510ae85bd94c4a
2016-12-18 13:06:03 -08:00
Simon Shields
fe32c93da2 exynos4: hwc: GLES/gl.h is needed regardless of HWC_HWOVERLAY
Change-Id: I83108ba3d2442fbc0a252bd98c988235bafe7dc8
2016-11-20 21:37:16 -08:00
Simon Shields
05326f499d exynos4: gralloc: we have an ALIGN macro, use it
Change-Id: I1ef089b004d1d1e3f2ae525638954536ca881c7a
2016-04-15 10:10:36 -07:00
Javi Ferrer
cc48856905 exynos4: squash opensource libUMP
commit f40eeecbe44ee3ca5f4406e8881f6ffe1507d87c
Author: Dheeraj CVR <cvr.dheeraj@gmail.com>
Date:   Sun Dec 14 16:41:30 2014 +0530

    exynos4: libUMP: fix headers for newer mali driver

    Change-Id: Ia81fa1949d04d809b4c5045269a70d7bab758f4a

commit 8c3792c590c0591647ab5ab59ff74d11e5f8afdd
Author: Dheeraj CVR <cvr.dheeraj@gmail.com>
Date:   Sun Dec 14 16:38:51 2014 +0530

    exynos4: libUMP: use relative include paths

    Change-Id: If46c68512d0404df0d46734531a6160eb18b7ce5

commit feb6f2c45d4f87655a2f391114946933a128e60c
Author: Javi Ferrer <javi.f.o@gmail.com>
Date:   Fri Nov 21 04:05:51 2014 +0530

    exynos4: open source libUMP

    - Deleted unneeded include ion.h
    - Correct libsecion build
    - Correct gralloc build and bring back ump_ref_drv_ion_import

Change-Id: I1da602ec77d78e5056ea0c37f328c6c1b0e60e00
2016-03-21 11:09:30 -07:00
Caio Schnepper
e48f7860b9 libgralloc: Fix refresh rate calculation
Calculated refresh rate can be 3% off
Reference: https://code.google.com/p/android/issues/detail?id=69391

Change-Id: I3b4efefcc0aef695ba48abdfb61f6d38b9d0a79c
2015-11-30 11:05:10 -02:00
rogersb11
dbf394e847 samsung: Compilation fixes
* Add missing headers
* Cast values to correct types

Change-Id: Iaf621c562e884daeb22f6ec700d6989ba6ba1aef
2015-11-09 14:07:55 -08:00
Caio Schnepper
2f04f84366 exynos4: Fix build of hwc and gralloc
HAL_PIXEL_FORMAT_RGBA_5551 and HAL_PIXEL_FORMAT_RGBA_4444 are used
by our hwc and gralloc, but they no longer exist in /system/core/include,
so we are moving these two formats to the hardware specific repo

Change-Id: I1c214af3b9819290173d2d60122d45a8ac635faf
2015-10-19 21:13:45 -02:00
Caio Schnepper
d126ce64b4 libgralloc_ump: Fix build
Included legacy <pixelflinger/format.h> to continue
using "GGL_PIXEL_FORMAT_L_8" pixel format

Change-Id: If08f90333bbcd9857f0dbcb462aaf6e8ad4d689f
2015-10-19 14:36:14 -02:00
Caio Schnepper
dd9ce7d335 libfimg3x: Remove android_pmem.h include
Change-Id: I514e96676578a97b9481643e58a0e49a8d017678
2015-04-27 13:55:08 -03:00
Howard Su
a42023004b libcamera: fix camera.
Change-Id: I8992ec58b0254c73075e5e1a7b08227958179c0e
2014-11-28 07:51:44 +00:00
sbrissen
99008c2002 Exynos4: Fix build
Change-Id: Idb327b37156e2014a34a8831ce6d60769e3217af
2014-11-19 08:28:43 -05:00
Ricardo Cerqueira
bf4502e660 Exclude generic camera implementation if TARGET_PROVIDES_CAMERA_HAL
Change-Id: I91066dfa3d271aa7f909fc8751adb74b622173d2
2014-05-20 10:09:52 +01:00
Flamefire
5d0cdb761c Fix crash on boot
There is a race condition where the sysfs-vsync thread accesses a value
(in particular a function ptr) that may not have been set yet as this
is done externally.

Change-Id: If1afb1533344e994398b9b6f5bd3dfb125313416
2014-01-28 17:21:20 +01:00
Ricardo Cerqueira
0ae0edd95a gralloc: Attribute buffer ownership to last caller
Switch buffer management from creator to latest registrant

Change-Id: If6b1ab1a553f701e4a1038c089f2b2ecb02c2e8b
2014-01-02 16:01:26 +00:00
Ricardo Cerqueira
73ef2c14bf Revert "gralloc: Allow unmapping concurrent handles"
This reverts commit a3a9aaa5bb.
2014-01-02 16:01:22 +00:00
sbrissen
52466f81e2 Exynos: fix gralloc build
Change-Id: Iae8c7cf947aacb6ec5c952a10a14b9d41c397ed2
2013-11-06 13:28:15 -05:00
Ricardo Cerqueira
a3a9aaa5bb gralloc: Allow unmapping concurrent handles
If we allow registering those buffers, we need to let them go, too

Change-Id: I6c2dc862e1e783e2b0d3c7d37d60ebe2290173fa
2013-10-27 19:51:25 +00:00
Ricardo Cerqueira
946eb02095 gralloc: Allow any process to have multiple buffer handles
Change-Id: I670ff7e03b19c07094b506a4422f99c30f06db0e
2013-10-25 23:38:52 +01:00
XpLoDWilD
81366768f2 exynos4: gralloc: Remove non-trivial initializers to fix build
Change-Id: Id21a3506132b2be1ff5a606858d1be2dd897338d
2013-07-26 12:00:13 +02:00
Daniel Hillenbrand
41e1d1a242 exynos4: SecBuffer: add missing c++ ifdefs
Change-Id: I6c07d14675e5c6f835401d2660f208db8e757a71
2013-06-15 11:14:35 +02:00
Daniel Hillenbrand
09e7e82747 exynos4412: update fimg4x
http://git.insignal.co.kr/insignal/origen_quad-jb_mr1.1/android/hardware/samsung_slsi/exynos4/log/?h=origen_quad-jb_mr1.1

Change-Id: Idbcc372285b168fa171e195eed43e20c27182fab
2013-06-14 16:18:47 +02:00
ghepeu
cfaad78bbb exynos4: hal: include: Exif.h: always keep two decimal places in macros
The APEX macros always rounded to int, losing too much precision. Ensure
that we always keep at least two decimal digits.

The more precise F-number comes from the value recorded by the camera
closed source driver.

Added a new macro APEX_SHUTTER_TO_EXPOSURE(x) (credit to tryptophane).

Change-Id: Ief43c15c6517d8dc48d4d4bc9e93df9eb01e6b91
2013-05-10 14:27:52 +02:00
angelsl
ee21f4bdd1 exynos4: Add open source libsecion.
This libsecion is reverse engineered from the libsecion.so blob and then
written based on the Exynos 5 libion available in AOSP.

Change-Id: Ibe69047c78491e3c7f3173b18fcabdf327fcfbd0
Signed-off-by: angelsl <hidingfromhidden@gmail.com>
2013-02-24 14:29:28 +08:00
codeworkx
79b8917c20 exynos4: update media headers
Change-Id: Ia6221554d290c46f11c68e276dda41c8ebe3a7ab
2013-02-17 15:24:50 +00:00
Andrew Dodd
a7d49af0a9 gralloc: Remove hacks
Stock gralloc doesn't have these alignment hacks.  In fact
they currently do nothing and won't until we fix HWC.

Change-Id: I3427cf3fed84a023ba6ed69b0e0fe0b63ea00886
2013-01-15 20:09:06 -05:00
Andrew Dodd
f9f985d6ba gralloc: Add missing GRALLOC_USAGE_HW_FIMC1 logic
This caused the ION pointer to get clobbered with a UMP
pointer when FIMC1 memory was requested.

After a while, camera would be unable to allocate buffers
due to ION memory not being freed properly.

Change-Id: I1ba1d27da924a0bb81631548e83c7f3e5789f319
2012-12-18 17:13:24 -05:00
Daniel Hillenbrand
d052b701d2 Merge "hwc: Pull in updates from exynos3 hwc" into mr1-staging 2012-12-11 04:57:03 -08:00
Andrew Dodd
e6a23d7713 hwc: Pull in updates from exynos3 hwc
Change-Id: I61e1556da3e2d1e9a8b9c22163f4f11982bda7dc
2012-12-11 13:45:31 +01:00
Daniel Hillenbrand
04470b7fa8 Merge "gralloc: Back out hacks now that Mali-derping is fixed" into mr1-staging 2012-12-10 22:41:07 -08:00
codeworkx
6ab6c16999 exynos4: libhwcomposer: disable debugging
Change-Id: Iead8beee1c2c40b3c7ce1277c84dc180fb96ecb8
2012-12-09 09:51:22 +01:00
Andrew Dodd
19e59a77d9 gralloc: Back out hacks now that Mali-derping is fixed
Two reverts squashed, due to Mali-derping being fixed
in frameworks/native:

Revert "gralloc: avoid using framebuffer"

This reverts commit 5125ccc5b6.

Revert "gralloc:  Send first 2 FB buffers to carveout and next to UMP"

This reverts commit d288deb284.

Change-Id: I530dc255b7543e03d0e8277d3ad12ed11d6649ab
2012-12-08 18:22:52 -05:00
codeworkx
6aab55a059 exynos4: gralloc: fix fimc1/ion logic
Change-Id: I0d125275e4d9ec3b6368572b9c0aa1033969c98d
2012-12-07 20:51:05 +01:00
Andrew Dodd
3e73708c2e exynos4: gralloc: Do FIMC1 memory allocations from ION instead of FIMC1
Mobile's blobs behave this way, except they don't do the
4k alignment done by the FIMC1 allocs.

The 4k alignment should fix issues such as NHK World Live TV,
but fails to do so.

Change-Id: I1ee4cd13e23f9f2f6c6616ee9eed1096b571a82c
2012-12-07 17:21:00 +01:00
Andrew Dodd
2f662dd093 gralloc_priv: Remove unused yaddr member
Mobile's blobs don't appear to have been compiled with this
present in their headers, and none of the Insignal sources
actually use this.

Change-Id: Ib8611f6da90ea78aa8eec451c76f56ddb32b45a4
2012-12-06 01:41:45 -05:00
Andrew Dodd
3fc2ca9f38 gralloc: Let } rejoin its people
This is the story of poor }.  It is a painful saga.

Samsung left } floating inside the galaxy of framebuffer_alloc,
unable to join its brethren on the planet of STANDARD_LINUX_SCREEN
when they were shifted out of the #ifdef dimension.

codeworkx brutally eliminated poor } from the galaxy, it was
nowhere to be seen.  codeworkx then took pity on the } and
placed it back on the planet of STANDARD_LINUX_SCREEN, but
placed it on a continent where it was all alone, unable to
ever see its mate {

Take pity on poor }, let it rejoin its people on the correct
continent of the planet STANDARD_LINUX_SCREEN, so they may
all shift out of the #ifdef dimension together.

Change-Id: I7a700b73ccd2c91f91d9af3704930759f46978c7
2012-12-05 00:47:48 -05:00
codeworkx
1400c151aa gralloc: add HAL_PIXEL_FORMAT_YCbCr_420_SP_TILED for video
Change-Id: I340b2bc065490797889aa17c5396cf40e0e7d6ff
2012-12-03 22:21:46 +01:00
codeworkx
5125ccc5b6 gralloc: avoid using framebuffer
Change-Id: I216b4b67f09729d00d337512ab17ff378f218a33
2012-12-03 21:22:06 +01:00
codeworkx
00b0625388 gralloc: do it the android way
Change-Id: I54d7cfcbf39a97a340cf5b807537c39584c0e50a
2012-12-03 18:15:06 +01:00
codeworkx
c5b109bede gralloc: hello }, welcome back at your new home
Change-Id: I86f80b78325f37f2d46b0c3b08818ab1274242e9
2012-12-03 18:11:28 +01:00
codeworkx
0a4bdb5f50 gralloc: hello }, what are you doing there?
Change-Id: Idf59890cb41e97004039a71e4b32f3d263b89482
2012-12-03 18:05:53 +01:00
Espen Fjellvær Olsen
d288deb284 gralloc: Send first 2 FB buffers to carveout and next to UMP
Taken from QCOM gralloc:

commit d80a52cbf961d737f6f3beef47b868a581b98591
Author: Saurabh Shah <saurshah@codeaurora.org>
Date:   Tue Oct 2 14:32:40 2012 -0700

gralloc:  Send first 2 FB buffers to carveout and next to IOMMU

Gralloc uses the GRALLOC_USAGE_HW_FB flag to allocate memory from carveout.
This is fine for primary framebuffer, but for external framebuffer we need IOMMU
heap buffers, since the ioctls for external work with those.

Ideally, the primary buffers also need to come from IOMMU heap, which is ongoing
work. This patch allocates the first 2 FB buffer requests (assuming they are for
    primary) from carveout and allocates all subsequent buffers from IOMMU heap.

Bug: 7124159
Change-Id: Ie53b2e1e7fcac136acd2d251f39cefe367fc7125
Signed-off-by: Iliyan Malchev <malchev@google.com>
2012-12-03 17:45:45 +01:00
codeworkx
4b20a95b20 Revert "exynos4: gralloc: higher number of buffers for page flipping"
This reverts commit 8b9deaf74e.
2012-12-03 17:43:43 +01:00
codeworkx
39aefd0fc4 libhwcomposer: keep window 2 open
Window 2 is used to query global info about the LCD.

Kanged from patch for aries by Greg Hackmann <ghackmann@google.com>

Change-Id: Idf754d4536337d6c06652c1d0c744dc7c0936b15
2012-12-02 20:05:26 +01:00
codeworkx
8b9deaf74e exynos4: gralloc: higher number of buffers for page flipping 2012-12-01 23:54:58 +01:00
codeworkx
abfed77d46 exynos4: hwcomposer: add uevent vsync handling 2012-12-01 19:37:39 +01:00
espenfjo
34f9d5d692 exynos4: libhwcomposer: update for new api version 2012-12-01 18:52:36 +01:00
codeworkx
1030fe0ae8 exynos4: update gralloc from insignal, modify it to work with libsecion 2012-12-01 18:45:44 +01:00
codeworkx
d573d9b5a1 exynos4: add missing pixel format definitions
Change-Id: I0386e8a9209d4f6633f67aa028c512e749c2c857
2012-11-27 12:34:52 +01:00
Daniel Hillenbrand
1784ceccd6 fix libcamera and fimc conflict 2012-07-22 17:32:42 +02:00