diff options
author | Thomas Zimmermann <tzimmermann@suse.de> | 2024-08-15 17:18:46 +0200 |
---|---|---|
committer | Thomas Zimmermann <tzimmermann@suse.de> | 2024-08-22 09:12:57 +0200 |
commit | 0e35457eb4b75f2bc9eca58a46d12e200e15e47f (patch) | |
tree | 0e9125645bb4b66326b8855b05d2346a8504aedb /drivers/dca | |
parent | f89001ea41771fe94005920c363dee43e8078bec (diff) |
drm/ast: astdp: Use struct drm_edid and helpers
Convert ASTDP support to struct drm_edid and its helpers. Simplifies
and modernizes the EDID handling.
The driver reads 4 bytes at once, but the overall read length is now
variable. Therefore update the EDID read loop to never return more than
the requested bytes.
The device does not seem to support EDID extensions, as the driver
actively clears any such information from the main EDID header. As
the new interface allows for reading extension blocks for EDID, make
sure that the block is always 0 (i.e., the main header). A later
update might fix that.
v2:
- fix reading if len is not a multiple of 4
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240815151953.184679-5-tzimmermann@suse.de
Diffstat (limited to 'drivers/dca')
0 files changed, 0 insertions, 0 deletions