Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tegra vi channel vidioc g parm #139

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions kernel/nvidia/5.0.2/0002-tegra-vi-channel-fix-VIDIOC_G_PARM.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
From bda590c5ff73db14dedf3cf401c83bac3d07a203 Mon Sep 17 00:00:00 2001
From: Dmitry Perchanov <dmitry.perchanov@intel.com>
Date: Tue, 8 Nov 2022 11:34:14 +0200
Subject: [PATCH] tegra: vi: channel: fix VIDIOC_G_PARM

---
drivers/media/platform/tegra/camera/vi/channel.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/media/platform/tegra/camera/vi/channel.c b/drivers/media/platform/tegra/camera/vi/channel.c
index 814c808..8aa9c1f 100644
--- a/drivers/media/platform/tegra/camera/vi/channel.c
+++ b/drivers/media/platform/tegra/camera/vi/channel.c
@@ -2258,7 +2258,9 @@ __tegra_channel_get_parm(struct tegra_channel *chan,
int ret = 0;
struct v4l2_subdev_frame_interval interval;

- ret = v4l2_subdev_call(sd, video, g_frame_interval, &interval);
+ /* dmipx: fixing G_PARM EINVAL error */
+// ret = v4l2_subdev_call(sd, video, g_frame_interval, &interval);
+ ret = sd->ops->video->g_frame_interval(sd, &interval);

a->parm.capture.timeperframe.numerator = interval.interval.numerator;
a->parm.capture.timeperframe.denominator = interval.interval.denominator;

--
2.37.1