Linux-Media Archive on lore.kernel.org
 help / color / Atom feed
From: rawoul@gmail.com
To: linux-media@vger.kernel.org
Subject: [PATCH] edid-decode: add support for DD+ JOC flags
Date: Fri, 12 Jul 2019 18:01:31 +0200
Message-ID: <20190712160131.13578-1-rawoul@gmail.com> (raw)

From: Arnaud Vrac <avrac@freebox.fr>

Used to signal Joint Object Coding support, used in particular for
Atmos streams.

Signed-off-by: Arnaud Vrac <avrac@freebox.fr>
---
 edid-decode.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/edid-decode.c b/edid-decode.c
index 940bcb5..197b78d 100644
--- a/edid-decode.c
+++ b/edid-decode.c
@@ -1165,6 +1165,11 @@ static void cta_audio_block(const unsigned char *x, unsigned int length)
 			       (x[i+2] & 0x01) ? " 16" : "");
 		} else if (format <= 8) {
 			printf("      Maximum bit rate: %d kb/s\n", x[i+2] * 8);
+		} else if (format == 10) {
+			if(x[i+2] & 1)
+				printf("      Supports JOC\n");
+			if(x[i+2] & 2)
+				printf("      Supports JOC with ACMOD28\n");
 		} else if (format == 14) {
 			printf("      Profile: %d\n", x[i+2] & 7);
 		} else if (ext_format == 11 && (x[i+2] & 1)) {
-- 
2.20.1


             reply index

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-12 16:01 rawoul [this message]
2019-07-13  9:43 ` Hans Verkuil

Reply instructions:

You may reply publically 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=20190712160131.13578-1-rawoul@gmail.com \
    --to=rawoul@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

Linux-Media Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-media/0 linux-media/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-media linux-media/ https://lore.kernel.org/linux-media \
		linux-media@vger.kernel.org linux-media@archiver.kernel.org
	public-inbox-index linux-media


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-media


AGPL code for this site: git clone https://public-inbox.org/ public-inbox