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
fad11dbc
Commit
fad11dbc
authored
Jul 21, 2011
by
Mauro Carvalho Chehab
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[media] mt2063: Simplify mt2063_setTune logic
Signed-off-by:
Mauro Carvalho Chehab
<
mchehab@redhat.com
>
parent
31e67fae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
34 deletions
+3
-34
drivers/media/common/tuners/mt2063.c
drivers/media/common/tuners/mt2063.c
+3
-34
No files found.
drivers/media/common/tuners/mt2063.c
View file @
fad11dbc
...
...
@@ -323,34 +323,6 @@ static u32 MT2063_ClearPowerMaskBits(struct mt2063_state *state, enum MT2063_Mas
/*****************/
/* From drivers/media/common/tuners/mt2063_cfg.h */
unsigned
int
mt2063_setTune
(
struct
dvb_frontend
*
fe
,
u32
f_in
,
u32
bw_in
,
enum
MTTune_atv_standard
tv_type
)
{
struct
dvb_frontend_ops
*
frontend_ops
=
NULL
;
struct
dvb_tuner_ops
*
tuner_ops
=
NULL
;
struct
tuner_state
t_state
;
struct
mt2063_state
*
state
=
fe
->
tuner_priv
;
int
err
=
0
;
t_state
.
frequency
=
f_in
;
t_state
.
bandwidth
=
bw_in
;
state
->
tv_type
=
tv_type
;
if
(
&
fe
->
ops
)
frontend_ops
=
&
fe
->
ops
;
if
(
&
frontend_ops
->
tuner_ops
)
tuner_ops
=
&
frontend_ops
->
tuner_ops
;
if
(
tuner_ops
->
set_state
)
{
if
((
err
=
tuner_ops
->
set_state
(
fe
,
DVBFE_TUNER_FREQUENCY
,
&
t_state
))
<
0
)
{
printk
(
"%s: Invalid parameter
\n
"
,
__func__
);
return
err
;
}
}
return
err
;
}
unsigned
int
tuner_MT2063_SoftwareShutdown
(
struct
dvb_frontend
*
fe
)
{
...
...
@@ -2862,19 +2834,16 @@ static u32 MT2063_Tune(struct mt2063_state *state, u32 f_in)
return
status
;
}
static
u32
MT_Tune_atv
(
void
*
h
,
u32
f_in
,
u32
bw_in
,
enum
MTTune_atv_standard
tv_type
)
unsigned
int
mt2063_setTune
(
void
*
h
,
u32
f_in
,
u32
bw_in
,
enum
MTTune_atv_standard
tv_type
)
{
u32
status
=
0
;
s32
pict_car
=
0
;
s32
pict2chanb_vsb
=
0
;
s32
pict2chanb_snd
=
0
;
s32
pict2snd1
=
0
;
s32
pict2snd2
=
0
;
s32
ch_bw
=
0
;
s32
if_mid
=
0
;
s32
rcvr_mode
=
0
;
u32
mode_get
=
0
;
...
...
@@ -3290,7 +3259,7 @@ static int mt2063_set_state(struct dvb_frontend *fe,
//set frequency
status
=
MT_Tune_atv
(
state
,
mt2063_setTune
(
state
,
tunstate
->
frequency
,
tunstate
->
bandwidth
,
state
->
tv_type
);
...
...
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