Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
1bad429e
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
1bad429e
编写于
12月 05, 2009
作者:
M
Mauro Carvalho Chehab
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
V4L/DVB (13545): em28xx: properly select IR protocol based on the IR table
Signed-off-by:
N
Mauro Carvalho Chehab
<
mchehab@redhat.com
>
上级
4039ff28
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
16 addition
and
5 deletion
+16
-5
drivers/media/video/em28xx/em28xx-core.c
drivers/media/video/em28xx/em28xx-core.c
+1
-1
drivers/media/video/em28xx/em28xx-input.c
drivers/media/video/em28xx/em28xx-input.c
+13
-4
drivers/media/video/em28xx/em28xx.h
drivers/media/video/em28xx/em28xx.h
+2
-0
未找到文件。
drivers/media/video/em28xx/em28xx-core.c
浏览文件 @
1bad429e
...
@@ -216,7 +216,7 @@ int em28xx_write_reg(struct em28xx *dev, u16 reg, u8 val)
...
@@ -216,7 +216,7 @@ int em28xx_write_reg(struct em28xx *dev, u16 reg, u8 val)
* sets only some bits (specified by bitmask) of a register, by first reading
* sets only some bits (specified by bitmask) of a register, by first reading
* the actual value
* the actual value
*/
*/
static
int
em28xx_write_reg_bits
(
struct
em28xx
*
dev
,
u16
reg
,
u8
val
,
int
em28xx_write_reg_bits
(
struct
em28xx
*
dev
,
u16
reg
,
u8
val
,
u8
bitmask
)
u8
bitmask
)
{
{
int
oldval
;
int
oldval
;
...
...
drivers/media/video/em28xx/em28xx-input.c
浏览文件 @
1bad429e
...
@@ -337,19 +337,28 @@ int em28xx_ir_init(struct em28xx *dev)
...
@@ -337,19 +337,28 @@ int em28xx_ir_init(struct em28xx *dev)
goto
err_out_free
;
goto
err_out_free
;
ir
->
input
=
input_dev
;
ir
->
input
=
input_dev
;
ir_config
=
EM2874_IR_RC5
;
/* Adjust xclk based o IR table for RC5/NEC tables */
if
(
dev
->
board
.
ir_codes
->
ir_type
==
IR_TYPE_RC5
)
{
dev
->
board
.
xclk
|=
EM28XX_XCLK_IR_RC5_MODE
;
ir
->
full_code
=
1
;
}
else
if
(
dev
->
board
.
ir_codes
->
ir_type
==
IR_TYPE_NEC
)
{
dev
->
board
.
xclk
&=
~
EM28XX_XCLK_IR_RC5_MODE
;
ir_config
=
EM2874_IR_NEC
;
ir
->
full_code
=
1
;
}
em28xx_write_reg_bits
(
dev
,
EM28XX_R0F_XCLK
,
dev
->
board
.
xclk
,
EM28XX_XCLK_IR_RC5_MODE
);
/* Setup the proper handler based on the chip */
/* Setup the proper handler based on the chip */
switch
(
dev
->
chip_id
)
{
switch
(
dev
->
chip_id
)
{
case
CHIP_ID_EM2860
:
case
CHIP_ID_EM2860
:
case
CHIP_ID_EM2883
:
case
CHIP_ID_EM2883
:
if
(
dev
->
model
==
EM2883_BOARD_HAUPPAUGE_WINTV_HVR_950
)
ir
->
full_code
=
1
;
ir
->
get_key
=
default_polling_getkey
;
ir
->
get_key
=
default_polling_getkey
;
break
;
break
;
case
CHIP_ID_EM2874
:
case
CHIP_ID_EM2874
:
ir
->
get_key
=
em2874_polling_getkey
;
ir
->
get_key
=
em2874_polling_getkey
;
/* For now we only support RC5, so enable it */
ir_config
=
EM2874_IR_RC5
;
em28xx_write_regs
(
dev
,
EM2874_R50_IR_CONFIG
,
&
ir_config
,
1
);
em28xx_write_regs
(
dev
,
EM2874_R50_IR_CONFIG
,
&
ir_config
,
1
);
break
;
break
;
default:
default:
...
...
drivers/media/video/em28xx/em28xx.h
浏览文件 @
1bad429e
...
@@ -643,6 +643,8 @@ int em28xx_write_regs_req(struct em28xx *dev, u8 req, u16 reg, char *buf,
...
@@ -643,6 +643,8 @@ int em28xx_write_regs_req(struct em28xx *dev, u8 req, u16 reg, char *buf,
int
len
);
int
len
);
int
em28xx_write_regs
(
struct
em28xx
*
dev
,
u16
reg
,
char
*
buf
,
int
len
);
int
em28xx_write_regs
(
struct
em28xx
*
dev
,
u16
reg
,
char
*
buf
,
int
len
);
int
em28xx_write_reg
(
struct
em28xx
*
dev
,
u16
reg
,
u8
val
);
int
em28xx_write_reg
(
struct
em28xx
*
dev
,
u16
reg
,
u8
val
);
int
em28xx_write_reg_bits
(
struct
em28xx
*
dev
,
u16
reg
,
u8
val
,
u8
bitmask
);
int
em28xx_read_ac97
(
struct
em28xx
*
dev
,
u8
reg
);
int
em28xx_read_ac97
(
struct
em28xx
*
dev
,
u8
reg
);
int
em28xx_write_ac97
(
struct
em28xx
*
dev
,
u8
reg
,
u16
val
);
int
em28xx_write_ac97
(
struct
em28xx
*
dev
,
u8
reg
,
u16
val
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录