From: Jani Nikula <jani.nikula@linux.intel.com>
To: Ville Syrjala <ville.syrjala@linux.intel.com>,
igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [PATCH i-g-t] tools/intel_vbt_decode: Dump mode backlight data
Date: Mon, 27 Feb 2023 19:17:49 +0200 [thread overview]
Message-ID: <87zg8zyqma.fsf@intel.com> (raw)
In-Reply-To: <20230220164927.27283-1-ville.syrjala@linux.intel.com>
On Mon, 20 Feb 2023, Ville Syrjala <ville.syrjala@linux.intel.com> wrote:
> 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>
Reviewed-by: Jani Nikula <jani.nikula@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
prev parent reply other threads:[~2023-02-27 17:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
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 ` Jani Nikula [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zg8zyqma.fsf@intel.com \
--to=jani.nikula@linux.intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=ville.syrjala@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox