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: Ping Li <pingli@codeaurora.org>
This commit is contained in:
parent
f283ba88e6
commit
002aa08637
1 changed files with 4 additions and 0 deletions
|
@ -286,6 +286,10 @@ static void __stats_ctl_dump(struct mdss_mdp_ctl *ctl, struct seq_file *s)
|
||||||
ctl->intf_num, ctl->play_cnt);
|
ctl->intf_num, ctl->play_cnt);
|
||||||
seq_printf(s, "vsync: %08u \tunderrun: %08u\n",
|
seq_printf(s, "vsync: %08u \tunderrun: %08u\n",
|
||||||
ctl->vsync_cnt, ctl->underrun_cnt);
|
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 {
|
} else {
|
||||||
seq_printf(s, "wb: \tmode=%x \tplay: %08u\n",
|
seq_printf(s, "wb: \tmode=%x \tplay: %08u\n",
|
||||||
ctl->opmode, ctl->play_cnt);
|
ctl->opmode, ctl->play_cnt);
|
||||||
|
|
Loading…
Add table
Reference in a new issue