Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 39feffd0 authored by Ping Li's avatar Ping Li
Browse files

msm: mdss: Output backlight info to mdp stat sysfs node



Add modulated and scaled backlight values to d/mdp/stat sysfs
node so that they can be accessed from user space side.

Change-Id: I4c66978e71bcbce785c7a6ab460eab918b5e3ac6
Signed-off-by: default avatarPing Li <pingli@codeaurora.org>
parent 64590efd
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -291,6 +291,10 @@ static void __stats_ctl_dump(struct mdss_mdp_ctl *ctl, struct seq_file *s)
				ctl->intf_num, ctl->play_cnt);
		seq_printf(s, "vsync: %08u \tunderrun: %08u\n",
				ctl->vsync_cnt, ctl->underrun_cnt);
		if (ctl->mfd) {
			seq_printf(s, "user_bl: %08u \tmod_bl: %08u\n",
				ctl->mfd->bl_level, ctl->mfd->bl_level_scaled);
		}
	} else {
		seq_printf(s, "wb: \tmode=%x \tplay: %08u\n",
				ctl->opmode, ctl->play_cnt);