[igt-dev] [PATCH i-g-t] tools/intel_vbt_decode: Dump mode backlight data
Jani Nikula
jani.nikula at linux.intel.com
Mon Feb 27 17:17:49 UTC 2023
On Mon, 20 Feb 2023, Ville Syrjala <ville.syrjala at linux.intel.com> wrote:
> From: Ville Syrjälä <ville.syrjala at 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 at linux.intel.com>
Reviewed-by: Jani Nikula <jani.nikula at 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);
> }
> }
--
Jani Nikula, Intel Open Source Graphics Center
More information about the igt-dev
mailing list