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
b0166ab3
Commit
b0166ab3
authored
Apr 24, 2008
by
Mauro Carvalho Chehab
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
V4L/DVB (7731): tuner-xc2028: fix signal strength calculus
Signed-off-by:
Mauro Carvalho Chehab
<
mchehab@infradead.org
>
parent
c21f1e2e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
drivers/media/video/tuner-xc2028.c
drivers/media/video/tuner-xc2028.c
+10
-3
No files found.
drivers/media/video/tuner-xc2028.c
View file @
b0166ab3
...
...
@@ -844,21 +844,28 @@ static int xc2028_signal(struct dvb_frontend *fe, u16 *strength)
/* Sync Lock Indicator */
rc
=
xc2028_get_reg
(
priv
,
0x0002
,
&
frq_lock
);
if
(
rc
<
0
||
frq_lock
==
0
)
if
(
rc
<
0
)
goto
ret
;
/* Frequency is locked. Return signal quality */
/* Frequency is locked */
if
(
frq_lock
==
1
)
signal
=
32768
;
/* Get SNR of the video signal */
rc
=
xc2028_get_reg
(
priv
,
0x0040
,
&
signal
);
if
(
rc
<
0
)
signal
=
-
frq_lock
;
goto
ret
;
/* Use both frq_lock and signal to generate the result */
signal
=
signal
||
((
signal
&
0x07
)
<<
12
);
ret:
mutex_unlock
(
&
priv
->
lock
);
*
strength
=
signal
;
tuner_dbg
(
"signal strength is %d
\n
"
,
signal
);
return
rc
;
}
...
...
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