Skip to contentSkip to conversation

edid-decode: print hdmi 3d audio max channels same as SAT

PATCH New Sebastian Wick 1 participant 1 message Mar 28, 2024 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 edid-decode: print hdmi 3d audio max channels same as SAT

In libdisplay-info we parse the HDMI 3D Audio descriptor into a SAT structure and use the same function to print it. It almost matches with edid-decode but the max channels is printed differently.

---
 parse-cta-block.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
parse-cta-block.cpp +2 -2
index e26579a..4d2afc6 100644
@@ -2512,8 +2512,8 @@ static void cta_hdmi_audio_block(const unsigned char *x, unsigned length)
 		if (length > 4) {
 			unsigned format = x[0] & 0xf;
 
-			printf("    %s, max channels %u\n", audio_format(format).c_str(),
-			       (x[1] & 0x1f)+1);
+			printf("    %s:\n", audio_format(format).c_str());
+			printf("      Max channels: %u\n", (x[1] & 0x1f)+1);
 			printf("      Supported sample rates (kHz):%s%s%s%s%s%s%s\n",
 			       (x[2] & 0x40) ? " 192" : "",
 			       (x[2] & 0x20) ? " 176.4" : "",
Signature · 1 line
2.44.0