Linux Media Controller development
 help / color / mirror / Atom feed
From: Julian Orth <ju.orth@gmail.com>
To: linux-media@vger.kernel.org, Julian Orth <ju.orth@gmail.com>
Subject: [PATCH v4l-utils 1/2] edid-decode: fix incorrect shift
Date: Fri, 25 Sep 2026 15:46:42 +0200	[thread overview]
Message-ID: <20260925-jorth-amd-2-v1-1-41deccc043f0@gmail.com> (raw)
In-Reply-To: <20260925-jorth-amd-2-v1-0-41deccc043f0@gmail.com>

The panel type is stored in the upper two bits as described by the doc
comment.

Signed-off-by: Julian Orth <ju.orth@gmail.com>
---
 utils/edid-decode/parse-cta-block.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/utils/edid-decode/parse-cta-block.cpp b/utils/edid-decode/parse-cta-block.cpp
index b52860d4..a52bc115 100644
--- a/utils/edid-decode/parse-cta-block.cpp
+++ b/utils/edid-decode/parse-cta-block.cpp
@@ -1711,8 +1711,8 @@ static void cta_amd(const unsigned char *x, unsigned length)
     if (supported_cs & CS_BT2020)
         printf("      BT.2020 Gamut Supported\n");
 
-    bool is_mini_led = x[5] >> 5 == 1;
-    bool is_oled     = x[5] >> 5 == 2;
+    bool is_mini_led = x[5] >> 6 == 1;
+    bool is_oled     = x[5] >> 6 == 2;
     if (is_mini_led)
         printf("      Display is Mini LED\n");
     if (is_oled)

-- 
2.55.0


  reply	other threads:[~2026-09-25 13:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-25 13:46 [PATCH 0/2] edid-decode: correct and complete AMD VSDB Julian Orth
2026-09-25 13:46 ` Julian Orth [this message]
2026-09-25 13:46 ` [PATCH v4l-utils 2/2] " Julian Orth
2026-09-28  8:24 ` [PATCH 0/2] " Hans Verkuil

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=20260925-jorth-amd-2-v1-1-41deccc043f0@gmail.com \
    --to=ju.orth@gmail.com \
    --cc=linux-media@vger.kernel.org \
    /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