edid: Fix clock of Detailed Timing Descriptor
commit4377683df969e715e3cb2dbd258e44f9ff51f788
authorAkihiko Odaki <akihiko.odaki@gmail.com>
Sun, 13 Feb 2022 02:15:29 +0000 (13 11:15 +0900)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 4 Mar 2022 10:31:46 +0000 (4 11:31 +0100)
treed7c4ccf5b58c4a5789111518792cc51cdd4f9780
parentf4ba24b3857251e7531803d6a157b3495dcb5703
edid: Fix clock of Detailed Timing Descriptor

The clock field is 16-bits in EDID Detailed Timing Descriptor, but
edid_desc_timing assumed it is 32-bit. Write the 16-bit value if it fits
in 16-bit. Write DisplayID otherwise.

Signed-off-by: Akihiko Odaki <akihiko.odaki@gmail.com>
Message-Id: <20220213021529.2248-1-akihiko.odaki@gmail.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/display/edid-generate.c