[PATCH 9/8] edid-decode: increase indentation for audio properties
Hans Verkuil
hverkuil at xs4all.nl
Fri Sep 8 06:52:35 UTC 2017
When printing the audio properties of an audio format, indent the
text a bit further to the right to make it easier to see where
each audio format starts and to which audio format the properties
belong.
Signed-off-by: Hans Verkuil <hans.verkuil at cisco.com>
---
edid-decode.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/edid-decode.c b/edid-decode.c
index ca6f57b9..0ab3f866 100644
--- a/edid-decode.c
+++ b/edid-decode.c
@@ -1085,7 +1085,7 @@ cea_audio_block(unsigned char *x)
else
printf(" %s, max channels %d\n", audio_ext_format(ext_format),
(x[i] & 0x07)+1);
- printf(" Supported sample rates (kHz):%s%s%s%s%s%s%s\n",
+ printf(" Supported sample rates (kHz):%s%s%s%s%s%s%s\n",
(x[i+1] & 0x40) ? " 192" : "",
(x[i+1] & 0x20) ? " 176.4" : "",
(x[i+1] & 0x10) ? " 96" : "",
@@ -1094,21 +1094,21 @@ cea_audio_block(unsigned char *x)
(x[i+1] & 0x02) ? " 44.1" : "",
(x[i+1] & 0x01) ? " 32" : "");
if (format == 1 || ext_format == 13) {
- printf(" Supported sample sizes (bits):%s%s%s\n",
+ printf(" Supported sample sizes (bits):%s%s%s\n",
(x[i+2] & 0x04) ? " 24" : "",
(x[i+2] & 0x02) ? " 20" : "",
(x[i+2] & 0x01) ? " 16" : "");
} else if (format <= 8) {
- printf(" Maximum bit rate: %d kHz\n", x[i+2] * 8);
+ printf(" Maximum bit rate: %d kHz\n", x[i+2] * 8);
} else if (format == 14) {
- printf(" Profile: %d\n", x[i+2] & 7);
+ printf(" Profile: %d\n", x[i+2] & 7);
} else if ((ext_format >= 4 && ext_format <= 6) ||
ext_format == 8 || ext_format == 10) {
- printf(" AAC audio frame lengths:%s%s\n",
+ printf(" AAC audio frame lengths:%s%s\n",
(x[i+2] & 4) ? " 1024_TL" : "",
(x[i+2] & 2) ? " 960_TL" : "");
if (ext_format >= 8 && (x[i+2] & 1))
- printf(" Supports %s signaled MPEG Surround data\n",
+ printf(" Supports %s signaled MPEG Surround data\n",
(x[i+2] & 1) ? "implicitly and explicitly" : "only implicitly");
}
}
--
2.14.1
More information about the xorg-devel
mailing list