diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2014-01-31 06:51:18 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-05-25 11:41:18 -0400 |
commit | 1579a9d3f0f81f56a1a03e7edefceba3eef593d3 (patch) | |
tree | 2ad3907ff35c426c7676b769456dace60db910b2 /drivers/media/platform/s5p-tv | |
parent | 5908e3ad19cdf68c241bc450952b59cdf5c3c387 (diff) |
[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: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/platform/s5p-tv')
-rw-r--r-- | drivers/media/platform/s5p-tv/hdmiphy_drv.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/media/platform/s5p-tv/hdmiphy_drv.c b/drivers/media/platform/s5p-tv/hdmiphy_drv.c index e19a0af1ea4f..ff22320eb172 100644 --- a/drivers/media/platform/s5p-tv/hdmiphy_drv.c +++ b/drivers/media/platform/s5p-tv/hdmiphy_drv.c | |||
@@ -225,6 +225,9 @@ static int hdmiphy_s_dv_timings(struct v4l2_subdev *sd, | |||
225 | static int hdmiphy_dv_timings_cap(struct v4l2_subdev *sd, | 225 | static int hdmiphy_dv_timings_cap(struct v4l2_subdev *sd, |
226 | struct v4l2_dv_timings_cap *cap) | 226 | struct v4l2_dv_timings_cap *cap) |
227 | { | 227 | { |
228 | if (cap->pad != 0) | ||
229 | return -EINVAL; | ||
230 | |||
228 | cap->type = V4L2_DV_BT_656_1120; | 231 | cap->type = V4L2_DV_BT_656_1120; |
229 | /* The phy only determines the pixelclock, leave the other values | 232 | /* The phy only determines the pixelclock, leave the other values |
230 | * at 0 to signify that we have no information for them. */ | 233 | * 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 | .s_stream = hdmiphy_s_stream, | 266 | .s_stream = hdmiphy_s_stream, |
264 | }; | 267 | }; |
265 | 268 | ||
269 | static const struct v4l2_subdev_pad_ops hdmiphy_pad_ops = { | ||
270 | .dv_timings_cap = hdmiphy_dv_timings_cap, | ||
271 | }; | ||
272 | |||
266 | static const struct v4l2_subdev_ops hdmiphy_ops = { | 273 | static const struct v4l2_subdev_ops hdmiphy_ops = { |
267 | .core = &hdmiphy_core_ops, | 274 | .core = &hdmiphy_core_ops, |
268 | .video = &hdmiphy_video_ops, | 275 | .video = &hdmiphy_video_ops, |
276 | .pad = &hdmiphy_pad_ops, | ||
269 | }; | 277 | }; |
270 | 278 | ||
271 | static int hdmiphy_probe(struct i2c_client *client, | 279 | static int hdmiphy_probe(struct i2c_client *client, |