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:
Janne Grunau 2022-10-31 00:58:05 +01:00 committed by Hector Martin
parent 6aa1da3c31
commit 7d9608adc4

View file

@ -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]