INSUN PYO [Mon, 30 Dec 2019 07:21:12 +0000 (16:21 +0900)]
Add USB_FUNCTION_GROUP_WITH_POST_SERVICE for cfs post service.
To support CFS acm and rndis mode, add new USB_FUNCTION_GROUP_WITH_POST_SERVICE mode.
Legacy mode : usb prepare --> usb enable --> start sdb, mtp, rndis, and data-router service
CFS sdb, mtp mode : usb prepare -> start sdb and mtp service -> usb enable
CFS acm, rndis mode : usb prepare -> usb enable -> start acm and rndis service
Change-Id: I7199636d0b2bcfeac068e1c1575e89926c8f7134
(cherry picked from commit
6312d5a191ccc31b8c20ec109d4e2e3ba8406899)
Hyotaek Shim [Fri, 27 Dec 2019 04:34:30 +0000 (13:34 +0900)]
Add data-router.service for USB_FUNCTION_ACM
Change-Id: Ia11f7f904dbb47f5827756578a6dbc69e8214db6
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Hyotaek Shim [Fri, 27 Dec 2019 04:32:50 +0000 (13:32 +0900)]
Do not stop services while enabling usb gadget
Change-Id: I86557c424d400c27260bb427a409940c022a8f91
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
INSUN PYO [Mon, 30 Sep 2019 06:33:23 +0000 (15:33 +0900)]
Support USB tethering
To enable USB tethering, you must run the following two commands after configuring the USB endpoint.
1. /sbin/ifconfig usb0 192.168.129.3 up
2. /Sbin/route add -net 192.168.129.0 netmask 255.255.255.0 dev usb0
These commands are not directly executed by deviced, but are delegated to rndis.service.
The reason is to use the already implemented structure (sdbd.service and mtp-response.service).
The patch has been split into deviced and libdeivce-node.
The rndis.service is in deviced, and the code to run rndis.service is in libdevice-node.
Connected patch: "Support USB tethering" commit on deviced.
Change-Id: If4f64310c28cd91f4d2864365127a088e977e26a
INSUN PYO [Wed, 11 Sep 2019 07:49:44 +0000 (16:49 +0900)]
usb_cfs_client: Enable gadget at reconfiguration #2
Because it is a workround code for Artik, restrict this patch to artik.
(This workaround will be removed in tizen 6.0)
Change-Id: Ice81dd8c37359bdc4a37099ecff27d696f7f9ec0
Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Youngjae Cho [Wed, 31 Jul 2019 02:29:23 +0000 (11:29 +0900)]
Add new member for hw_board
Change-Id: Ia61fa711c1a98aeaf8d8c1f30a5262820eb4317b
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
lokilee73 [Mon, 22 Apr 2019 05:55:00 +0000 (14:55 +0900)]
Add new members for battery_info and display_device
- freq_strength for wireless battery charging
- set_multi_brightness for brightness change
ex) set_multi_brightess(80, 5, 10ms)
brightness is changed to 80 through 5 steps
and 10ms delay is applied on each step
- enum for display_aod_mode
ex) It is to get infomation about always on mode
Change-Id: I4d04d7e0c4bffa660845b924888e8fe8fd4b97e3
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
Yunmi Ha [Wed, 10 Apr 2019 08:22:21 +0000 (17:22 +0900)]
Change libgdbus library name to libsyscommon.
Change-Id: I3611395b38a3858d0838ddf94dc12e958fd91856
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
lokilee73 [Fri, 5 Apr 2019 07:10:11 +0000 (16:10 +0900)]
Apply the latest type for image effect
Change-Id: I849387a3a55104270207d1d70fac9c45490652a5
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
Hyotaek Shim [Mon, 25 Mar 2019 10:15:19 +0000 (19:15 +0900)]
Rename systemd_stop_unit_sync() to systemd_stop_unit_wait_stopped()
Change-Id: I94d972c7dc68d9e6b246702b9217d0b92c908d0c
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
lokilee73 [Thu, 28 Feb 2019 11:09:09 +0000 (20:09 +0900)]
Add hal test for touch sensitivity
Change-Id: I3a689c679e08401c6d9f5bd5dc2ff66f516671e2
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
lokilee73 [Wed, 27 Feb 2019 07:11:37 +0000 (16:11 +0900)]
Add HAL test for bezel
Change-Id: I7117b333ae3c17d71d2c0f8197a68ebee0025426
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
lokilee73 [Tue, 26 Feb 2019 08:54:25 +0000 (17:54 +0900)]
Add bezel for wearable target
Change-Id: I1ba5453324fcf50f62dbf439ba303c87275580e1
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
lokilee73 [Fri, 22 Feb 2019 04:11:50 +0000 (13:11 +0900)]
Add thermistor feature for hal test
Change-Id: I0247d1c74ae8f4eb0ab5e7df34f06b6f6a837b69
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
lokilee73 [Fri, 28 Dec 2018 08:50:35 +0000 (17:50 +0900)]
Add device_thermal_e
Change-Id: I29a0c82d3973e9a6a01d16cba2def98362c30bc5
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
sanghyeok.oh [Fri, 8 Feb 2019 06:38:37 +0000 (15:38 +0900)]
dbus: delete systemd related files
Change-Id: I172e43fddb0782253de6f1f07bd2631623f01d83
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
sanghyeok.oh [Tue, 29 Jan 2019 07:53:20 +0000 (16:53 +0900)]
dbus: remove systemd start/stop unit api
Change-Id: Ic498a2c56ffaccdcacf2c01d5d20a169fc5324cf
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
lokilee73 [Mon, 28 Jan 2019 11:01:38 +0000 (20:01 +0900)]
Remove unused plugin about cpu, process, memory and vibrator
OAL(OEM Adaptation Layer) still exists in libdevice-node,
even though HAL was implemented.
Change-Id: I675272ff3543d0a213e002d00726104b2bccd1fe
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
lokilee73 [Wed, 16 Jan 2019 11:33:15 +0000 (20:33 +0900)]
Fix memory leak in usb gadget
Change-Id: I437409ae6c162ecd7dd4a7abf70a5290f12cda98
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
sanghyeok.oh [Thu, 3 Jan 2019 10:26:54 +0000 (19:26 +0900)]
sensitivity: merge sensitivity
Change-Id: Idaf3029807a13bebe764a0a8c99a8ee5de12cb9a
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
Paweł Szewczyk [Thu, 20 Dec 2018 16:17:07 +0000 (17:17 +0100)]
Remove the execution flag from non-executables
Change-Id: I8dac91e163b1676aeeaf30e640fcf6a52bcf17a4
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
lokilee73 [Tue, 11 Dec 2018 06:21:34 +0000 (15:21 +0900)]
Change thermal information structure to get temp and adc
Thermal state should be decided on deviced side.
So, device HAL has only to supply temp and adc.
Change-Id: I199a3a5b475cbba5eb8cfa672eba5f29f46725e3
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
Michal Bloch [Mon, 19 Nov 2018 14:04:05 +0000 (15:04 +0100)]
Fix some static analysis warnings.
Change-Id: I632bd9813094ade3b03dadd7d21bc62dc2152710
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
Paweł Szewczyk [Mon, 15 Oct 2018 11:35:21 +0000 (13:35 +0200)]
usb: Move ffs services cleanup to hw_cfs_gadget_close
Change-Id: I1fc61542b8228ff038b64ee1df3cd5b6c3947a1c
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
Paweł Szewczyk [Fri, 12 Oct 2018 11:47:05 +0000 (13:47 +0200)]
usb_client: Cleanup ffs services at gadget disable
Each functionfs daemon spawned at gadget initialization should be closed
before functionfs can be succesfully cleaned up.
Change-Id: I97654fa882f5b7346e5aee3aedd3ea00e50fcb47
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
lokilee73 [Tue, 18 Sep 2018 05:54:21 +0000 (14:54 +0900)]
Add get_number for multi led
Change-Id: If2096cbf5860b783a9a9add98ca8f3a2fa1783a2
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
Hyotaek Shim [Tue, 11 Sep 2018 07:21:08 +0000 (16:21 +0900)]
Add .gitignore
Change-Id: Idcf456b1628d0f65df5b5176298f12e993bc4323
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Hyotaek Shim [Tue, 11 Sep 2018 07:19:37 +0000 (16:19 +0900)]
Minor fix on license
Change-Id: Iedd043c66897eb8a4cca0e636dc98eba75a33ab5
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
pr.jung [Tue, 11 Sep 2018 05:58:17 +0000 (14:58 +0900)]
Add license file on all rpm packages
Change-Id: Idad73eb748eb8fccf07095ab30d8fe13ccbeafb7
Signed-off-by: pr.jung <pr.jung@samsung.com>
lokilee73 [Tue, 28 Aug 2018 07:34:35 +0000 (16:34 +0900)]
Add exception handle for HAL test
Change-Id: Ifbfa3fd48e57debb70a4f9f6e3954f46c29ecdd7
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
lokilee73 [Wed, 22 Aug 2018 02:01:42 +0000 (11:01 +0900)]
To fix gtest errors
There were errors by unsupported devices.
ex) thermal and cpu in wearable target
Old value of h/w info remained and it caused errors.
So, initialize h/w info at the beggining of gtest.
Change-Id: I95edc88ff7020346f0a9d1bf5c0edff6dea28bc0
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
lokilee73 [Tue, 21 Aug 2018 05:30:04 +0000 (14:30 +0900)]
Rename deprecated function, updated_cb for battery, thermal and extcon
Change-Id: I92d16c3233894a5e662126eee32bdc5fdce5a890
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
Paweł Szewczyk [Thu, 16 Aug 2018 12:45:09 +0000 (14:45 +0200)]
Make simple helper functions static inline
To prevent dynamic linking to these functions by modules that use them
we make them static inline.
Change-Id: Ifc753b5eff9bcde3f54c3f98e2494f7a331dc73e
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
lokilee73 [Fri, 17 Aug 2018 11:35:40 +0000 (20:35 +0900)]
Unify cpp files to one
Merge below cpp files to device_haltests.cpp
gtest_hal_battery.cpp
gtest_hal_cpu.cpp
gtest_hal_display.cpp
gtest_hal_extcon.cpp
gtest_hal_ir.cpp
gtest_hal_rgb.cpp
gtest_hal_thermal.cpp
gtest_hal_touchscreen.cpp
gtest_hal_usb_client.cpp
gtest_hal_gadget.cpp
Change-Id: I20a155136b21e6b2a4a86daeb24f2592dc281b22
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
sanghyeok.oh [Fri, 27 Jul 2018 08:13:07 +0000 (17:13 +0900)]
unittest: coverity fix
Change-Id: I71ea9b6eddd1d39c72e5e3fbd9e391196607c2ff
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
lokilee73 [Tue, 15 May 2018 02:32:08 +0000 (11:32 +0900)]
Add voltage and temperature in battery_info
Change-Id: Ia93aecb173b11db66d9c397bf53e048751ccd080
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
lokilee73 [Thu, 5 Jul 2018 08:46:20 +0000 (17:46 +0900)]
Add omitted gtest cases
get_frame_rate for LCD and free_gadget for USB Client
Change-Id: Ia898bbb31255b015bf8076dcd445c8cc4dcbda02
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
Paweł Szewczyk [Fri, 29 Jun 2018 13:37:59 +0000 (15:37 +0200)]
usb_cfs_client: Enable gadget at reconfiguration
This workaround was introduced on artik, where gadget need to be enabled
before usb connection can be properly monitored. As this does little
harm, it's moved here to prevent regression on artik.
The side effect of this is starting some functionfs daemons long before
they are actually needed, so this should be removed when exton issue is
fixed.
Change-Id: Ia41c21e3c44d7d3a00d557f181e8c22766c6f31b
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
Paweł Szewczyk [Mon, 25 Jun 2018 12:43:03 +0000 (14:43 +0200)]
Move usb_gadget common code from device-manager-plugins
Change-Id: I19f45a7f858bd09f4e2403e4227a7c2a71aab05a
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
Paweł Szewczyk [Mon, 25 Jun 2018 10:57:23 +0000 (12:57 +0200)]
Move container_of macro to common.h
The container_of macro can be used by many modules. This commit moves it
to common header to prevent duplication.
Change-Id: I3d87766b561db8f67354d0abe8784ea62d05016d
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
Paweł Szewczyk [Mon, 25 Jun 2018 10:32:22 +0000 (12:32 +0200)]
Add HAL for board
For now includes only getting serial number of the device
Change-Id: I2541fccdb6a3a083b89ce5cf277f482d12b44dfc
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
Paweł Szewczyk [Fri, 22 Jun 2018 13:47:47 +0000 (15:47 +0200)]
Add common code from usb_client HAL
Change-Id: I863b5e9757f943eb6659e939118b9c03e22c8229
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
Paweł Szewczyk [Wed, 13 Jun 2018 12:33:53 +0000 (14:33 +0200)]
Move code from 'shared' files to common package
Change-Id: Idd38578a32f5b415d7c2f9f0bcf37e7a71bcf770
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
Paweł Szewczyk [Wed, 30 May 2018 12:31:47 +0000 (14:31 +0200)]
Add API for controling systemd units
Change-Id: Ic13a69fbf0008ce37c0774b857e718335c0cf921
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
lokilee73 [Mon, 4 Jun 2018 11:21:27 +0000 (20:21 +0900)]
Add cpp files for HAL test
Change-Id: I374e127cdccecd9d8642c31460cc57cd83eed260
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
lokilee73 [Mon, 4 Jun 2018 14:00:15 +0000 (23:00 +0900)]
Change rpm name from device-hal-tc to device-haltests
Change-Id: If8ef874a6f181bbf36504b3ef9511af4f0792477
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
pr.jung [Wed, 4 Apr 2018 05:00:59 +0000 (14:00 +0900)]
gtest: Add gtest for led
Change-Id: I0d3c88dd1131fb4262d54b766002043c4a1ee333
Signed-off-by: pr.jung <pr.jung@samsung.com>
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
pr.jung [Wed, 4 Apr 2018 04:58:44 +0000 (13:58 +0900)]
gtest: Add gtest for battery, cpu, display, extcon, and touchscreen
Change-Id: I733890ff1261e3e45e11129ea82f6e7e12a65a9e
Signed-off-by: pr.jung <pr.jung@samsung.com>
pr.jung [Wed, 28 Mar 2018 11:02:58 +0000 (20:02 +0900)]
gtest: Add gtest for ir
Change-Id: I26ae1223e63c650c354a3f152fe6669023ac348a
Signed-off-by: pr.jung <pr.jung@samsung.com>
INSUN PYO [Wed, 14 Mar 2018 00:22:00 +0000 (09:22 +0900)]
remove unused usb_client item
Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Change-Id: I500619bd569067dbe7d0c9c33613a141aa756066
INSUN PYO [Thu, 8 Mar 2018 05:50:34 +0000 (14:50 +0900)]
usb_device: add usb configfs HAL
Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Change-Id: I532fbf31d95567efb1550293632f97480dc11811
Krzysztof Opasiak [Fri, 2 Mar 2018 20:44:11 +0000 (21:44 +0100)]
usb: Add service names to suitable USB functions
Both MTP and SDB functions requires userspace service to work.
So let's add names of those services to function structure.
Change-Id: I544fb4251751c8c98f11197af2898cf5c1a53d33
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
taeyoung [Thu, 29 Dec 2016 01:21:35 +0000 (10:21 +0900)]
Merge branch 'tizen_3.0' into tizen
Signed-off-by: taeyoung <ty317.kim@samsung.com>
Change-Id: I4af8a6b19362cb83a5289815977fa87c3127c305
taeyoung [Fri, 16 Dec 2016 06:51:13 +0000 (15:51 +0900)]
cpu: add cpu HAL interfaces
Currently cpu boosting related functions are added.
Change-Id: I4f73ea6433711aff6c9b6d95d04ac3af07378b29
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Tue, 6 Dec 2016 09:36:50 +0000 (18:36 +0900)]
display: add display enhance function for both mode and scenario
Change-Id: I8bd596f6ec62dc2239a510151ee091a5023d4090
Signed-off-by: taeyoung <ty317.kim@samsung.com>
Kichan Kwon [Tue, 6 Dec 2016 10:12:11 +0000 (19:12 +0900)]
device-node : remove unreachable code
Change-Id: I590c995f69ab84e54fb7124a9e577673a97c2693
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
taeyoung [Wed, 30 Nov 2016 08:02:08 +0000 (17:02 +0900)]
display: add internal interface for display enhancement
Change-Id: Ia6e66afdd517f9678c5dd2923c19cf5a7f7e54ee
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Mon, 21 Nov 2016 10:26:27 +0000 (19:26 +0900)]
thermal: add thermal HAL interface
Change-Id: Ic614ce4ec06f710de2d96019360b7ec0b62ece9f
Signed-off-by: taeyoung <ty317.kim@samsung.com>
pr.jung [Wed, 2 Nov 2016 04:40:24 +0000 (13:40 +0900)]
Merge branch 'tizen' into tizen_3.0
Change-Id: Id510e5e68c6a8fa930948a0abf3be77be86c3e47
Signed-off-by: pr.jung <pr.jung@samsung.com>
taeyoung [Wed, 26 Oct 2016 04:13:19 +0000 (13:13 +0900)]
display: add display frame rate interfaces
Display frame rate can be adjusted by the interfaces.
Change-Id: I41d0cabb993d72c62a72229418c1e9a891099161
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Fri, 21 Oct 2016 10:24:45 +0000 (19:24 +0900)]
display: add interface to convert light sensing value to brightness
deviced will use the interface to convert the light sensing value
to the brightness value to change.
Change-Id: I89d0306d654273850067ee56216dae3ae84c65ef
Signed-off-by: taeyoung <ty317.kim@samsung.com>
Kunhoon Baik [Thu, 20 Oct 2016 01:41:56 +0000 (10:41 +0900)]
Clean up library dependencies for hwcommon and device-node
Change-Id: I5cee751663dbe0c20909d71586261f9446d88243
Krzysztof Opasiak [Thu, 11 Aug 2016 17:39:10 +0000 (19:39 +0200)]
Add usb_client HAL API
This API allows to apply abstract gadget description
received from USB gadget HAL to usb gadget subsystem in Kernel
via system infrastructure available on this particular device.
Change-Id: Ibf05b3ec7c8abfed357f886eada5864dca514051
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Krzysztof Opasiak [Wed, 10 Aug 2016 20:45:34 +0000 (22:45 +0200)]
USB gadget HAL API
This API provides translation between set of functions
which should be available and abstract USB gadget description
(reprezented by struct usb_gadget).
This HAL can be used bo both define new values for VendorID,
ProductID and other stuff, and alse to add some new function
available only on this particular device (vendor specific).
Change-Id: I63464d9828bfc3fbf06a77d5d9fea82341bddf45
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
taeyoung [Thu, 7 Jul 2016 00:45:40 +0000 (09:45 +0900)]
display: add getter for the maximum brightness of display
- The maximum brightness of display varies
according to the driver. Thus maximum brightness
function is added for platform to adjust all cases.
Change-Id: Iab3c2b82372b174d569487b7c85f2024185a89b5
Signed-off-by: taeyoung <ty317.kim@samsung.com>
Taeyoung Kim [Wed, 4 May 2016 07:54:44 +0000 (16:54 +0900)]
battery: add battery HAL interface
- If standard battery interfaces of Mainline kernel is always used,
this HAL is no use. But Tizen need to work on other kernel version
and thus the battery HAL interfaces are added.
Change-Id: I25b0b46f6d3dc1ee640c130b4c0f6ed2b588e606
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
pr.jung [Wed, 16 Mar 2016 09:14:06 +0000 (18:14 +0900)]
Remove thread unsafety function usage.
Change-Id: I8d086de719e6942737864eb56e9a054da4a2457d
Signed-off-by: pr.jung <pr.jung@samsung.com>
pr.jung [Thu, 11 Feb 2016 07:46:28 +0000 (16:46 +0900)]
ir: Add HAL interface
- Get information whether ir is available.
- Transmit ir pattern.
Change-Id: If3196bbbe39452917c76b8f3a74e81d94dec94c7
Signed-off-by: pr.jung <pr.jung@samsung.com>
Taeyoung Kim [Thu, 17 Dec 2015 11:35:46 +0000 (20:35 +0900)]
external connection: add HAL interface for external connections
- The hal will exchange extcon interface of kernel
Change-Id: I9ef2f9392a676b65140b3ef61d81f502c5e669be
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Taeyoung Kim [Fri, 4 Dec 2015 12:15:50 +0000 (21:15 +0900)]
touchscreen: add touchscreen hal interface
- If a target has touchscreen, the touchscreen
can be enabled or disable by some scenarios.
Thus the hal interface for touchscreen is
added.
Change-Id: I037af46a8dbeff606655e4714fc37bd20a9e3f99
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Taeyoung Kim [Wed, 1 Jul 2015 11:06:53 +0000 (20:06 +0900)]
display: remove codes related with vconf keys which are not used
- The keys are related with display brightness according to the power.
But the keys are removed from the vconf list. Thus the codes
related with the vconf keys are also removed
Change-Id: I8d53a38e7e9eddec3328c75d65f5696989749a2e
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Kibak Yoon [Fri, 20 Mar 2015 09:17:16 +0000 (18:17 +0900)]
device-node: add sensors hal interface
this interface is for sensors HAL.
Signed-off-by: Kibak Yoon <kibak.yoon@samsung.com>
Change-Id: If7ab8f5878228604676f13dd0809c1afce60f70e
Signed-off-by: Kibak Yoon <kibak.yoon@samsung.com>
Jiyoung Yun [Fri, 13 Mar 2015 10:46:09 +0000 (19:46 +0900)]
display: Add image effect and panel mode functions
Image effect and panel mode can be mixed.
So I provides each api and enums.
It depends on the display hardware,
if some mode can't support in your hardware,
you can return -ENOTSUP error.
Change-Id: Ib59c5f6c79ff1edd05fc09261c303555043d862c
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Fri, 13 Mar 2015 09:59:29 +0000 (18:59 +0900)]
display: Change the display hal version
Now it's a draft version,
so I modified the version to 0.1.
The final version will be v1.0 when Tizen 3.0 is released.
Change-Id: Ic7590c763f123ce9d80e6d1b8436a9e957ab79bb
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Fri, 27 Feb 2015 10:51:46 +0000 (19:51 +0900)]
device-node: Add display device structure
Backlight structure will replace with display structure.
The role and mean of backlight is too restrictive.
Display will cover all function of drm, backlight and so on.
Change-Id: Icf0a45d2fb522f0f55b7210fabf4a8b5bd77ef3b
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Fri, 30 Jan 2015 10:19:33 +0000 (19:19 +0900)]
device-node: Add led structures
Led device support to control the brightness level, color and duty.
There is an detail information in Tizen Wiki:
https://wiki.tizen.org/wiki/HAL_upgrade_for_Tizen_3.0#Device
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Change-Id: I70b0402fb528ba057ec782c4ba1718eb3dbd4225
Jiyoung Yun [Thu, 5 Feb 2015 12:00:39 +0000 (21:00 +0900)]
libdevice-node: Add HARDWARE_MODULE_STRUCTURE define
Change-Id: I3ab9e9455eeba8a6d2cd5ca3a65b2cc069d7b894
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Mon, 2 Feb 2015 05:56:57 +0000 (14:56 +0900)]
libdevice-node: Remove unnecessary cflag options
Change-Id: Ib7f12d92093b46e05843ef49a820824f67824387
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Fri, 16 Jan 2015 09:59:38 +0000 (18:59 +0900)]
device-node: Add HAL common and backlight structures
Each device shuld be contained struct hw_info_t module as a first variable.
It is a common interface among multiple device HAL structures.
Backlight HAL structure is for controlling the brightness of backlight.
You can set the birhgntess value using it and it also support to sensor mode.
It makes backlight display to be changed by light sensor value.
Developers can make their own HAL structure.
The HAL library should be located in $LIB_INSTALL_DIR/hw/.
There is an detail information in Tizen Wiki:
https://wiki.tizen.org/wiki/HAL_upgrade_for_Tizen_3.0#Device
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Change-Id: Id73f5517e659a652a634cfa86c3137f5aca859c7
Jiyoung Yun [Thu, 15 Jan 2015 05:21:07 +0000 (14:21 +0900)]
device-node: Fix build under 64-bit architecture
A problem of int to pointer cast was raising
an error when building for 64 bits archs.
Change-Id: I5e9aa7b850370440c11e1c5ee3e58c381a1d71fc
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Fri, 2 Jan 2015 02:10:39 +0000 (11:10 +0900)]
device-node: Add null check operation of interface function
If there is no interface for something to do,
it will return -ENOTSUP error instead of segfault.
Bug-Tizen: TC-1932
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Change-Id: If9dfdaecf53c88e14879dc66986e12cdcd1c2355
jy910.yun [Fri, 7 Nov 2014 12:40:20 +0000 (21:40 +0900)]
device-node: Add get_max_brightness and set_irled functions
Support to get the max brightness value of display
Support to set command to irled
Change-Id: I789e608a56371acc973fff2038eb4efa8ff5cbd1
Signed-off-by: jy910.yun <jy910.yun@samsung.com>
jy910.yun [Fri, 7 Nov 2014 11:34:13 +0000 (20:34 +0900)]
device-node: Enable Werror compiler flag
To remove the warnning messages and latent bugs
Signed-off-by: jy910.yun <jy910.yun@samsung.com>
Change-Id: I48ef0ea78dbd93bef5ebf44ac9d519822e955681
jy910.yun [Fri, 7 Nov 2014 09:11:10 +0000 (18:11 +0900)]
device-node: Replace system() with the combination of fork/exec
As per man page, it cautions against using system() in a program.
It can make a problem like a ruin of system intergrity
by strange values for some environment variables.
Change-Id: I5d77931c3fbb5fd1851219aaf8e8578d8ed9d255
Signed-off-by: jy910.yun <jy910.yun@samsung.com>
jy910.yun [Wed, 5 Nov 2014 12:42:00 +0000 (21:42 +0900)]
device-node: Rename the logging macros
Change DEVERR/DEVLOG macros to _E/_D macros
Signed-off-by: jy910.yun <jy910.yun@samsung.com>
Change-Id: Idd4593e6b271addfb2f0ee8a091223b0267161cf
Romuald Texier-Marcadé [Mon, 2 Jun 2014 09:42:54 +0000 (11:42 +0200)]
Added missing APIs from devman_plugin_intf to default plugin :
- OEM_sys_get_hardkey_backlight
- OEM_sys_set_hardkey_backlight
Change-Id: I2ae36fc149504cf6ea35c3b8f6d614fa1d2657ed
Signed-off-by: Romuald Texier-Marcadé <romuald.texier-marcade@open.eurogiciel.org>
jy910.yun [Mon, 24 Jun 2013 01:48:49 +0000 (10:48 +0900)]
add hardkey backlight OAL functions
- 'OEM_sys_get/set_hardkey_backlight'
Change-Id: I153ddfe42132c5e3e3baf45fb44bcaa61fbc49cf
Signed-off-by: jy910.yun <jy910.yun@samsung.com>
jy910.yun [Fri, 13 Sep 2013 12:10:40 +0000 (21:10 +0900)]
copy license file to /usr/share/license/
Signed-off-by: jy910.yun <jy910.yun@samsung.com>
Change-Id: Ia477c4b0f52247cb55d5e33e01147b9f1459d493
William Douglas [Wed, 10 Jul 2013 22:11:49 +0000 (15:11 -0700)]
changelog
Signed-off-by: William Douglas <william.douglas@intel.com>
William Douglas [Fri, 28 Jun 2013 00:30:50 +0000 (17:30 -0700)]
Clean up udev and Smack rules
Smack rules for device nodes should be applied in the udev package.
Security team should audit permissions for device nodes that are
needed to be changed that were being kept in this package (but again
should be done in the udev package as there were a broad grouping of
devices that may even conflict with default udev rules).
This change is likely a breaking change and will need corresponding
changes to other packages (including udev rules and manifest).
Change-Id: I509035ace21163e24231e825f44a9f96a988c47e
Signed-off-by: William Douglas <william.douglas@intel.com>
Patrick McCarty [Mon, 24 Jun 2013 22:54:25 +0000 (15:54 -0700)]
TIVI-1050: set several Smack rules to floor in 95-devices.rules
Now that the systemd patch is integrated that supports setting Smack
labels for device nodes (via udev), several device nodes have rules set
that are breaking sound applications (e.g. Pulseaudio).
For the moment, we will set the default labels to "_" (floor), and we
will adjust them when the domain architecture has been settled.
Change-Id: Ie0098026ff8d0917d54ee1f367c20feda8d3b4e7
Baptiste DURAND [Wed, 19 Jun 2013 15:36:43 +0000 (17:36 +0200)]
Update Changelog
Change-Id: I4004564bb423271a4011f1b351c48d0437128665
Signed-off-by: Baptiste DURAND <baptiste.durand@eurogiciel.fr>
Baptiste DURAND [Wed, 19 Jun 2013 15:36:24 +0000 (17:36 +0200)]
Fix installation of systemd service
Use %{_unitdir} macro
Change-Id: I01cfb2449dc38aac79d5b7567d7640c97f84253e
Signed-off-by: Baptiste DURAND <baptiste.durand@eurogiciel.fr>
Anas Nashif [Sat, 18 May 2013 19:25:38 +0000 (15:25 -0400)]
Make it build on 64bit and general cleanup for 3.0
jy910.yun [Fri, 10 May 2013 09:05:24 +0000 (18:05 +0900)]
add smack labels regarding dialout, printer, nfc and hall
Signed-off-by: jy910.yun <jy910.yun@samsung.com>
Change-Id: Ib09734774327effb7bab5b0c98352043aca5e2f4
jy910.yun [Fri, 5 Apr 2013 06:06:37 +0000 (15:06 +0900)]
resolve prevent issue about not initializing value on power saving func.
Change-Id: Ib0abb8986504f2a7e5900046f2cf5109fe011182
jy910.yun [Mon, 25 Mar 2013 13:35:25 +0000 (22:35 +0900)]
set smack label of device node when booted with systemd.
Change-Id: I34ae8bf7d987e5a90f52ed4de5341c681cc606f7
jy910.yun [Wed, 20 Mar 2013 09:02:06 +0000 (18:02 +0900)]
Merge branch 'master' into tizen_2.1
Change-Id: I100e99ee29bd04a90d0e417ff7cda55d7b645a99
jy910.yun [Wed, 20 Mar 2013 08:47:31 +0000 (17:47 +0900)]
add default smack label using udev rule and revise brightness_by_lux's param.
add 51-devices-priv.rules for controling default device node
change the position to add smack label to udev rules file
Change-Id: I4285b5897cb80d1bd5ca4d3bf7edf75f9cdda2fb
jy910.yun [Mon, 4 Mar 2013 11:17:01 +0000 (20:17 +0900)]
add smack label for haptic driver (device::haptic)
Change-Id: If40eef0ca802ceebb068025800eaf045e430917b