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
0ae79d99
Commit
0ae79d99
authored
Feb 15, 2011
by
Mauro Carvalho Chehab
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[media] tuner-core: Fix a few comments on it
Signed-off-by:
Mauro Carvalho Chehab
<
mchehab@redhat.com
>
parent
a34ec5f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
8 deletions
+15
-8
drivers/media/video/tuner-core.c
drivers/media/video/tuner-core.c
+15
-8
No files found.
drivers/media/video/tuner-core.c
View file @
0ae79d99
...
@@ -128,7 +128,7 @@ struct tuner {
...
@@ -128,7 +128,7 @@ struct tuner {
* tuner attach/detach logic
* tuner attach/detach logic
*/
*/
/*
*
This macro allows us to probe dynamically, avoiding static links */
/* This macro allows us to probe dynamically, avoiding static links */
#ifdef CONFIG_MEDIA_ATTACH
#ifdef CONFIG_MEDIA_ATTACH
#define tuner_symbol_probe(FUNCTION, ARGS...) ({ \
#define tuner_symbol_probe(FUNCTION, ARGS...) ({ \
int __r = -EINVAL; \
int __r = -EINVAL; \
...
@@ -412,13 +412,20 @@ static void set_type(struct i2c_client *c, unsigned int type,
...
@@ -412,13 +412,20 @@ static void set_type(struct i2c_client *c, unsigned int type,
return
;
return
;
}
}
/*
/**
* This function apply tuner config to tuner specified
* tuner_s_type_addr - Sets the tuner type for a device
* by tun_setup structure. I addr is unset, then admin status
*
* and tun addr status is more precise then current status,
* @sd: subdev descriptor
* it's applied. Otherwise status and type are applied only to
* @tun_setup: type to be associated to a given tuner i2c address
* tuner with exactly the same addr.
*
*/
* This function applys the tuner config to tuner specified
* by tun_setup structure.
* If tuner I2C address is UNSET, then it will only set the device
* if the tuner supports the mode specified in the call.
* If the address is specified, the change will be applied only if
* tuner I2C address matches.
* The call can change the tuner number and the tuner mode.
*/
static
int
tuner_s_type_addr
(
struct
v4l2_subdev
*
sd
,
static
int
tuner_s_type_addr
(
struct
v4l2_subdev
*
sd
,
struct
tuner_setup
*
tun_setup
)
struct
tuner_setup
*
tun_setup
)
{
{
...
...
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