From: Sebastian Wick <sebastian.wick@redhat.com>
To: linux-media@vger.kernel.org
Cc: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Subject: [PATCH] edid-decode: print hdmi 3d audio max channels same as SAT
Date: Thu, 28 Mar 2024 18:14:03 +0100 [thread overview]
Message-ID: <20240328171406.140333-1-sebastian.wick@redhat.com> (raw)
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
reply other threads:[~2024-03-28 17:14 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20240328171406.140333-1-sebastian.wick@redhat.com \
--to=sebastian.wick@redhat.com \
--cc=hverkuil-cisco@xs4all.nl \
--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 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.