Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
9873740b
Commit
9873740b
authored
Jul 13, 2009
by
Mauro Carvalho Chehab
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
V4L/DVB (12237): mt9v011: implement VIDIOC_QUERYCTRL
Signed-off-by:
Mauro Carvalho Chehab
<
mchehab@redhat.com
>
parent
527f09a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
drivers/media/video/mt9v011.c
drivers/media/video/mt9v011.c
+18
-0
No files found.
drivers/media/video/mt9v011.c
View file @
9873740b
...
...
@@ -215,6 +215,23 @@ static int mt9v011_g_ctrl(struct v4l2_subdev *sd, struct v4l2_control *ctrl)
return
-
EINVAL
;
}
static
int
mt9v011_queryctrl
(
struct
v4l2_subdev
*
sd
,
struct
v4l2_queryctrl
*
qc
)
{
int
i
;
v4l2_dbg
(
1
,
debug
,
sd
,
"queryctrl called
\n
"
);
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
mt9v011_qctrl
);
i
++
)
if
(
qc
->
id
&&
qc
->
id
==
mt9v011_qctrl
[
i
].
id
)
{
memcpy
(
qc
,
&
(
mt9v011_qctrl
[
i
]),
sizeof
(
*
qc
));
return
0
;
}
return
-
EINVAL
;
}
static
int
mt9v011_s_ctrl
(
struct
v4l2_subdev
*
sd
,
struct
v4l2_control
*
ctrl
)
{
struct
mt9v011
*
core
=
to_mt9v011
(
sd
);
...
...
@@ -338,6 +355,7 @@ static int mt9v011_g_chip_ident(struct v4l2_subdev *sd,
}
static
const
struct
v4l2_subdev_core_ops
mt9v011_core_ops
=
{
.
queryctrl
=
mt9v011_queryctrl
,
.
g_ctrl
=
mt9v011_g_ctrl
,
.
s_ctrl
=
mt9v011_s_ctrl
,
.
reset
=
mt9v011_reset
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment