[PATCH] drm/connector: Allow clearing HDMI infoframes
Derek Foreman
derek.foreman at collabora.com
Mon Dec 16 14:50:13 UTC 2024
Just a ping - is there anything further I need to do here?
On 2024-12-03 03:45, AngeloGioacchino Del Regno wrote:
> Il 02/12/24 19:19, Derek Foreman ha scritto:
>> Our infoframe setting code currently lacks the ability to clear
>> infoframes. For some of the infoframes, we only need to replace them,
>> so if an error occurred when generating a new infoframe we would leave
>> a stale frame instead of clearing the frame.
>>
>> However, the Dynamic Range and Mastering (DRM) infoframe should only
>> be present when displaying HDR content (ie: the HDR_OUTPUT_METADATA blob
>> is set). If we can't clear infoframes, the stale DRM infoframe will
>> remain and we can never set the display back to SDR mode.
>>
>> With this change, we clear infoframes when they can not, or should not,
>> be generated. This fixes switching to an SDR mode from an HDR one.
>>
>> Fixes: f378b77227bc4 ("drm/connector: hdmi: Add Infoframes generation")
>> Signed-off-by: Derek Foreman <derek.foreman at collabora.com>
>
> Reviewed-by: AngeloGioacchino Del Regno
> <angelogioacchino.delregno at collabora.com>
>
>
More information about the dri-devel
mailing list