Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
017ab4b1
K
Kernel
项目概览
openeuler
/
Kernel
1 年多 前同步成功
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
017ab4b1
编写于
11月 27, 2008
作者:
M
Mauro Carvalho Chehab
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
V4L/DVB (9765): em28xx: move tuner gpio's to the cards struct
Signed-off-by:
N
Mauro Carvalho Chehab
<
mchehab@redhat.com
>
上级
2fe3e2ee
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
28 addition
and
10 deletion
+28
-10
drivers/media/video/em28xx/em28xx-cards.c
drivers/media/video/em28xx/em28xx-cards.c
+26
-7
drivers/media/video/em28xx/em28xx.h
drivers/media/video/em28xx/em28xx.h
+2
-3
未找到文件。
drivers/media/video/em28xx/em28xx-cards.c
浏览文件 @
017ab4b1
...
...
@@ -94,7 +94,7 @@ static struct em28xx_reg_seq em2880_msi_digivox_ad_analog[] = {
Analog - No input analog */
/* Callback for the most boards */
static
struct
em28xx_reg_seq
default_
callback
[]
=
{
static
struct
em28xx_reg_seq
default_
tuner_gpio
[]
=
{
{
EM28XX_R08_GPIO
,
EM_GPIO_4
,
EM_GPIO_4
,
10
},
{
EM28XX_R08_GPIO
,
0
,
EM_GPIO_4
,
10
},
{
EM28XX_R08_GPIO
,
EM_GPIO_4
,
EM_GPIO_4
,
10
},
...
...
@@ -460,7 +460,9 @@ struct em28xx_board em28xx_boards[] = {
.
name
=
"Terratec Cinergy A Hybrid XS"
,
.
valid
=
EM28XX_BOARD_NOT_VALIDATED
,
.
tuner_type
=
TUNER_XC2028
,
.
tuner_gpio
=
default_tuner_gpio
,
.
decoder
=
EM28XX_TVP5150
,
.
input
=
{
{
.
type
=
EM28XX_VMUX_TELEVISION
,
.
vmux
=
TVP5150_COMPOSITE0
,
...
...
@@ -482,6 +484,7 @@ struct em28xx_board em28xx_boards[] = {
.
name
=
"KWorld PVRTV 300U"
,
.
valid
=
EM28XX_BOARD_NOT_VALIDATED
,
.
tuner_type
=
TUNER_XC2028
,
.
tuner_gpio
=
default_tuner_gpio
,
.
decoder
=
EM28XX_TVP5150
,
.
input
=
{
{
.
type
=
EM28XX_VMUX_TELEVISION
,
...
...
@@ -542,6 +545,7 @@ struct em28xx_board em28xx_boards[] = {
.
name
=
"Terratec Cinergy T XS"
,
.
valid
=
EM28XX_BOARD_NOT_VALIDATED
,
.
tuner_type
=
TUNER_XC2028
,
.
tuner_gpio
=
default_tuner_gpio
,
},
[
EM2870_BOARD_TERRATEC_XS_MT2060
]
=
{
.
name
=
"Terratec Cinergy T XS (MT2060)"
,
...
...
@@ -552,6 +556,7 @@ struct em28xx_board em28xx_boards[] = {
.
name
=
"Kworld 350 U DVB-T"
,
.
valid
=
EM28XX_BOARD_NOT_VALIDATED
,
.
tuner_type
=
TUNER_XC2028
,
.
tuner_gpio
=
default_tuner_gpio
,
},
[
EM2870_BOARD_KWORLD_355U
]
=
{
.
name
=
"Kworld 355 U DVB-T"
,
...
...
@@ -576,6 +581,7 @@ struct em28xx_board em28xx_boards[] = {
.
valid
=
EM28XX_BOARD_NOT_VALIDATED
,
.
has_msp34xx
=
1
,
.
tuner_type
=
TUNER_XC2028
,
.
tuner_gpio
=
default_tuner_gpio
,
.
decoder
=
EM28XX_TVP5150
,
.
input
=
{
{
.
type
=
EM28XX_VMUX_TELEVISION
,
...
...
@@ -598,6 +604,7 @@ struct em28xx_board em28xx_boards[] = {
.
name
=
"Hauppauge WinTV HVR 900"
,
.
tda9887_conf
=
TDA9887_PRESENT
,
.
tuner_type
=
TUNER_XC2028
,
.
tuner_gpio
=
default_tuner_gpio
,
.
mts_firmware
=
1
,
.
has_dvb
=
1
,
.
dvb_gpio
=
hauppauge_wintv_hvr_900_digital
,
...
...
@@ -623,6 +630,7 @@ struct em28xx_board em28xx_boards[] = {
.
name
=
"Hauppauge WinTV HVR 900 (R2)"
,
.
tda9887_conf
=
TDA9887_PRESENT
,
.
tuner_type
=
TUNER_XC2028
,
.
tuner_gpio
=
default_tuner_gpio
,
.
mts_firmware
=
1
,
.
decoder
=
EM28XX_TVP5150
,
.
input
=
{
{
...
...
@@ -645,6 +653,7 @@ struct em28xx_board em28xx_boards[] = {
[
EM2883_BOARD_HAUPPAUGE_WINTV_HVR_950
]
=
{
.
name
=
"Hauppauge WinTV HVR 950"
,
.
tuner_type
=
TUNER_XC2028
,
.
tuner_gpio
=
default_tuner_gpio
,
.
mts_firmware
=
1
,
.
has_dvb
=
1
,
.
dvb_gpio
=
hauppauge_wintv_hvr_900_digital
,
...
...
@@ -670,6 +679,7 @@ struct em28xx_board em28xx_boards[] = {
[
EM2880_BOARD_PINNACLE_PCTV_HD_PRO
]
=
{
.
name
=
"Pinnacle PCTV HD Pro Stick"
,
.
tuner_type
=
TUNER_XC2028
,
.
tuner_gpio
=
default_tuner_gpio
,
.
mts_firmware
=
1
,
.
has_dvb
=
1
,
.
dvb_gpio
=
hauppauge_wintv_hvr_900_digital
,
...
...
@@ -695,6 +705,7 @@ struct em28xx_board em28xx_boards[] = {
[
EM2880_BOARD_AMD_ATI_TV_WONDER_HD_600
]
=
{
.
name
=
"AMD ATI TV Wonder HD 600"
,
.
tuner_type
=
TUNER_XC2028
,
.
tuner_gpio
=
default_tuner_gpio
,
.
mts_firmware
=
1
,
.
has_dvb
=
1
,
.
dvb_gpio
=
hauppauge_wintv_hvr_900_digital
,
...
...
@@ -720,6 +731,7 @@ struct em28xx_board em28xx_boards[] = {
[
EM2880_BOARD_TERRATEC_HYBRID_XS
]
=
{
.
name
=
"Terratec Hybrid XS"
,
.
tuner_type
=
TUNER_XC2028
,
.
tuner_gpio
=
default_tuner_gpio
,
.
decoder
=
EM28XX_TVP5150
,
.
has_dvb
=
1
,
.
dvb_gpio
=
default_analog
,
...
...
@@ -746,6 +758,7 @@ struct em28xx_board em28xx_boards[] = {
[
EM2880_BOARD_TERRATEC_PRODIGY_XS
]
=
{
.
name
=
"Terratec Prodigy XS"
,
.
tuner_type
=
TUNER_XC2028
,
.
tuner_gpio
=
default_tuner_gpio
,
.
decoder
=
EM28XX_TVP5150
,
.
input
=
{
{
.
type
=
EM28XX_VMUX_TELEVISION
,
...
...
@@ -932,6 +945,7 @@ struct em28xx_board em28xx_boards[] = {
.
name
=
"MSI DigiVox A/D"
,
.
valid
=
EM28XX_BOARD_NOT_VALIDATED
,
.
tuner_type
=
TUNER_XC2028
,
.
tuner_gpio
=
default_tuner_gpio
,
.
decoder
=
EM28XX_TVP5150
,
.
input
=
{
{
.
type
=
EM28XX_VMUX_TELEVISION
,
...
...
@@ -954,6 +968,7 @@ struct em28xx_board em28xx_boards[] = {
.
name
=
"MSI DigiVox A/D II"
,
.
valid
=
EM28XX_BOARD_NOT_VALIDATED
,
.
tuner_type
=
TUNER_XC2028
,
.
tuner_gpio
=
default_tuner_gpio
,
.
decoder
=
EM28XX_TVP5150
,
.
input
=
{
{
.
type
=
EM28XX_VMUX_TELEVISION
,
...
...
@@ -976,6 +991,7 @@ struct em28xx_board em28xx_boards[] = {
.
name
=
"KWorld DVB-T 305U"
,
.
valid
=
EM28XX_BOARD_NOT_VALIDATED
,
.
tuner_type
=
TUNER_XC2028
,
.
tuner_gpio
=
default_tuner_gpio
,
.
decoder
=
EM28XX_TVP5150
,
.
input
=
{
{
.
type
=
EM28XX_VMUX_TELEVISION
,
...
...
@@ -994,6 +1010,7 @@ struct em28xx_board em28xx_boards[] = {
[
EM2880_BOARD_KWORLD_DVB_310U
]
=
{
.
name
=
"KWorld DVB-T 310U"
,
.
tuner_type
=
TUNER_XC2028
,
.
tuner_gpio
=
default_tuner_gpio
,
.
has_dvb
=
1
,
.
dvb_gpio
=
default_digital
,
.
mts_firmware
=
1
,
...
...
@@ -1019,6 +1036,7 @@ struct em28xx_board em28xx_boards[] = {
.
name
=
"DNT DA2 Hybrid"
,
.
valid
=
EM28XX_BOARD_NOT_VALIDATED
,
.
tuner_type
=
TUNER_XC2028
,
.
tuner_gpio
=
default_tuner_gpio
,
.
decoder
=
EM28XX_TVP5150
,
.
input
=
{
{
.
type
=
EM28XX_VMUX_TELEVISION
,
...
...
@@ -1041,6 +1059,7 @@ struct em28xx_board em28xx_boards[] = {
.
name
=
"Pinnacle Hybrid Pro"
,
.
valid
=
EM28XX_BOARD_NOT_VALIDATED
,
.
tuner_type
=
TUNER_XC2028
,
.
tuner_gpio
=
default_tuner_gpio
,
.
decoder
=
EM28XX_TVP5150
,
.
input
=
{
{
.
type
=
EM28XX_VMUX_TELEVISION
,
...
...
@@ -1063,6 +1082,7 @@ struct em28xx_board em28xx_boards[] = {
.
name
=
"Pinnacle Hybrid Pro (2)"
,
.
valid
=
EM28XX_BOARD_NOT_VALIDATED
,
.
tuner_type
=
TUNER_XC2028
,
.
tuner_gpio
=
default_tuner_gpio
,
.
mts_firmware
=
1
,
.
decoder
=
EM28XX_TVP5150
,
.
input
=
{
{
...
...
@@ -1086,6 +1106,7 @@ struct em28xx_board em28xx_boards[] = {
.
name
=
"Kworld VS-DVB-T 323UR"
,
.
valid
=
EM28XX_BOARD_NOT_VALIDATED
,
.
tuner_type
=
TUNER_XC2028
,
.
tuner_gpio
=
default_tuner_gpio
,
.
decoder
=
EM28XX_TVP5150
,
.
input
=
{
{
.
type
=
EM28XX_VMUX_TELEVISION
,
...
...
@@ -1105,6 +1126,7 @@ struct em28xx_board em28xx_boards[] = {
.
name
=
"Terratec Hybrid XS (em2882)"
,
.
valid
=
EM28XX_BOARD_NOT_VALIDATED
,
.
tuner_type
=
TUNER_XC2028
,
.
tuner_gpio
=
default_tuner_gpio
,
.
decoder
=
EM28XX_TVP5150
,
.
input
=
{
{
.
type
=
EM28XX_VMUX_TELEVISION
,
...
...
@@ -1127,6 +1149,7 @@ struct em28xx_board em28xx_boards[] = {
.
name
=
"Kworld PlusTV HD Hybrid 330"
,
.
valid
=
EM28XX_BOARD_NOT_VALIDATED
,
.
tuner_type
=
TUNER_XC2028
,
.
tuner_gpio
=
default_tuner_gpio
,
.
decoder
=
EM28XX_TVP5150
,
.
input
=
{
{
.
type
=
EM28XX_VMUX_TELEVISION
,
...
...
@@ -1311,7 +1334,7 @@ int em28xx_tuner_callback(void *ptr, int component, int command, int arg)
if
(
command
!=
XC2028_TUNER_RESET
)
return
0
;
rc
=
em28xx_gpio_set
(
dev
,
dev
->
tuner_gpio
);
rc
=
em28xx_gpio_set
(
dev
,
dev
->
board
.
tuner_gpio
);
return
rc
;
}
...
...
@@ -1448,11 +1471,7 @@ void em28xx_pre_card_setup(struct em28xx *dev)
break
;
}
/* Sets the default callback. Used only for certain tuners */
if
(
!
dev
->
tuner_gpio
)
dev
->
tuner_gpio
=
default_callback
;
em28xx_gpio_set
(
dev
,
dev
->
tuner_gpio
);
em28xx_gpio_set
(
dev
,
dev
->
board
.
tuner_gpio
);
em28xx_set_mode
(
dev
,
EM28XX_ANALOG_MODE
);
/* Unlock device */
...
...
drivers/media/video/em28xx/em28xx.h
浏览文件 @
017ab4b1
...
...
@@ -335,8 +335,10 @@ struct em28xx_board {
/* i2c flags */
unsigned
int
tda9887_conf
;
/* GPIO sequences */
struct
em28xx_reg_seq
*
dvb_gpio
;
struct
em28xx_reg_seq
*
suspend_gpio
;
struct
em28xx_reg_seq
*
tuner_gpio
;
unsigned
int
is_em2800
:
1
;
unsigned
int
has_msp34xx
:
1
;
...
...
@@ -432,9 +434,6 @@ struct em28xx {
/* Some older em28xx chips needs a waiting time after writing */
unsigned
int
wait_after_write
;
/* GPIO sequences for tuner callbacks */
struct
em28xx_reg_seq
*
tuner_gpio
;
struct
list_head
devlist
;
u32
i2s_speed
;
/* I2S speed for audio digital stream */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录