drm/bridge: lvds-codec: Implement atomic_get_input_bus_fmts for LVDS encoder
authorAlexander Stein <alexander.stein@ew.tq-group.com>
Thu, 10 Aug 2023 06:32:29 +0000 (08:32 +0200)
committerRobert Foss <rfoss@kernel.org>
Fri, 11 Aug 2023 13:09:59 +0000 (15:09 +0200)
commitb31f784ffff96643fa6dec31b182a3466cf4139e
treead15ea1dc031d036e649b50f715538059c9de9b5
parent15f389da11257b806da75a070cfa41ca0cc15aae
drm/bridge: lvds-codec: Implement atomic_get_input_bus_fmts for LVDS encoder

atomic_get_input_bus_fmts is only implemented for LVDS decoders, resulting
that LVDS encoders only support bus format MEDIA_BUS_FMT_FIXED. This
results in warnings like:
mxsfb 21c8000.lcdif: Bridge does not provide bus format, assuming
 MEDIA_BUS_FMT_RGB888_1X24.
Please fix bridge driver by handling atomic_get_input_bus_fmts.

Fix this by reusing lvds_codec_atomic_get_input_bus_fmts currently used
for LVDS decoders. Use RGB888_1X24 for LVDS encoders. This also allows
removing the dedicated struct drm_bridge_funcs for decoders.

Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Reviewed-by: Robert Foss <rfoss@kernel.org>
Signed-off-by: Robert Foss <rfoss@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230810063229.597533-1-alexander.stein@ew.tq-group.com
drivers/gpu/drm/bridge/lvds-codec.c