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
c121ba1f
Commit
c121ba1f
authored
Jun 16, 2008
by
Mauro Carvalho Chehab
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
V4L/DVB (8050): Add register get/set debug ioctls to saa7134
Signed-off-by:
Mauro Carvalho Chehab
<
mchehab@infradead.org
>
parent
11417daa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
drivers/media/video/saa7134/saa7134-video.c
drivers/media/video/saa7134/saa7134-video.c
+30
-0
No files found.
drivers/media/video/saa7134/saa7134-video.c
View file @
c121ba1f
...
...
@@ -2208,6 +2208,32 @@ static int saa7134_g_parm(struct file *file, void *fh,
return
0
;
}
#ifdef CONFIG_VIDEO_ADV_DEBUG
static
int
vidioc_g_register
(
struct
file
*
file
,
void
*
priv
,
struct
v4l2_register
*
reg
)
{
struct
saa7134_fh
*
fh
=
priv
;
struct
saa7134_dev
*
dev
=
fh
->
dev
;
if
(
!
v4l2_chip_match_host
(
reg
->
match_type
,
reg
->
match_chip
))
return
-
EINVAL
;
reg
->
val
=
saa_readb
(
reg
->
reg
);
return
0
;
}
static
int
vidioc_s_register
(
struct
file
*
file
,
void
*
priv
,
struct
v4l2_register
*
reg
)
{
struct
saa7134_fh
*
fh
=
priv
;
struct
saa7134_dev
*
dev
=
fh
->
dev
;
if
(
!
v4l2_chip_match_host
(
reg
->
match_type
,
reg
->
match_chip
))
return
-
EINVAL
;
saa_writeb
(
reg
->
reg
&
0xffffff
,
reg
->
val
);
return
0
;
}
#endif
static
int
radio_querycap
(
struct
file
*
file
,
void
*
priv
,
struct
v4l2_capability
*
cap
)
{
...
...
@@ -2391,6 +2417,10 @@ struct video_device saa7134_video_template =
.
vidioc_g_parm
=
saa7134_g_parm
,
.
vidioc_g_frequency
=
saa7134_g_frequency
,
.
vidioc_s_frequency
=
saa7134_s_frequency
,
#ifdef CONFIG_VIDEO_ADV_DEBUG
.
vidioc_g_register
=
vidioc_g_register
,
.
vidioc_s_register
=
vidioc_s_register
,
#endif
.
tvnorms
=
SAA7134_NORMS
,
.
current_norm
=
V4L2_STD_PAL
,
};
...
...
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