All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] edid-decode: parse additional flags in the DD+ Short Audio Descriptor
@ 2019-07-24 15:10 rawoul
  0 siblings, 0 replies; only message in thread
From: rawoul @ 2019-07-24 15:10 UTC (permalink / raw)
  To: linux-media

From: Arnaud Vrac <avrac@freebox.fr>

In the Dolby Digital Plus Short Audio Descriptor, byte 3 is used to
signal Joint Object Coding support, which can be useful to determine if
the sink supports Dolby Atmos.

Parse these flags as described in the Dolby Audio and Dolby Atmos over
HDMI specification v1.0. Other bits in byte 3 are marked as reserved and
should be zero.

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

Changes since v1: mention the document describing the dd+ flags

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


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

only message in thread, other threads:[~2019-07-24 15:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-24 15:10 [PATCH v2] edid-decode: parse additional flags in the DD+ Short Audio Descriptor rawoul

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.