A lot of DisplayPort bridges use HDMI Codec in order to provide audio support. Present DRM HDMI Audio support has been written with the HDMI and in particular DRM HDMI Connector framework support, however those audio helpers can be easily reused for DisplayPort drivers too. Patches by Hermes Wu that targeted implementing HDMI Audio support in the iTE IT6506 driver pointed out the necessity of allowing one to use generic audio helpers for DisplayPort drivers, as otherwise each driver has to manually (and correctly) implement the get_eld() and plugged_cb support. Implement necessary integration in drm_bridge_connector and provide an example implementation in the msm/dp driver. The plan is to land core parts via the drm-misc-next tree and msm patch via the msm-next tree. Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxx> --- Dmitry Baryshkov (2): drm/display: bridge-connector: add DisplayPort bridges drm/msm/dp: reuse generic HDMI codec implementation drivers/gpu/drm/display/drm_bridge_connector.c | 66 ++++++++++--- drivers/gpu/drm/msm/Kconfig | 1 + drivers/gpu/drm/msm/dp/dp_audio.c | 131 +++---------------------- drivers/gpu/drm/msm/dp/dp_audio.h | 27 ++--- drivers/gpu/drm/msm/dp/dp_display.c | 28 +----- drivers/gpu/drm/msm/dp/dp_display.h | 6 -- drivers/gpu/drm/msm/dp/dp_drm.c | 8 ++ include/drm/drm_bridge.h | 14 ++- 8 files changed, 96 insertions(+), 185 deletions(-) --- base-commit: 93c7dd1b39444ebd5a6a98e56a363d7a4e646775 change-id: 20250206-dp-hdmi-audio-15d9fdbebb9f Best regards, -- Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxx>