]> Git Repo - J-linux.git/commitdiff
drm/rockchip: inno-hdmi: Fix infoframe upload
authorAlex Bee <[email protected]>
Mon, 5 Aug 2024 11:08:56 +0000 (13:08 +0200)
committerHeiko Stuebner <[email protected]>
Thu, 15 Aug 2024 10:31:47 +0000 (12:31 +0200)
HDMI analyser shows that the AVI infoframe is no being longer send.

The switch to the HDMI connector api should have used the frame content
which is now given in the buffer parameter, but instead still uses the
(now) empty and superfluous packed_frame variable.

Fix it.

Fixes: 65548c8ff0ab ("drm/rockchip: inno_hdmi: Switch to HDMI connector")
Signed-off-by: Alex Bee <[email protected]>
Acked-by: Maxime Ripard <[email protected]>
Signed-off-by: Heiko Stuebner <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/rockchip/inno_hdmi.c

index 2241e53a29469090a85891d4ae7f86387c2c0c9b..dec6913cec5b59077123a33e8c886c3fe688ea54 100644 (file)
@@ -279,7 +279,6 @@ static int inno_hdmi_upload_frame(struct drm_connector *connector,
                                  const u8 *buffer, size_t len)
 {
        struct inno_hdmi *hdmi = connector_to_inno_hdmi(connector);
-       u8 packed_frame[HDMI_MAXIMUM_INFO_FRAME_SIZE];
        ssize_t i;
 
        if (type != HDMI_INFOFRAME_TYPE_AVI) {
@@ -291,8 +290,7 @@ static int inno_hdmi_upload_frame(struct drm_connector *connector,
        inno_hdmi_disable_frame(connector, type);
 
        for (i = 0; i < len; i++)
-               hdmi_writeb(hdmi, HDMI_CONTROL_PACKET_ADDR + i,
-                           packed_frame[i]);
+               hdmi_writeb(hdmi, HDMI_CONTROL_PACKET_ADDR + i, buffer[i]);
 
        return 0;
 }
This page took 0.053699 seconds and 4 git commands to generate.