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
Kirill Smelkov
linux
Commits
f14a678d
Commit
f14a678d
authored
Jul 04, 2014
by
Antti Palosaari
Committed by
Sasha Levin
Aug 27, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(cherry picked from commit )
Signed-off-by:
Sasha Levin
<
sasha.levin@oracle.com
>
parent
543121a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
drivers/media/dvb-frontends/tda10071.c
drivers/media/dvb-frontends/tda10071.c
+5
-1
No files found.
drivers/media/dvb-frontends/tda10071.c
View file @
f14a678d
...
...
@@ -650,6 +650,7 @@ static int tda10071_set_frontend(struct dvb_frontend *fe)
struct
dtv_frontend_properties
*
c
=
&
fe
->
dtv_property_cache
;
int
ret
,
i
;
u8
mode
,
rolloff
,
pilot
,
inversion
,
div
;
fe_modulation_t
modulation
;
dev_dbg
(
&
priv
->
i2c
->
dev
,
"%s: delivery_system=%d modulation=%d "
\
"frequency=%d symbol_rate=%d inversion=%d pilot=%d "
\
...
...
@@ -684,10 +685,13 @@ static int tda10071_set_frontend(struct dvb_frontend *fe)
switch
(
c
->
delivery_system
)
{
case
SYS_DVBS
:
modulation
=
QPSK
;
rolloff
=
0
;
pilot
=
2
;
break
;
case
SYS_DVBS2
:
modulation
=
c
->
modulation
;
switch
(
c
->
rolloff
)
{
case
ROLLOFF_20
:
rolloff
=
2
;
...
...
@@ -732,7 +736,7 @@ static int tda10071_set_frontend(struct dvb_frontend *fe)
for
(
i
=
0
,
mode
=
0xff
;
i
<
ARRAY_SIZE
(
TDA10071_MODCOD
);
i
++
)
{
if
(
c
->
delivery_system
==
TDA10071_MODCOD
[
i
].
delivery_system
&&
c
->
modulation
==
TDA10071_MODCOD
[
i
].
modulation
&&
modulation
==
TDA10071_MODCOD
[
i
].
modulation
&&
c
->
fec_inner
==
TDA10071_MODCOD
[
i
].
fec
)
{
mode
=
TDA10071_MODCOD
[
i
].
val
;
dev_dbg
(
&
priv
->
i2c
->
dev
,
"%s: mode found=%02x
\n
"
,
...
...
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