Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
91651440
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看板
提交
91651440
编写于
1月 21, 2012
作者:
M
Mauro Carvalho Chehab
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[media] az6007: Fix IR handling
Signed-off-by:
N
Mauro Carvalho Chehab
<
mchehab@redhat.com
>
上级
711e1398
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
13 addition
and
18 deletion
+13
-18
drivers/media/dvb/dvb-usb/az6007.c
drivers/media/dvb/dvb-usb/az6007.c
+13
-18
未找到文件。
drivers/media/dvb/dvb-usb/az6007.c
浏览文件 @
91651440
...
...
@@ -204,13 +204,7 @@ static int az6007_rc_query(struct dvb_usb_device *d, u32 * event, int *state)
struct
az6007_device_state
*
st
=
d
->
priv
;
struct
rc_map_table
*
keymap
=
d
->
props
.
rc
.
legacy
.
rc_map_table
;
int
i
;
/*
* FIXME: remove the following return to enabled remote querying
* The driver likely needs proper locking to avoid troubles between
* this call and other concurrent calls.
*/
return
0
;
unsigned
code
=
0
;
az6007_read
(
d
,
AZ6007_READ_IR
,
0
,
0
,
st
->
data
,
10
);
...
...
@@ -219,20 +213,21 @@ static int az6007_rc_query(struct dvb_usb_device *d, u32 * event, int *state)
return
0
;
}
/*
* FIXME: need to make something useful with the keycodes and to
* convert it to the non-legacy mode. Yet, it is producing some
* debug info already, like:
* 88 04 eb 02 fd ff 00 82 63 82 (terratec IR)
* 88 04 eb 03 fc 00 00 82 63 82 (terratec IR)
* 88 80 7e 0d f2 ff 00 82 63 82 (another NEC-extended based IR)
* I suspect that the IR data is at bytes 1 to 4, and byte 5 is parity
*/
deb_rc
(
"remote query key: %x %d
\n
"
,
st
->
data
[
1
],
st
->
data
[
1
]);
if
((
st
->
data
[
1
]
^
st
->
data
[
2
])
==
0xff
)
code
=
st
->
data
[
1
];
else
code
=
st
->
data
[
1
]
<<
8
|
st
->
data
[
2
];
if
((
st
->
data
[
3
]
^
st
->
data
[
4
])
==
0xff
)
code
=
code
<<
8
|
st
->
data
[
3
];
else
code
=
code
<<
16
|
st
->
data
[
3
]
<<
8
|
st
->
data
[
4
];
printk
(
"remote query key: %04x
\n
"
,
code
);
print_hex_dump_bytes
(
"Remote: "
,
DUMP_PREFIX_NONE
,
st
->
data
,
10
);
for
(
i
=
0
;
i
<
d
->
props
.
rc
.
legacy
.
rc_map_size
;
i
++
)
{
if
(
rc5_custom
(
&
keymap
[
i
])
==
st
->
data
[
1
]
)
{
if
(
rc5_custom
(
&
keymap
[
i
])
==
code
)
{
*
event
=
keymap
[
i
].
keycode
;
*
state
=
REMOTE_KEY_PRESSED
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录