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
c450e50e
Commit
c450e50e
authored
Apr 22, 2008
by
Mauro Carvalho Chehab
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
V4L/DVB (7263): Some cleanups at cx88 callback methods
Signed-off-by:
Mauro Carvalho Chehab
<
mchehab@infradead.org
>
parent
bc36a686
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
38 deletions
+19
-38
drivers/media/video/cx88/cx88-cards.c
drivers/media/video/cx88/cx88-cards.c
+19
-38
No files found.
drivers/media/video/cx88/cx88-cards.c
View file @
c450e50e
...
@@ -2062,26 +2062,15 @@ static int cx88_xc3028_geniatech_tuner_callback(void *priv, int command, int mod
...
@@ -2062,26 +2062,15 @@ static int cx88_xc3028_geniatech_tuner_callback(void *priv, int command, int mod
case
XC2028_TUNER_RESET
:
case
XC2028_TUNER_RESET
:
switch
(
INPUT
(
core
->
input
).
type
)
{
switch
(
INPUT
(
core
->
input
).
type
)
{
case
CX88_RADIO
:
case
CX88_RADIO
:
cx_write
(
MO_GP1_IO
,
0x101010
);
break
;
mdelay
(
50
);
cx_write
(
MO_GP1_IO
,
0x101000
);
mdelay
(
50
);
cx_write
(
MO_GP1_IO
,
0x101010
);
mdelay
(
50
);
return
0
;
case
CX88_VMUX_DVB
:
case
CX88_VMUX_DVB
:
cx_write
(
MO_GP1_IO
,
0x030302
);
cx_write
(
MO_GP1_IO
,
0x030302
);
mdelay
(
50
);
mdelay
(
50
);
cx_write
(
MO_GP1_IO
,
0x101010
);
break
;
mdelay
(
50
);
cx_write
(
MO_GP1_IO
,
0x101000
);
mdelay
(
50
);
cx_write
(
MO_GP1_IO
,
0x101010
);
mdelay
(
50
);
return
0
;
default:
default:
cx_write
(
MO_GP1_IO
,
0x030301
);
cx_write
(
MO_GP1_IO
,
0x030301
);
mdelay
(
50
);
mdelay
(
50
);
}
cx_write
(
MO_GP1_IO
,
0x101010
);
cx_write
(
MO_GP1_IO
,
0x101010
);
mdelay
(
50
);
mdelay
(
50
);
cx_write
(
MO_GP1_IO
,
0x101000
);
cx_write
(
MO_GP1_IO
,
0x101000
);
...
@@ -2090,7 +2079,6 @@ static int cx88_xc3028_geniatech_tuner_callback(void *priv, int command, int mod
...
@@ -2090,7 +2079,6 @@ static int cx88_xc3028_geniatech_tuner_callback(void *priv, int command, int mod
mdelay
(
50
);
mdelay
(
50
);
return
0
;
return
0
;
}
}
}
return
-
EINVAL
;
return
-
EINVAL
;
}
}
...
@@ -2145,7 +2133,6 @@ static int cx88_xc2028_tuner_callback(void *priv, int command, int arg)
...
@@ -2145,7 +2133,6 @@ static int cx88_xc2028_tuner_callback(void *priv, int command, int arg)
switch
(
command
)
{
switch
(
command
)
{
case
XC2028_TUNER_RESET
:
case
XC2028_TUNER_RESET
:
{
switch
(
INPUT
(
core
->
input
).
type
)
{
switch
(
INPUT
(
core
->
input
).
type
)
{
case
CX88_RADIO
:
case
CX88_RADIO
:
printk
(
KERN_INFO
"setting GPIO to radio!
\n
"
);
printk
(
KERN_INFO
"setting GPIO to radio!
\n
"
);
...
@@ -2153,16 +2140,12 @@ static int cx88_xc2028_tuner_callback(void *priv, int command, int arg)
...
@@ -2153,16 +2140,12 @@ static int cx88_xc2028_tuner_callback(void *priv, int command, int arg)
mdelay
(
250
);
mdelay
(
250
);
cx_write
(
MO_GP2_IO
,
0xff
);
cx_write
(
MO_GP2_IO
,
0xff
);
mdelay
(
250
);
mdelay
(
250
);
cx_write
(
MO_GP1_IO
,
0x101010
);
break
;
mdelay
(
250
);
cx_write
(
MO_GP1_IO
,
0x101000
);
mdelay
(
250
);
cx_write
(
MO_GP1_IO
,
0x101010
);
mdelay
(
250
);
return
0
;
case
CX88_VMUX_DVB
:
/* Digital TV*/
case
CX88_VMUX_DVB
:
/* Digital TV*/
default:
/* Analog TV */
default:
/* Analog TV */
printk
(
KERN_INFO
"setting GPIO to TV!
\n
"
);
printk
(
KERN_INFO
"setting GPIO to TV!
\n
"
);
break
;
}
cx_write
(
MO_GP1_IO
,
0x101010
);
cx_write
(
MO_GP1_IO
,
0x101010
);
mdelay
(
250
);
mdelay
(
250
);
cx_write
(
MO_GP1_IO
,
0x101000
);
cx_write
(
MO_GP1_IO
,
0x101000
);
...
@@ -2171,8 +2154,6 @@ static int cx88_xc2028_tuner_callback(void *priv, int command, int arg)
...
@@ -2171,8 +2154,6 @@ static int cx88_xc2028_tuner_callback(void *priv, int command, int arg)
mdelay
(
250
);
mdelay
(
250
);
return
0
;
return
0
;
}
}
}
}
return
-
EINVAL
;
return
-
EINVAL
;
}
}
...
...
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