Commit graph

172 commits

Author SHA1 Message Date
Daniel Hillenbrand
ebc06142fd exynos4210: liblights: big cleanup
http://review.cyanogenmod.org/#/c/48922/

Change-Id: I5fa9602649c5d0e902dfc9ba9e50e8197d0dfb76
2013-08-23 22:08:04 +02:00
Daniel Hillenbrand
f3bf842bd6 liblights: exynos4210: fix button off value
since we're writing to the command interface the correct values are:

1 - on
2 - off

Change-Id: I4e61b0eedd1dcfba32319b26cd9e29202f66fcaa
2013-08-21 20:49:48 +02:00
XpLoDWilD
81366768f2 exynos4: gralloc: Remove non-trivial initializers to fix build
Change-Id: Id21a3506132b2be1ff5a606858d1be2dd897338d
2013-07-26 12:00:13 +02:00
Qaweck
20dd0df8e3 NFC refactoring
Change-Id: Id239eae364b7e1eddc512acb3516be1c62a726d1
2013-07-22 20:31:23 +02:00
Daniel Hillenbrand
c0e536a0d0 samsung: move ril client out of exynos4
Change-Id: I8aa0470652c060a531d2cc7f2d8c68d3c40f5f95
2013-07-08 17:11:45 +02:00
sbrissen
6b226ad645 Exynos4x12: liblights: ifdef exynos4x12 tabs
Change-Id: I3461a6569bf7d3c65e72cc911282bb3ee8e52bc5
2013-06-21 09:08:25 -04: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
codeworkx
7800b3bc1b exynos4210: lights: add missing brightness check
Change-Id: I7d307fbfe7581bfa76e7f4f6ce50f759683bf9dc
2013-03-02 18:23:50 +00: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
codeworkx
5b604fa3f4 exynos4x12: add nfc package
Change-Id: Ife5522ad65d68d5ed0ca3a79a50ca86fedfb88e6
2012-11-11 11:42:35 +01:00
codeworkx
f1587a360f exynos4: added secril-client and secril-client-sap sources
taken from i9100 update7 and i9300 update4

Change-Id: I1188c8c43c07ff179bc592a22345e4db9d8a56bf
2012-08-03 23:32:29 +02:00
Daniel Hillenbrand
134c1fe2e2 lights: use a hardcoded value for led brightness
Change-Id: I2badc13aeb1871898ba001940ccabbb5ddfa53cb
2012-08-02 22:49:27 +02:00
Daniel Hillenbrand
1784ceccd6 fix libcamera and fimc conflict 2012-07-22 17:32:42 +02:00
Daniel Hillenbrand
353fecb128 underp logging 2012-07-22 16:14:08 +02:00
Daniel Hillenbrand
0fdadcaf08 exynos hal: jellybean compat 2012-07-22 15:45:33 +02:00
Daniel Hillenbrand
29deaa07a9 exynos4210 lights: jellybean compat 2012-07-22 15:34:24 +02:00
Daniel Hillenbrand
75ae0a2bc5 exynos4x12 lights: jellybean compat 2012-07-22 15:32:08 +02:00
codeworkx
313840440f exynos4x12: calibrate led colors, lights cleanup, disable debugging
blue and green leds are much stronger than the red one,
dim them down to get true colors (especially yellow).

Change-Id: I61c5f39e90e6392752a0e80a96e5e317427ea4a2
2012-07-11 17:13:26 +02:00
codeworkx
cb3fc72d35 exynos4210: moved libsensors to galaxys2 device tree
Change-Id: Ie479fbbf1a4d2fd879dc4fe63d97f9efac1ebfc0
2012-07-11 16:14:28 +02:00
Andrew Dodd
cbf1cb2a7f sensors: Fix conversion values
Our kernel sets the gyro to 500 DPS and not 2000 DPS.
In addition, X and Y are swapped and Y is not inverted.

Also change the orientation sensor conversion factors to
match that found in aries-common since the orientation
sensor seemed overly sensitive.  However, the orientation
sensor might not actually do anything...  Android may
be performing sensor fusion of other data to determine
orientation.

Change-Id: I03df5d7bac9d58881e360546af4cf77878802807
2012-07-10 22:44:59 -04:00
Sam Mortimer
827f2f953c exynos4212 liblights: remove unused BUTTON_POWER define
Change-Id: I1e911e234ed45924c263d85741f395ecf54414f1
2012-07-09 14:14:51 +04:00
Daniel Hillenbrand
8ada6ea604 Merge "exynos4212 liblights: fix keypad lighting up when screen backlight auto-adjusts" into ics 2012-07-09 14:14:28 +04:00
XpLoDWilD
86d0895f82 liblights: Fix reading of previous brightness value
Change-Id: Ie175521033b3a8d96197794cff1a2dce89e516c3
2012-07-07 23:02:29 +02:00
codeworkx
23280fc439 exynos4: added missing gralloc defines for hdmi
Change-Id: Ie489452003c30e05f3fdf36a0643963ce4ae0c2e
2012-07-03 19:22:20 +02:00
Sam Mortimer
4c88bee69d exynos4212 liblights: fix keypad lighting up when screen backlight auto-adjusts
clone of http://review.cyanogenmod.com/#/c/18372/

