drm/ingenic: Implement proper .atomic_get_input_bus_fmts
authorPaul Cercueil <paul@crapouillou.net>
Thu, 7 Apr 2022 11:16:10 +0000 (13:16 +0200)
committerPaul Cercueil <paul@crapouillou.net>
Mon, 11 Apr 2022 15:03:23 +0000 (16:03 +0100)
commit33e799ed905b84a53b9efa71c6f2b62cbbca40dd
treeda24d857f7eb4c3b10b194b0f03b0f275b1ce9af
parent6de79dd3a920a138a292231e2da82ab8e019ec99
drm/ingenic: Implement proper .atomic_get_input_bus_fmts

The .atomic_get_input_bus_fmts() callback of our top bridge should
return the possible input formats for a given output format. If the
requested output format is not supported, then NULL should be returned,
otherwise the bus format negociation will end with a bus format that the
encoder does not support.

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Link: https://patchwork.freedesktop.org/patch/msgid/ab25925723cff2f3e773e7137567ef86fff5fdba.1649330171.git.hns@goldelico.com
drivers/gpu/drm/ingenic/ingenic-drm-drv.c