mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 10:58:48 +09:00
media: i2c: nvp6158: add g_frame_interval ops
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com> Change-Id: I93423521b22916d1be9bb93d56777ee586b0823b
This commit is contained in:
@@ -924,6 +924,17 @@ static int nvp6158_set_fmt(struct v4l2_subdev *sd,
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int nvp6158_g_frame_interval(struct v4l2_subdev *sd,
|
||||
struct v4l2_subdev_frame_interval *fi)
|
||||
{
|
||||
struct nvp6158 *nvp6158 = to_nvp6158(sd);
|
||||
const struct nvp6158_framesize *size = nvp6158->frame_size;
|
||||
|
||||
fi->interval = size->max_fps;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void nvp6158_get_module_inf(struct nvp6158 *nvp6158,
|
||||
struct rkmodule_inf *inf)
|
||||
{
|
||||
@@ -1174,6 +1185,7 @@ static const struct dev_pm_ops nvp6158_pm_ops = {
|
||||
static const struct v4l2_subdev_video_ops nvp6158_video_ops = {
|
||||
.s_stream = nvp6158_stream,
|
||||
.querystd = nvp6158_querystd,
|
||||
.g_frame_interval = nvp6158_g_frame_interval,
|
||||
};
|
||||
|
||||
static const struct v4l2_subdev_pad_ops nvp6158_subdev_pad_ops = {
|
||||
|
||||
Reference in New Issue
Block a user