[PATCH] Fix parsing of supported color formats and max audio channels
walter harms
wharms at bfs.de
Mon Apr 14 00:10:25 PDT 2014
please be more verbose what you want to fix.
Am 14.04.2014 02:11, schrieb Alen Zamanyan:
> ---
> edid-decode.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/edid-decode.c b/edid-decode.c
> index 45153d5..0407a51 100644
> --- a/edid-decode.c
> +++ b/edid-decode.c
> @@ -618,7 +618,7 @@ cea_audio_block(unsigned char *x)
> for (i = 1; i < length; i += 3) {
> format = (x[i] & 0x78) >> 3;
> printf(" %s, max channels %d\n", audio_format(format),
> - x[i] & 0x07);
> + (x[i] & 0x07)+1);
i guess off by one ?
> printf(" Supported sample rates (kHz):%s%s%s%s%s%s%s\n",
> (x[i+1] & 0x40) ? " 192" : "",
> (x[i+1] & 0x20) ? " 176.4" : "",
> @@ -1569,9 +1569,9 @@ int main(int argc, char **argv)
> }
> } else {
> printf("Supported color formats: RGB 4:4:4");
> - if (edid[0x18] & 0x10)
> - printf(", YCrCb 4:4:4");
> if (edid[0x18] & 0x08)
> + printf(", YCrCb 4:4:4");
> + if (edid[0x18] & 0x10)
> printf(", YCrCb 4:2:2");
whitespace change ?
re,
wh
> printf("\n");
> }
More information about the xorg-devel
mailing list