Skip to content

Commit

Permalink
open veyecam2m_g_mbus_config for veyecam2m driver
Browse files Browse the repository at this point in the history
  • Loading branch information
xumm committed Dec 20, 2023
1 parent 96f69ba commit 389b14c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions linux/drivers/rk358x/cam_drv_src/veyecam2m.c
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,8 @@ static int veyecam2m_g_frame_interval(struct v4l2_subdev *sd,
}

//#define veyecam2m_LANES 2
/*static int veyecam2m_g_mbus_config(struct v4l2_subdev *sd,
//Please note that depending on the kernel version differences, this function may need to be either disabled or enabled.
static int veyecam2m_g_mbus_config(struct v4l2_subdev *sd,
struct v4l2_mbus_config *config)
{
u32 val = 0;
Expand All @@ -420,7 +421,7 @@ static int veyecam2m_g_frame_interval(struct v4l2_subdev *sd,

return 0;
}
*/

static void veyecam2m_get_module_inf(struct veyecam2m *veyecam2m,
struct rkmodule_inf *inf)
{
Expand Down Expand Up @@ -894,7 +895,7 @@ static const struct v4l2_subdev_core_ops veyecam2m_core_ops = {
static const struct v4l2_subdev_video_ops veyecam2m_video_ops = {
.s_stream = veyecam2m_s_stream,
.g_frame_interval = veyecam2m_g_frame_interval,
//.g_mbus_config = veyecam2m_g_mbus_config,
.g_mbus_config = veyecam2m_g_mbus_config,
};

static const struct v4l2_subdev_pad_ops veyecam2m_pad_ops = {
Expand Down Expand Up @@ -931,6 +932,8 @@ static int veyecam2m_set_ctrl(struct v4l2_ctrl *ctrl)
veyecam2m->exposure->step,
veyecam2m->exposure->default_value);
break;
default:
break;
}
if (pm_runtime_get(&client->dev) <= 0)
return 0;
Expand Down

0 comments on commit 389b14c

Please sign in to comment.