becomes relevant when these are applied:
smdk4210 kernel: cypress touchkey led_timeout functionality (1/2)
http://review.cyanogenmod.com/#/c/18357/
galaxys2/i777: configurable touchkey backlight timeout (2/2)
http://review.cyanogenmod.com/#/c/18431/

Change-Id: I3d4df6574cdd3c6317199a884ef7ac72cb4c71a3
2012-07-02 11:06:09 -07:00
codeworkx
b20c536751 fix for fix keypad lighting up when screen backlight auto-adjusts
Change-Id: I61e987b4fcae277ab4a1ec6585b25255a445b238
2012-07-01 16:18:20 +02:00
Gary D
679d203f63 fix keypad lighting up when screen backlight auto-adjusts
If the screen backlight was already lit and is just changing brightness,
don't blindly illuminate the keypad

Change-Id: If7473eb57aa4d48bc98a4bb42b9becc80764b1f8
Signed-off-by: Gary D <garyd9@gmail.com>
2012-06-28 05:05:36 -04:00
XpLoDWilD
f2d31f2429 liblights: Store LED battery status and restore it after a notification LED blinking
Change-Id: Ifd01e3dea28ecc0dac94f2ff44b94e81493ba2a4
2012-06-26 13:23:55 +02:00
codeworkx
48421e2da2 lights: lower battery led brightness
Change-Id: I9cd680a760f81d0b131dc3e9d37e5f8f19171c00
2012-06-24 19:21:40 +02:00
codeworkx
3c04c0d0a8 exynos4x12: lower brightness on battery light
Change-Id: Ic3cd8f9bac985e09d7f7df0521cbaadfc9640f11
2012-06-22 17:13:18 +02:00
codeworkx
61bb8c4def smdk4x12: lights: battery led support
Change-Id: Ida4e7bd998251ec07a9874f695d1fef9f97a1b0c
2012-06-21 05:47:12 +02:00
XpLoDWilD
64dd846ab4 Fix blue light sticking and fixed delays
Change-Id: I1a9a92eaaf09f6a5524e0d08b4fdefa2b7ba000d
2012-06-14 19:55:39 +02:00
codeworkx
beeef87d0b exynos4x12: add lights module
Change-Id: Ib37f0b7cc94a5b9607817e3b3bee4814074517a4
2012-06-12 18:48:02 +02:00
codeworkx
952954aafa exynos4: hdmi: fix invalid conversion from void* to unsigned int
Change-Id: Ib81076f7f85719cd7bc318d45a0b176211b0ee89
2012-06-08 11:01:47 +02:00
sbrissen
5e44bae467 Add Red/Blue LED notification support
This will allow the use of the red/blue led's on the sph-d710
Uses BOARD_HAS_LED_NOTIF in boardconfig.

Change-Id: Ic217ed5b0ec673d03bb596fbde0ac725a5ca0887
2012-05-25 09:51:10 -04:00
codeworkx
9eb3416030 liblights: adjust file location for smdk4210 kernel
Change-Id: Ib66a360729d25619b4270f081659b18e18437be3
2012-05-23 20:22:25 +02:00
codeworkx
62f02ba4f4 exynos: reorganized and updated from insignal
Changes needed on exynos4210 devices:

libcsc -> libseccscapi
libswconverter -> remove

TARGET_HAL_PATH := hardware/samsung/exynos4/hal
TARGET_OMX_PATH := hardware/samsung/exynos/multimedia/openmax
$(call inherit-product, hardware/samsung/exynos4210.mk)

Change-Id: Ic59ef95b85ef37b3f38fb36cf6a364a5414685ee
2012-05-20 12:00:36 +02:00
Phil Tunstall
e54debb12e liblights: Fix touch key lights coming on when screen brightness is adjusted
Only tested on GT-I9100

Change-Id: I2be3c5ce74799bea310a65bc75dd90985b9d17d6
2012-05-19 12:48:50 +01:00
athurh
7bfa58c376 OMX: Improve H264 encode quality
Change-Id: I874d393e9f1f357b3125cad4a04526aa7336c6ca
2012-05-06 05:18:28 +02:00
Espen Fjellvær Olsen
8537e27d60 Update AkmSensor to manually set poll interval
Change-Id: I84fc5c3fc1cb552874129512ea6dfc19b1f9a60a
2012-04-19 10:05:35 +02:00
R. Andrew Ohana
ec03b1b0c8 added tablet support to liblights
Change-Id: I778167e6fc10a8162a20771b9b4953af28fc1a97
2012-04-01 00:30:55 -07:00
Espen Fjellvær Olsen
9a5f75abbf Remove in_output_mode missing from the kernel part. Thanks to Zlodo from XDA
Change-Id: I07106e2af67a1565827bd71954868b7132473a5d
2012-03-29 22:02:35 +02:00
codeworkx
47c6ea9905 libump: include fixes
Change-Id: Ib1a815d443c9efa9ef25579a470b6df1fdf023b2
2012-03-24 19:21:30 +01:00
codeworkx
bb7076f6ea removed unneeded filters on makefiles 2012-03-24 17:55:51 +01:00
codeworkx
f1be2fe3cd initial commit, taken and modified from linaro/insignal 2012-03-24 17:38:29 +01:00