Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
c8644057
cloud-kernel
项目概览
openanolis
/
cloud-kernel
大约 1 年 前同步成功
通知
158
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
c8644057
编写于
11月 25, 2008
作者:
M
Mauro Carvalho Chehab
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
V4L/DVB (9755): em28xx: cleanup: We need just one tuner callback
Signed-off-by:
N
Mauro Carvalho Chehab
<
mchehab@redhat.com
>
上级
1bee0184
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
8 addition
and
23 deletion
+8
-23
drivers/media/video/em28xx/em28xx-cards.c
drivers/media/video/em28xx/em28xx-cards.c
+7
-22
drivers/media/video/em28xx/em28xx.h
drivers/media/video/em28xx/em28xx.h
+1
-1
未找到文件。
drivers/media/video/em28xx/em28xx-cards.c
浏览文件 @
c8644057
...
...
@@ -1206,15 +1206,6 @@ static struct em28xx_reg_seq default_callback[] = {
{
-
1
,
-
1
,
-
1
,
-
1
},
};
/* Callback for EM2882 TERRATEC HYBRID XS */
static
struct
em28xx_reg_seq
em2882_terratec_hybrid_xs_digital
[]
=
{
{
EM28XX_R08_GPIO
,
0x2e
,
0xff
,
6
},
{
EM28XX_R08_GPIO
,
0x3e
,
~
EM_GPIO_4
,
6
},
{
EM2880_R04_GPO
,
0x04
,
0xff
,
10
},
{
EM2880_R04_GPO
,
0x0c
,
0xff
,
10
},
{
-
1
,
-
1
,
-
1
,
-
1
},
};
/* Pinnacle PCTV HD Mini (80e) GPIOs
0-5: not used
6: demod reset, active low
...
...
@@ -1253,10 +1244,7 @@ int em28xx_tuner_callback(void *ptr, int component, int command, int arg)
if
(
command
!=
XC2028_TUNER_RESET
)
return
0
;
if
(
dev
->
mode
==
EM28XX_ANALOG_MODE
)
rc
=
em28xx_gpio_set
(
dev
,
dev
->
tun_analog_gpio
);
else
rc
=
em28xx_gpio_set
(
dev
,
dev
->
tun_digital_gpio
);
rc
=
em28xx_gpio_set
(
dev
,
dev
->
tuner_gpio
);
return
rc
;
}
...
...
@@ -1350,16 +1338,12 @@ void em28xx_pre_card_setup(struct em28xx *dev)
/* Sets GPO/GPIO sequences for this device */
dev
->
analog_gpio
=
hauppauge_wintv_hvr_900_analog
;
dev
->
digital_gpio
=
hauppauge_wintv_hvr_900_digital
;
dev
->
tun_analog_gpio
=
default_callback
;
dev
->
tun_digital_gpio
=
default_callback
;
break
;
case
EM2882_BOARD_TERRATEC_HYBRID_XS
:
/* Sets GPO/GPIO sequences for this device */
dev
->
analog_gpio
=
hauppauge_wintv_hvr_900_analog
;
dev
->
digital_gpio
=
hauppauge_wintv_hvr_900_digital
;
dev
->
tun_analog_gpio
=
default_callback
;
dev
->
tun_digital_gpio
=
em2882_terratec_hybrid_xs_digital
;
break
;
case
EM2880_BOARD_TERRATEC_HYBRID_XS_FR
:
...
...
@@ -1376,8 +1360,6 @@ void em28xx_pre_card_setup(struct em28xx *dev)
/* Sets GPO/GPIO sequences for this device */
dev
->
analog_gpio
=
default_analog
;
dev
->
digital_gpio
=
default_digital
;
dev
->
tun_analog_gpio
=
default_callback
;
dev
->
tun_digital_gpio
=
default_callback
;
break
;
case
EM2880_BOARD_MSI_DIGIVOX_AD
:
...
...
@@ -1385,8 +1367,6 @@ void em28xx_pre_card_setup(struct em28xx *dev)
/* Sets GPO/GPIO sequences for this device */
dev
->
analog_gpio
=
em2880_msi_digivox_ad_analog
;
dev
->
digital_gpio
=
em2880_msi_digivox_ad_digital
;
dev
->
tun_analog_gpio
=
default_callback
;
dev
->
tun_digital_gpio
=
default_callback
;
break
;
case
EM2861_BOARD_PLEXTOR_PX_TV100U
:
...
...
@@ -1458,7 +1438,11 @@ void em28xx_pre_card_setup(struct em28xx *dev)
break
;
}
em28xx_gpio_set
(
dev
,
dev
->
tun_analog_gpio
);
/* 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_set_mode
(
dev
,
EM28XX_ANALOG_MODE
);
/* Unlock device */
...
...
@@ -1752,3 +1736,4 @@ void em28xx_card_setup(struct em28xx *dev)
em28xx_ir_init
(
dev
);
}
drivers/media/video/em28xx/em28xx.h
浏览文件 @
c8644057
...
...
@@ -432,7 +432,7 @@ struct em28xx {
struct
em28xx_reg_seq
*
analog_gpio
,
*
digital_gpio
;
/* GPIO sequences for tuner callbacks */
struct
em28xx_reg_seq
*
tun
_analog_gpio
,
*
tun_digital
_gpio
;
struct
em28xx_reg_seq
*
tun
er
_gpio
;
struct
list_head
devlist
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录