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
882876bf
Commit
882876bf
authored
Oct 29, 2007
by
Mauro Carvalho Chehab
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
V4L/DVB (6474): Add support for tuner-xc2028
Signed-off-by:
Mauro Carvalho Chehab
<
mchehab@infradead.org
>
parent
48aa336a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
drivers/media/video/em28xx/em28xx-cards.c
drivers/media/video/em28xx/em28xx-cards.c
+17
-0
No files found.
drivers/media/video/em28xx/em28xx-cards.c
View file @
882876bf
...
@@ -35,6 +35,7 @@
...
@@ -35,6 +35,7 @@
#include <media/v4l2-common.h>
#include <media/v4l2-common.h>
#include "em28xx.h"
#include "em28xx.h"
#include "tuner-xc2028.h"
struct
em28xx_board
em28xx_boards
[]
=
{
struct
em28xx_board
em28xx_boards
[]
=
{
[
EM2800_BOARD_UNKNOWN
]
=
{
[
EM2800_BOARD_UNKNOWN
]
=
{
...
@@ -362,6 +363,21 @@ void em28xx_pre_card_setup(struct em28xx *dev)
...
@@ -362,6 +363,21 @@ void em28xx_pre_card_setup(struct em28xx *dev)
}
}
}
}
static
void
em28xx_config_tuner
(
struct
em28xx
*
dev
)
{
struct
v4l2_priv_tun_config
xc2028_cfg
;
struct
xc2028_ctrl
ctl
;
memset
(
&
ctl
,
0
,
sizeof
(
ctl
));
ctl
.
fname
=
XC2028_DEFAULT_FIRMWARE
;
xc2028_cfg
.
tuner
=
TUNER_XC2028
;
xc2028_cfg
.
priv
=
&
ctl
;
em28xx_i2c_call_clients
(
dev
,
TUNER_SET_CONFIG
,
&
xc2028_cfg
);
}
void
em28xx_card_setup
(
struct
em28xx
*
dev
)
void
em28xx_card_setup
(
struct
em28xx
*
dev
)
{
{
/* request some modules */
/* request some modules */
...
@@ -394,6 +410,7 @@ void em28xx_card_setup(struct em28xx *dev)
...
@@ -394,6 +410,7 @@ void em28xx_card_setup(struct em28xx *dev)
}
}
}
}
em28xx_config_tuner
(
dev
);
}
}
MODULE_DEVICE_TABLE
(
usb
,
em28xx_id_table
);
MODULE_DEVICE_TABLE
(
usb
,
em28xx_id_table
);
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