提交 1579a9d3 编写于 作者: L Laurent Pinchart 提交者: Mauro Carvalho Chehab

[media] s5p-tv: hdmiphy: Add pad-level DV timings operations

The video enum_dv_timings operation is deprecated. Implement the
pad-level version of the operation to prepare for the removal of the
video version.
Signed-off-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: NHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
上级 5908e3ad
...@@ -225,6 +225,9 @@ static int hdmiphy_s_dv_timings(struct v4l2_subdev *sd, ...@@ -225,6 +225,9 @@ static int hdmiphy_s_dv_timings(struct v4l2_subdev *sd,
static int hdmiphy_dv_timings_cap(struct v4l2_subdev *sd, static int hdmiphy_dv_timings_cap(struct v4l2_subdev *sd,
struct v4l2_dv_timings_cap *cap) struct v4l2_dv_timings_cap *cap)
{ {
if (cap->pad != 0)
return -EINVAL;
cap->type = V4L2_DV_BT_656_1120; cap->type = V4L2_DV_BT_656_1120;
/* The phy only determines the pixelclock, leave the other values /* The phy only determines the pixelclock, leave the other values
* at 0 to signify that we have no information for them. */ * at 0 to signify that we have no information for them. */
...@@ -263,9 +266,14 @@ static const struct v4l2_subdev_video_ops hdmiphy_video_ops = { ...@@ -263,9 +266,14 @@ static const struct v4l2_subdev_video_ops hdmiphy_video_ops = {
.s_stream = hdmiphy_s_stream, .s_stream = hdmiphy_s_stream,
}; };
static const struct v4l2_subdev_pad_ops hdmiphy_pad_ops = {
.dv_timings_cap = hdmiphy_dv_timings_cap,
};
static const struct v4l2_subdev_ops hdmiphy_ops = { static const struct v4l2_subdev_ops hdmiphy_ops = {
.core = &hdmiphy_core_ops, .core = &hdmiphy_core_ops,
.video = &hdmiphy_video_ops, .video = &hdmiphy_video_ops,
.pad = &hdmiphy_pad_ops,
}; };
static int hdmiphy_probe(struct i2c_client *client, static int hdmiphy_probe(struct i2c_client *client,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册