Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] tools/intel_vbt_decode: Dump mode backlight data
@ 2023-02-20 16:49 Ville Syrjala
  2023-02-20 18:02 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork
  2023-02-27 17:17 ` [igt-dev] [PATCH i-g-t] " Jani Nikula
  0 siblings, 2 replies; 5+ messages in thread
From: Ville Syrjala @ 2023-02-20 16:49 UTC (permalink / raw)
  To: igt-dev

From: Ville Syrjälä <ville.syrjala@linux.intel.com>

Dump the new stuff from the backlight block:
- brightness_level
- brightness_min_level
- brightness_precision_bits
- hdr_dpcd_refresh_timeout

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
---
 tools/intel_vbt_decode.c | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/tools/intel_vbt_decode.c b/tools/intel_vbt_decode.c
index 8f707c1f822a..7caa71dac793 100644
--- a/tools/intel_vbt_decode.c
+++ b/tools/intel_vbt_decode.c
@@ -626,6 +626,21 @@ static void dump_backlight_info(struct context *context,
 
 		printf("\t\tControl type: %u\n", control->type);
 		printf("\t\tController: %u\n", control->controller);
+
+		if (context->bdb->version >= 234) {
+			printf("\t\tBrightness level: %u\n",
+			       backlight->brightness_level[i].level);
+			printf("\t\tBrightness min level: %u\n",
+			       backlight->brightness_min_level[i].level);
+		}
+
+		if (context->bdb->version >= 236)
+			printf("\t\tBrigthness precision bits: %u\n",
+			       backlight->brightness_precision_bits[i]);
+
+		if (context->bdb->version >= 239)
+			printf("\t\tHDR DPCD refresh timeout: %.2f ms\n",
+			       backlight->hdr_dpcd_refresh_timeout[i] / 100.0);
 	}
 }
 
-- 
2.39.2

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-03-02  6:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-20 16:49 [igt-dev] [PATCH i-g-t] tools/intel_vbt_decode: Dump mode backlight data Ville Syrjala
2023-02-20 18:02 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork
2023-02-28 20:14   ` Kamil Konieczny
2023-03-02  6:04     ` Yedireswarapu, SaiX Nandan
2023-02-27 17:17 ` [igt-dev] [PATCH i-g-t] " Jani Nikula

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox