gts3l-common: livedisplay: Edit for the gts3l family
Signed-off-by: Deokgyu Yang <secugyu@gmail.com> Change-Id: Idd6c5bfa511e3826c95433e4537a39d33b8c4b28
This commit is contained in:
parent
ee917d5385
commit
560e44c027
5 changed files with 8 additions and 41 deletions
|
@ -13,7 +13,7 @@
|
|||
// limitations under the License.
|
||||
|
||||
cc_defaults {
|
||||
name: "livedisplay_samsung_qcom_defaults",
|
||||
name: "livedisplay_samsung_gts3l_defaults",
|
||||
defaults: ["hidl_defaults"],
|
||||
relative_install_path: "hw",
|
||||
srcs: [
|
||||
|
@ -34,15 +34,8 @@ cc_defaults {
|
|||
}
|
||||
|
||||
cc_binary {
|
||||
name: "lineage.livedisplay@2.0-service.samsung-qcom",
|
||||
init_rc: ["lineage.livedisplay@2.0-service.samsung-qcom.rc"],
|
||||
defaults: ["livedisplay_samsung_qcom_defaults"],
|
||||
cflags: ["-DLIVES_IN_SYSTEM"],
|
||||
}
|
||||
|
||||
cc_binary {
|
||||
name: "vendor.lineage.livedisplay@2.0-service.samsung-qcom",
|
||||
init_rc: ["vendor.lineage.livedisplay@2.0-service.samsung-qcom.rc"],
|
||||
defaults: ["livedisplay_samsung_qcom_defaults"],
|
||||
name: "vendor.lineage.livedisplay@2.0-service.gts3l",
|
||||
init_rc: ["vendor.lineage.livedisplay@2.0-service.gts3l.rc"],
|
||||
defaults: ["livedisplay_samsung_gts3l_defaults"],
|
||||
vendor: true,
|
||||
}
|
||||
|
|
|
@ -40,11 +40,11 @@ bool DisplayColorCalibration::isSupported() {
|
|||
|
||||
// Methods from ::vendor::lineage::livedisplay::V2_0::IDisplayColorCalibration follow.
|
||||
Return<int32_t> DisplayColorCalibration::getMaxValue() {
|
||||
return 32768;
|
||||
return 255;
|
||||
}
|
||||
|
||||
Return<int32_t> DisplayColorCalibration::getMinValue() {
|
||||
return 255;
|
||||
return 1;
|
||||
}
|
||||
|
||||
Return<void> DisplayColorCalibration::getCalibration(getCalibration_cb _hidl_cb) {
|
||||
|
|
|
@ -29,7 +29,7 @@ using ::android::hardware::hidl_vec;
|
|||
using ::android::hardware::Return;
|
||||
using ::android::hardware::Void;
|
||||
|
||||
#define FILE_RGB "/sys/class/graphics/fb0/rgb"
|
||||
#define FILE_RGB "/sys/class/mdnie/mdnie/sensorRGB"
|
||||
|
||||
class DisplayColorCalibration : public IDisplayColorCalibration {
|
||||
public:
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
on post-fs-data
|
||||
mkdir /data/vendor/display 0770 system system
|
||||
|
||||
service livedisplay-hal-2-0-samsung-qcom /system/bin/hw/lineage.livedisplay@2.0-service.samsung-qcom
|
||||
service livedisplay-hal-2-0-gts3l /vendor/bin/hw/vendor.lineage.livedisplay@2.0-service.gts3l
|
||||
class late_start
|
||||
user system
|
||||
group system
|
|
@ -1,26 +0,0 @@
|
|||
on init
|
||||
# LiveDisplay sysfs
|
||||
chown system system /sys/devices/virtual/graphics/fb0/acl
|
||||
chmod 0660 /sys/devices/virtual/graphics/fb0/acl
|
||||
chown system system /sys/devices/virtual/graphics/fb0/aco
|
||||
chmod 0660 /sys/devices/virtual/graphics/fb0/aco
|
||||
chown system system /sys/devices/virtual/graphics/fb0/cabc
|
||||
chmod 0660 /sys/devices/virtual/graphics/fb0/cabc
|
||||
chown system system /sys/devices/virtual/graphics/fb0/hbm
|
||||
chmod 0660 /sys/devices/virtual/graphics/fb0/hbm
|
||||
chown system system /sys/devices/virtual/graphics/fb0/rgb
|
||||
chmod 0660 /sys/devices/virtual/graphics/fb0/rgb
|
||||
chown system system /sys/devices/virtual/graphics/fb0/sre
|
||||
chmod 0660 /sys/devices/virtual/graphics/fb0/sre
|
||||
chown system system /sys/devices/virtual/graphics/fb0/color_enhance
|
||||
chmod 0660 /sys/devices/virtual/graphics/fb0/color_enhance
|
||||
chown system system /sys/devices/virtual/graphics/fb0/reading_mode
|
||||
chmod 0660 /sys/devices/virtual/graphics/fb0/reading_mode
|
||||
|
||||
on post-fs-data
|
||||
mkdir /data/vendor/display 0770 system system
|
||||
|
||||
service vendor.livedisplay-hal-2-0-samsung-qcom /vendor/bin/hw/vendor.lineage.livedisplay@2.0-service.samsung-qcom
|
||||
class late_start
|
||||
user system
|
||||
group system
|
Loading…
Reference in a new issue