]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/vkms: Allow to configure multiple encoders
authorJosé Expósito <jose.exposito89@gmail.com>
Tue, 18 Feb 2025 10:12:11 +0000 (11:12 +0100)
committerMaxime Ripard <mripard@kernel.org>
Fri, 7 Mar 2025 09:58:26 +0000 (10:58 +0100)
commitf60a183dc9105e3dc5120d5aa03b294d182965fb
tree5b4e4d118c416fff432da23d845e0ca9587ec31c
parentc204bf652a5b9e03bbd420199a326f02c2e5cb65
drm/vkms: Allow to configure multiple encoders

Add a list of encoders to vkms_config and helper functions to add and
remove as many encoders as wanted.

For backwards compatibility, add one encoder to the default
configuration.

A future patch will allow to attach encoders and CRTCs, but for the
moment there are no changes in the way the output is configured.

Reviewed-by: Louis Chauvet <louis.chauvet@bootlin.com>
Co-developed-by: Louis Chauvet <louis.chauvet@bootlin.com>
Signed-off-by: Louis Chauvet <louis.chauvet@bootlin.com>
Signed-off-by: José Expósito <jose.exposito89@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250218101214.5790-12-jose.exposito89@gmail.com
Signed-off-by: Maxime Ripard <mripard@kernel.org>
.clang-format
drivers/gpu/drm/vkms/tests/vkms_config_test.c
drivers/gpu/drm/vkms/vkms_config.c
drivers/gpu/drm/vkms/vkms_config.h