Skip to content

Commit

Permalink
drm/bridge: aux: allow interlaced and YCbCr 420 output
Browse files Browse the repository at this point in the history
As both aux bridges are merely passthrough bridges, mark them as
supporting interlaced and YCbCr 420 data. Other bridges in the chain
still might limit interlaced and YCbCr 420 data support on the
corresponding connector.

Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Reviewed-by: Maxime Ripard <mripard@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20241019-bridge-yuv420-v1-4-d74efac9e4e6@linaro.org
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
  • Loading branch information
Dmitry Baryshkov committed Oct 24, 2024
1 parent d5cd828 commit c44a0fa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/gpu/drm/bridge/aux-bridge.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,10 @@ static int drm_aux_bridge_probe(struct auxiliary_device *auxdev,
data->bridge.funcs = &drm_aux_bridge_funcs;
data->bridge.of_node = data->dev->of_node;

/* passthrough data, allow everything */
data->bridge.interlace_allowed = true;
data->bridge.ycbcr_420_allowed = true;

return devm_drm_bridge_add(data->dev, &data->bridge);
}

Expand Down
4 changes: 4 additions & 0 deletions drivers/gpu/drm/bridge/aux-hpd-bridge.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,10 @@ static int drm_aux_hpd_bridge_probe(struct auxiliary_device *auxdev,
data->bridge.ops = DRM_BRIDGE_OP_HPD;
data->bridge.type = id->driver_data;

/* passthrough data, allow everything */
data->bridge.interlace_allowed = true;
data->bridge.ycbcr_420_allowed = true;

auxiliary_set_drvdata(auxdev, data);

return devm_drm_bridge_add(data->dev, &data->bridge);
Expand Down

0 comments on commit c44a0fa

Please sign in to comment.