Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/display: hdmi_state_helper: reject Audio IF updates if it's not supported

Updating the InfoFrame if it can not be sent over the wire makes no
sense. Change drm_atomic_helper_connector_hdmi_update_audio_infoframe()
and drm_atomic_helper_connector_hdmi_clear_audio_infoframe() to return
an error if Audio InfoFrame callbacks are not implemented.

Acked-by: Maxime Ripard <mripard@kernel.org>
Link: https://patch.msgid.link/20260107-limit-infoframes-2-v4-7-213d0d3bd490@oss.qualcomm.com
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>

+2 -2
+2 -2
drivers/gpu/drm/display/drm_hdmi_state_helper.c
··· 1061 1061 if (!info->is_hdmi) 1062 1062 return 0; 1063 1063 1064 - if (!funcs) { 1064 + if (!funcs || !funcs->audio.write_infoframe) { 1065 1065 drm_dbg_kms(connector->dev, "Function not implemented, bailing.\n"); 1066 1066 return -EINVAL; 1067 1067 } ··· 1102 1102 if (!info->is_hdmi) 1103 1103 return 0; 1104 1104 1105 - if (!funcs) { 1105 + if (!funcs || !funcs->audio.write_infoframe) { 1106 1106 drm_dbg_kms(connector->dev, "Function not implemented, bailing.\n"); 1107 1107 return -EINVAL; 1108 1108 }