hdmitx: fix the non_hdr effect in UI
authorYi Zhou <yi.zhou@amlogic.com>
Fri, 22 Dec 2017 09:13:24 +0000 (17:13 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Thu, 28 Dec 2017 10:32:05 +0000 (03:32 -0700)
PD#156644: hdmitx: fix the non_hdr effect in UI

Change-Id: I9b31757838a422bdf2e8c67bb838bb1bbc8dc497
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hdmi_tx_main.c

index b331cfa..f2ebc8b 100644 (file)
@@ -1023,6 +1023,8 @@ static void hdmitx_set_drm_pkt(struct master_display_info_s *data)
        DRM_DB[24] = GET_LOW8BIT(data->max_frame_average);
        DRM_DB[25] = GET_HIGH8BIT(data->max_frame_average);
 
+       /*eliminate the work of work_hdr*/
+       cancel_work(&hdev->work_hdr);
        /* bt2020 + gamma transfer */
        if (hdev->hdr_transfer_feature == T_BT709 &&
                hdev->hdr_color_feature == C_BT2020) {