On 17/03/2021 16:43, Maxime Ripard wrote:
The atomic_get_output_bus_fmts bridge callback is there to list the available formats for output by decreasing order of preference.
On HDMI controllers, we have a fairly static list that will depend on what the HDMI sink is capable of and the BPC our controller can output.
The dw-hdmi driver already has that code done in a fairly generic manner, so let's turn that code into an helper for all the HDMI controllers to reuse.
This code was based on the capabilities of the DW-HDMI IP, copying it as-is doesn't make much sense, we should be able to filter out formats the HDMI IP doesn't support.
Neil
Signed-off-by: Maxime Ripard maxime@cerno.tech
[...]