|
@@ -65,22 +65,22 @@ static inline struct ths8200_state *to_state(struct v4l2_subdev *sd)
|
|
|
|
|
|
static inline unsigned hblanking(const struct v4l2_bt_timings *t)
|
|
|
{
|
|
|
- return t->hfrontporch + t->hsync + t->hbackporch;
|
|
|
+ return V4L2_DV_BT_BLANKING_WIDTH(t);
|
|
|
}
|
|
|
|
|
|
static inline unsigned htotal(const struct v4l2_bt_timings *t)
|
|
|
{
|
|
|
- return t->width + t->hfrontporch + t->hsync + t->hbackporch;
|
|
|
+ return V4L2_DV_BT_FRAME_WIDTH(t);
|
|
|
}
|
|
|
|
|
|
static inline unsigned vblanking(const struct v4l2_bt_timings *t)
|
|
|
{
|
|
|
- return t->vfrontporch + t->vsync + t->vbackporch;
|
|
|
+ return V4L2_DV_BT_BLANKING_HEIGHT(t);
|
|
|
}
|
|
|
|
|
|
static inline unsigned vtotal(const struct v4l2_bt_timings *t)
|
|
|
{
|
|
|
- return t->height + t->vfrontporch + t->vsync + t->vbackporch;
|
|
|
+ return V4L2_DV_BT_FRAME_HEIGHT(t);
|
|
|
}
|
|
|
|
|
|
static int ths8200_read(struct v4l2_subdev *sd, u8 reg)
|