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
48aa336a
Commit
48aa336a
authored
Oct 29, 2007
by
Mauro Carvalho Chehab
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
V4L/DVB (6473): Prevents double tuner registering
Signed-off-by:
Mauro Carvalho Chehab
<
mchehab@infradead.org
>
parent
690c544c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
drivers/media/video/tuner-core.c
drivers/media/video/tuner-core.c
+11
-2
No files found.
drivers/media/video/tuner-core.c
View file @
48aa336a
...
...
@@ -279,8 +279,7 @@ static void set_type(struct i2c_client *c, unsigned int type,
t
->
tuner_callback
=
tuner_callback
;
}
/* This code detects calls by card attach_inform */
if
(
NULL
==
t
->
i2c
.
dev
.
driver
)
{
if
(
t
->
mode
==
T_UNINITIALIZED
)
{
tuner_dbg
(
"tuner 0x%02x: called during i2c_client register by adapter's attach_inform
\n
"
,
c
->
addr
);
return
;
...
...
@@ -684,6 +683,16 @@ static int tuner_attach(struct i2c_adapter *adap, int addr, int kind)
/* Should be just before return */
register_client:
tuner_info
(
"chip found @ 0x%x (%s)
\n
"
,
addr
<<
1
,
adap
->
name
);
/* Sets a default mode */
if
(
t
->
mode_mask
&
T_ANALOG_TV
)
{
t
->
mode
=
T_ANALOG_TV
;
}
else
if
(
t
->
mode_mask
&
T_RADIO
)
{
t
->
mode
=
T_RADIO
;
}
else
{
t
->
mode
=
T_DIGITAL_TV
;
}
i2c_attach_client
(
client
);
set_type
(
client
,
t
->
type
,
t
->
mode_mask
,
t
->
config
,
t
->
tuner_callback
);
return
0
;
...
...
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