mirror of
https://github.com/AsahiLinux/m1n1
synced 2025-02-16 21:58:27 +00:00
m1n1.fw.dcp.manager: Add backlight callbacks
DCP reports the display brightness with PropRelay::pr_publish(prop_id=15, value=...). The value divided by "Brightness_scale" appears to be the display brightness in nits. Add other callbacks encountered on j314c. Signed-off-by: Janne Grunau <j@jannau.net>
This commit is contained in:
parent
6aa1da3c31
commit
7d9608adc4
1 changed files with 12 additions and 0 deletions
|
@ -119,6 +119,9 @@ class DCPManager(DCPBaseManager):
|
|||
self.swaps += 1
|
||||
self.frame = swap_id
|
||||
|
||||
def enable_backlight_message_ap_gated(self, unkB):
|
||||
print(f"enable_backlight_message_ap_gated({unkB})")
|
||||
|
||||
# wrapper for set_digital_out_mode to print information on the setted modes
|
||||
def SetDigitalOutMode(self, color_id, timing_id):
|
||||
color_mode = [x for x in self.dcpav_prop['ColorElements'] if x['ID'] == color_id][0]
|
||||
|
@ -160,9 +163,15 @@ class DCPManager(DCPBaseManager):
|
|||
def match_pmu_service(self):
|
||||
pass
|
||||
|
||||
def set_number_property(self, key, value):
|
||||
pass
|
||||
|
||||
def create_provider_service(self):
|
||||
return True
|
||||
|
||||
def is_dark_boot(self):
|
||||
return False
|
||||
|
||||
def read_edt_data(self, key, count, value):
|
||||
return False
|
||||
|
||||
|
@ -235,6 +244,9 @@ class DCPManager(DCPBaseManager):
|
|||
def get_calendar_time_ms(self):
|
||||
return time.time_ns() // 1000_000
|
||||
|
||||
def update_backlight_factor_prop(self, value):
|
||||
pass
|
||||
|
||||
def map_buf(self, buf, vaddr, dva, unk):
|
||||
print(f"map buf {buf}, {unk}")
|
||||
paddr, dcpdva, dvasize = self.bufs[buf]
|
||||
|
|
Loading…
Add table
Reference in a new issue