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
d544f2c3
Commit
d544f2c3
authored
Oct 24, 2007
by
Mauro Carvalho Chehab
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
V4L/DVB (12807): tm6000: Properly select xc2028 parameters
Signed-off-by:
Mauro Carvalho Chehab
<
mchehab@redhat.com
>
parent
7594304e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
2 deletions
+24
-2
drivers/staging/tm6000/tm6000-cards.c
drivers/staging/tm6000/tm6000-cards.c
+22
-0
drivers/staging/tm6000/tm6000-core.c
drivers/staging/tm6000/tm6000-core.c
+2
-2
No files found.
drivers/staging/tm6000/tm6000-cards.c
View file @
d544f2c3
...
...
@@ -29,6 +29,7 @@
#include "tm6000.h"
#include "tm6000-regs.h"
#include "tuner-xc2028.h"
#define TM6000_BOARD_UNKNOWN 0
#define TM5600_BOARD_GENERIC 1
...
...
@@ -156,6 +157,24 @@ struct usb_device_id tm6000_id_table [] = {
{
},
};
static
void
tm6000_config_tuner
(
struct
tm6000_core
*
dev
)
{
struct
v4l2_priv_tun_config
xc2028_cfg
;
struct
xc2028_ctrl
ctl
;
memset
(
&
ctl
,
0
,
sizeof
(
ctl
));
ctl
.
fname
=
"tm6000-xc3028.fw"
;
ctl
.
type
=
XC2028_FIRM_MTS
;
xc2028_cfg
.
tuner
=
TUNER_XC2028
;
xc2028_cfg
.
priv
=
&
ctl
;
printk
(
"Setting firmware parameters for tm6000
\n
"
);
tm6000_i2c_call_clients
(
dev
,
TUNER_SET_CONFIG
,
&
xc2028_cfg
);
}
static
int
tm6000_init_dev
(
struct
tm6000_core
*
dev
)
{
struct
v4l2_frequency
f
;
...
...
@@ -191,6 +210,9 @@ static int tm6000_init_dev(struct tm6000_core *dev)
/* Request tuner */
request_module
(
"tuner"
);
tm6000_config_tuner
(
dev
);
// norm=V4L2_STD_NTSC_M;
dev
->
norm
=
V4L2_STD_PAL_M
;
tm6000_i2c_call_clients
(
dev
,
VIDIOC_S_STD
,
&
dev
->
norm
);
...
...
drivers/staging/tm6000/tm6000-core.c
View file @
d544f2c3
...
...
@@ -375,9 +375,9 @@ int tm6000_init (struct tm6000_core *dev)
msleep
(
50
);
return
0
;
#endif
/* HACK */
return
0
;
}
#define tm6000_wrt(dev,req,reg,val, data...) \
...
...
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