aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnaud Vrac <avrac@freebox.fr>2019-07-24 15:10:37 (GMT)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2019-07-25 06:36:21 (GMT)
commita479a24475c41bdc98540185b27cca3b06574247 (patch)
treee7265d10b1c99408c40b0940a7b5451f97a7453a
parent15df4aebf06da579241c58949493b866139d0e2b (diff)
edid-decode: parse additional flags in the DD+ Short Audio Descriptor
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> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
-rw-r--r--edid-decode.c5
1 files changed, 5 insertions, 0 deletions
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)) {

Privacy Policy