mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
media: i2c: rk628: bt1120: fix g_mbus_config for dual edge
Change-Id: I7c1d264d4f93157d9881bd55119e48bebca4463b Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
This commit is contained in:
@@ -1171,10 +1171,14 @@ static int rk628_bt1120_g_mbus_config(struct v4l2_subdev *sd,
|
||||
unsigned int pad,
|
||||
struct v4l2_mbus_config *cfg)
|
||||
{
|
||||
struct rk628_bt1120 *bt1120 = to_bt1120(sd);
|
||||
|
||||
cfg->type = V4L2_MBUS_BT656;
|
||||
cfg->flags = V4L2_MBUS_HSYNC_ACTIVE_HIGH |
|
||||
V4L2_MBUS_VSYNC_ACTIVE_HIGH |
|
||||
V4L2_MBUS_PCLK_SAMPLE_RISING;
|
||||
if (bt1120->dual_edge)
|
||||
cfg->flags |= V4L2_MBUS_PCLK_SAMPLE_FALLING;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user