All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] edid-decode: print hdmi 3d audio max channels same as SAT
@ 2024-03-28 17:14 Sebastian Wick
  0 siblings, 0 replies; only message in thread
From: Sebastian Wick @ 2024-03-28 17:14 UTC (permalink / raw)
  To: linux-media; +Cc: Hans Verkuil

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.

Signed-off-by: Sebastian Wick <sebastian.wick@redhat.com>
---
 parse-cta-block.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/parse-cta-block.cpp b/parse-cta-block.cpp
index e26579a..4d2afc6 100644
--- a/parse-cta-block.cpp
+++ b/parse-cta-block.cpp
@@ -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" : "",
-- 
2.44.0


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2024-03-28 17:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-28 17:14 [PATCH] edid-decode: print hdmi 3d audio max channels same as SAT Sebastian Wick

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.