[PATCH v3 08/10] drm/display: bridge-connector: handle CEC adapters
Maxime Ripard
mripard at kernel.org
Tue Jan 28 16:14:06 UTC 2025
On Sun, Jan 26, 2025 at 03:29:13PM +0200, Dmitry Baryshkov wrote:
> /* -----------------------------------------------------------------------------
> * Bridge Connector Initialisation
> */
> @@ -633,6 +711,21 @@ struct drm_connector *drm_bridge_connector_init(struct drm_device *drm,
> if (ret)
> return ERR_PTR(ret);
> }
> +
> + if (bridge->hdmi_cec_adapter_name) {
> + if (!bridge->funcs->hdmi_cec_enable ||
> + !bridge->funcs->hdmi_cec_log_addr ||
> + !bridge->funcs->hdmi_cec_transmit)
> + return ERR_PTR(-EINVAL);
> +
> + ret = drm_connector_hdmi_cec_register(connector,
> + &drm_bridge_connector_hdmi_cec_ops,
> + bridge->hdmi_cec_adapter_name,
> + bridge->hdmi_cec_available_las,
> + bridge->hdmi_dev);
> + if (ret)
> + return ERR_PTR(ret);
> + }
Maybe we can use a different bridge feature flag to trigger the CEC code
support instead?
Maxime
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 273 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20250128/ae1e8b6d/attachment.sig>
More information about the dri-devel
mailing list