Skip to contentSkip to conversation

edid-decode: Cannot support NonMixed MS without MS

PATCH Superseded Sebastian Wick 2 participants 4 messages May 29, 2024 – Jun 5, 2024 Media (V4L/DVB)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 edid-decode: Cannot support NonMixed MS without MS

When Max Stream Count is zero, the sink does not support multistream and thus cannot support NonMixed MS.

An EDID with Max Stream Count = 0 and Non Mixed MS = 1 can be found in linuxhw/EDID ./Digital/TCL/TCL5655/1723FF2DC6D1 at commit cff7fe4d44.

---
 parse-cta-block.cpp | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
parse-cta-block.cpp +4 -3
index 4d2afc6..7cd7a3a 100644
@@ -2498,10 +2498,11 @@ static void cta_hdmi_audio_block(const unsigned char *x, unsigned length)
 		fail("Empty Data Block with length %u.\n", length);
 		return;
 	}
-	if (x[0] & 3)
+	if (x[0] & 3) {
 		printf("    Max Stream Count: %u\n", (x[0] & 3) + 1);
-	if (x[0] & 4)
-		printf("    Supports MS NonMixed\n");
+	    if (x[0] & 4)
+		    printf("    Supports MS NonMixed\n");
+	}
 
 	num_descs = x[1] & 7;
 	if (num_descs == 0)
Signature · 1 line
2.45.0
#1 lore raw

Hi Sebastian,

Quoted 17 lines · Sebastian Wick

When Max Stream Count is zero, the sink does not support multistream and thus cannot support NonMixed MS.

An EDID with Max Stream Count = 0 and Non Mixed MS = 1 can be found in linuxhw/EDID ./Digital/TCL/TCL5655/1723FF2DC6D1 at commit cff7fe4d44.

---
 parse-cta-block.cpp | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
parse-cta-block.cpp +0 -0
index 4d2afc6..7cd7a3a 100644
@@ -2498,10 +2498,11 @@ static void cta_hdmi_audio_block(const unsigned char *x, unsigned length)
 		fail("Empty Data Block with length %u.\n", length);

parse-cta-block.cpp static void cta_hdmi_audio_block(const unsigned char *x, unsigned length) · line 2505

Quoted 10 lines
parse-cta-block.cpp +4 -3
 		return;
 	}
-	if (x[0] & 3)
+	if (x[0] & 3) {
 		printf("    Max Stream Count: %u\n", (x[0] & 3) + 1);
-	if (x[0] & 4)
-		printf("    Supports MS NonMixed\n");
+	    if (x[0] & 4)
+		    printf("    Supports MS NonMixed\n");
+	}

I would actually leave this as-is, but instead add a fail() message if MS NonMixed is set, but Max Stream Count == 0.

It's really an EDID conformity failure, and it should be reported as such.

Regards,

Hans

Quoted 3 lines
parse-cta-block.cpp +0 -0
 	num_descs = x[1] & 7;
 	if (num_descs == 0)
#2 lore raw
Quoted 35 lines · Hans Verkuil

Hi Sebastian,

Quoted 17 lines · Sebastian Wick

When Max Stream Count is zero, the sink does not support multistream and thus cannot support NonMixed MS.

An EDID with Max Stream Count = 0 and Non Mixed MS = 1 can be found in linuxhw/EDID ./Digital/TCL/TCL5655/1723FF2DC6D1 at commit cff7fe4d44.

---
 parse-cta-block.cpp | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
parse-cta-block.cpp +0 -0
index 4d2afc6..7cd7a3a 100644
@@ -2498,10 +2498,11 @@ static void cta_hdmi_audio_block(const unsigned char *x, unsigned length)
              fail("Empty Data Block with length %u.\n", length);

parse-cta-block.cpp static void cta_hdmi_audio_block(const unsigned char *x, unsigned length) · line 2505

Quoted 10 lines
parse-cta-block.cpp +4 -3
              return;
      }
-     if (x[0] & 3)
+     if (x[0] & 3) {
              printf("    Max Stream Count: %u\n", (x[0] & 3) + 1);
-     if (x[0] & 4)
-             printf("    Supports MS NonMixed\n");
+         if (x[0] & 4)
+                 printf("    Supports MS NonMixed\n");
+     }

I would actually leave this as-is, but instead add a fail() message if MS NonMixed is set, but Max Stream Count == 0.

Quoted 1 line

It's really an EDID conformity failure, and it should be reported as such.

I'm all for adding a fail() message but I'm afraid our implementation which tries to be compatible with the output here won't have access to the MS NonMixed bit when Max Stream Count == 0.

Would this work for you?

    if (x[0] & 3) {
        printf("    Max Stream Count: %u\n", (x[0] & 3) + 1);
        if (x[0] & 4)
            printf("    Supports MS NonMixed\n");
        else
                fail("NonMixed MS support indicated but MS is unsupported\n");
    }
Quoted 9 lines

Regards,

Hans

Quoted 3 lines
parse-cta-block.cpp +0 -0
      num_descs = x[1] & 7;
      if (num_descs == 0)
#3 lore raw
Quoted 44 lines · Sebastian Wick
Quoted 35 lines · Hans Verkuil

Hi Sebastian,

Quoted 17 lines · Sebastian Wick

When Max Stream Count is zero, the sink does not support multistream and thus cannot support NonMixed MS.

An EDID with Max Stream Count = 0 and Non Mixed MS = 1 can be found in linuxhw/EDID ./Digital/TCL/TCL5655/1723FF2DC6D1 at commit cff7fe4d44.

---
 parse-cta-block.cpp | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
parse-cta-block.cpp +0 -0
index 4d2afc6..7cd7a3a 100644
@@ -2498,10 +2498,11 @@ static void cta_hdmi_audio_block(const unsigned char *x, unsigned length)
              fail("Empty Data Block with length %u.\n", length);

parse-cta-block.cpp static void cta_hdmi_audio_block(const unsigned char *x, unsigned length) · line 2505

Quoted 10 lines
parse-cta-block.cpp +4 -3
              return;
      }
-     if (x[0] & 3)
+     if (x[0] & 3) {
              printf("    Max Stream Count: %u\n", (x[0] & 3) + 1);
-     if (x[0] & 4)
-             printf("    Supports MS NonMixed\n");
+         if (x[0] & 4)
+                 printf("    Supports MS NonMixed\n");
+     }

I would actually leave this as-is, but instead add a fail() message if MS NonMixed is set, but Max Stream Count == 0.

Quoted 1 line

It's really an EDID conformity failure, and it should be reported as such.

I'm all for adding a fail() message but I'm afraid our implementation which tries to be compatible with the output here won't have access to the MS NonMixed bit when Max Stream Count == 0.

Would this work for you?

Quoted 7 lines
    if (x[0] & 3) {
        printf("    Max Stream Count: %u\n", (x[0] & 3) + 1);
        if (x[0] & 4)
            printf("    Supports MS NonMixed\n");
        else
                fail("NonMixed MS support indicated but MS is unsupported\n");
    }

Correcting the logic that would be this:

	if (x[0] & 3) {
        	printf("    Max Stream Count: %u\n", (x[0] & 3) + 1);
		if (x[0] & 4)
			printf("    Supports MS NonMixed\n");
	} else if (x[0] & 4) {
		fail("MS NonMixed support indicated but Max Stream Count == 0.\n");
	}

And that works for me.

Regards,

Hans

Quoted 11 lines
Quoted 10 lines

Regards,

Hans

Quoted 3 lines
parse-cta-block.cpp +0 -0
      num_descs = x[1] & 7;
      if (num_descs == 0)