Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
867e835f
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
867e835f
编写于
4月 23, 2008
作者:
M
Mauro Carvalho Chehab
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
V4L/DVB (7728): tea5761: bugzilla #10462: tea5761 autodetection code were broken
Signed-off-by:
N
Mauro Carvalho Chehab
<
mchehab@infradead.org
>
上级
a589b665
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
13 addition
and
8 deletion
+13
-8
drivers/media/video/tea5761.c
drivers/media/video/tea5761.c
+10
-5
drivers/media/video/tuner-core.c
drivers/media/video/tuner-core.c
+3
-3
未找到文件。
drivers/media/video/tea5761.c
浏览文件 @
867e835f
...
@@ -247,14 +247,19 @@ int tea5761_autodetection(struct i2c_adapter* i2c_adap, u8 i2c_addr)
...
@@ -247,14 +247,19 @@ int tea5761_autodetection(struct i2c_adapter* i2c_adap, u8 i2c_addr)
if
(
16
!=
(
rc
=
tuner_i2c_xfer_recv
(
&
i2c
,
buffer
,
16
)))
{
if
(
16
!=
(
rc
=
tuner_i2c_xfer_recv
(
&
i2c
,
buffer
,
16
)))
{
printk
(
KERN_WARNING
"it is not a TEA5761. Received %i chars.
\n
"
,
rc
);
printk
(
KERN_WARNING
"it is not a TEA5761. Received %i chars.
\n
"
,
rc
);
return
EINVAL
;
return
-
EINVAL
;
}
}
if
(
!
((
buffer
[
13
]
!=
0x2b
)
||
(
buffer
[
14
]
!=
0x57
)
||
(
buffer
[
15
]
!=
0x061
)))
{
if
((
buffer
[
13
]
!=
0x2b
)
||
(
buffer
[
14
]
!=
0x57
)
||
(
buffer
[
15
]
!=
0x061
))
{
printk
(
KERN_WARNING
"Manufacturer ID= 0x%02x, Chip ID = %02x%02x. It is not a TEA5761
\n
"
,
buffer
[
13
],
buffer
[
14
],
buffer
[
15
]);
printk
(
KERN_WARNING
"Manufacturer ID= 0x%02x, Chip ID = %02x%02x."
return
EINVAL
;
" It is not a TEA5761
\n
"
,
buffer
[
13
],
buffer
[
14
],
buffer
[
15
]);
return
-
EINVAL
;
}
}
printk
(
KERN_WARNING
"TEA5761 detected.
\n
"
);
printk
(
KERN_WARNING
"tea5761: TEA%02x%02x detected. "
"Manufacturer ID= 0x%02x
\n
"
,
buffer
[
14
],
buffer
[
15
],
buffer
[
13
]);
return
0
;
return
0
;
}
}
...
...
drivers/media/video/tuner-core.c
浏览文件 @
867e835f
...
@@ -1111,8 +1111,8 @@ static int tuner_probe(struct i2c_client *client)
...
@@ -1111,8 +1111,8 @@ static int tuner_probe(struct i2c_client *client)
if
(
!
no_autodetect
)
{
if
(
!
no_autodetect
)
{
switch
(
client
->
addr
)
{
switch
(
client
->
addr
)
{
case
0x10
:
case
0x10
:
if
(
tea5761_autodetection
(
t
->
i2c
->
adapter
,
t
->
i2c
->
addr
)
if
(
tea5761_autodetection
(
t
->
i2c
->
adapter
,
!=
EINVAL
)
{
t
->
i2c
->
addr
)
>=
0
)
{
t
->
type
=
TUNER_TEA5761
;
t
->
type
=
TUNER_TEA5761
;
t
->
mode_mask
=
T_RADIO
;
t
->
mode_mask
=
T_RADIO
;
t
->
mode
=
T_STANDBY
;
t
->
mode
=
T_STANDBY
;
...
@@ -1124,7 +1124,7 @@ static int tuner_probe(struct i2c_client *client)
...
@@ -1124,7 +1124,7 @@ static int tuner_probe(struct i2c_client *client)
goto
register_client
;
goto
register_client
;
}
}
break
;
return
-
ENODEV
;
case
0x42
:
case
0x42
:
case
0x43
:
case
0x43
:
case
0x4a
:
case
0x4a
:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录