Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
bc974305
Commit
bc974305
authored
Dec 22, 2008
by
Mauro Carvalho Chehab
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
V4L/DVB (9969): tvp5150: add support for VIDIOC_G_CHIP_IDENT ioctl
Signed-off-by:
Mauro Carvalho Chehab
<
mchehab@redhat.com
>
parent
b3ee7e21
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
drivers/media/video/tvp5150.c
drivers/media/video/tvp5150.c
+16
-0
include/media/v4l2-chip-ident.h
include/media/v4l2-chip-ident.h
+3
-0
No files found.
drivers/media/video/tvp5150.c
View file @
bc974305
...
...
@@ -12,6 +12,7 @@
#include <media/v4l2-device.h>
#include <media/tvp5150.h>
#include <media/v4l2-i2c-drv-legacy.h>
#include <media/v4l2-chip-ident.h>
#include "tvp5150_reg.h"
...
...
@@ -961,6 +962,20 @@ static int tvp5150_g_fmt(struct v4l2_subdev *sd, struct v4l2_format *fmt)
}
static
int
tvp5150_g_chip_ident
(
struct
v4l2_subdev
*
sd
,
struct
v4l2_chip_ident
*
chip
)
{
int
rev
;
struct
i2c_client
*
client
=
v4l2_get_subdevdata
(
sd
);
rev
=
tvp5150_read
(
sd
,
TVP5150_ROM_MAJOR_VER
)
<<
8
|
tvp5150_read
(
sd
,
TVP5150_ROM_MINOR_VER
);
return
v4l2_chip_ident_i2c_client
(
client
,
chip
,
V4L2_IDENT_TVP5150
,
rev
);
}
#ifdef CONFIG_VIDEO_ADV_DEBUG
static
int
tvp5150_g_register
(
struct
v4l2_subdev
*
sd
,
struct
v4l2_register
*
reg
)
{
...
...
@@ -1026,6 +1041,7 @@ static const struct v4l2_subdev_core_ops tvp5150_core_ops = {
.
s_ctrl
=
tvp5150_s_ctrl
,
.
queryctrl
=
tvp5150_queryctrl
,
.
reset
=
tvp5150_reset
,
.
g_chip_ident
=
tvp5150_g_chip_ident
,
#ifdef CONFIG_VIDEO_ADV_DEBUG
.
g_register
=
tvp5150_g_register
,
.
s_register
=
tvp5150_s_register
,
...
...
include/media/v4l2-chip-ident.h
View file @
bc974305
...
...
@@ -70,6 +70,9 @@ enum {
/* module vp27smpx: just ident 2700 */
V4L2_IDENT_VP27SMPX
=
2700
,
/* module tvp5150 */
V4L2_IDENT_TVP5150
=
5150
,
/* module cs5345: just ident 5345 */
V4L2_IDENT_CS5345
=
5345
,
...
...
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