Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
d2ba055d
K
Kernel
项目概览
openeuler
/
Kernel
大约 1 年 前同步成功
通知
7
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看板
提交
d2ba055d
编写于
11月 04, 2007
作者:
M
Mauro Carvalho Chehab
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
V4L/DVB (6546): Add comments for the hint methods
Signed-off-by:
N
Mauro Carvalho Chehab
<
mchehab@infradead.org
>
上级
fad7b958
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
24 addition
and
5 deletion
+24
-5
drivers/media/video/em28xx/em28xx-cards.c
drivers/media/video/em28xx/em28xx-cards.c
+24
-5
未找到文件。
drivers/media/video/em28xx/em28xx-cards.c
浏览文件 @
d2ba055d
...
...
@@ -397,11 +397,13 @@ struct usb_device_id em28xx_id_table [] = {
};
MODULE_DEVICE_TABLE
(
usb
,
em28xx_id_table
);
static
struct
em28xx_hash_table
em28xx_hash
[]
=
{
/* EEPROM hash table for devices with generic USB IDs */
static
struct
em28xx_hash_table
em28xx_eeprom_hash
[]
=
{
/* P/N: SA 60002070465 Tuner: TVF7533-MF */
{
0x6ce05a8f
,
EM2820_BOARD_PROLINK_PLAYTV_USB2
,
TUNER_YMEC_TVF_5533MF
},
};
/* I2C devicelist hash table for devices with generic USB IDs */
static
struct
em28xx_hash_table
em28xx_i2c_hash
[]
=
{
{
0xb06a32c3
,
EM2800_BOARD_TERRATEC_CINERGY_200
,
TUNER_LG_PAL_NEW_TAPC
},
{
0xf51200e3
,
EM2800_BOARD_VGEAR_POCKETTV
,
TUNER_LG_PAL_NEW_TAPC
},
...
...
@@ -484,10 +486,18 @@ static int em28xx_hint_board(struct em28xx *dev)
{
int
i
;
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
em28xx_hash
);
i
++
)
{
if
(
dev
->
hash
==
em28xx_hash
[
i
].
hash
)
{
dev
->
model
=
em28xx_hash
[
i
].
model
;
dev
->
tuner_type
=
em28xx_hash
[
i
].
tuner
;
/* HINT method: EEPROM
*
* This method works only for boards with eeprom.
* Uses a hash of all eeprom bytes. The hash should be
* unique for a vendor/tuner pair.
* There are a high chance that tuners for different
* video standards produce different hashes.
*/
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
em28xx_eeprom_hash
);
i
++
)
{
if
(
dev
->
hash
==
em28xx_eeprom_hash
[
i
].
hash
)
{
dev
->
model
=
em28xx_eeprom_hash
[
i
].
model
;
dev
->
tuner_type
=
em28xx_eeprom_hash
[
i
].
tuner
;
em28xx_errdev
(
"Your board has no unique USB ID.
\n
"
);
em28xx_errdev
(
"A hint were successfully done, "
...
...
@@ -504,6 +514,15 @@ static int em28xx_hint_board(struct em28xx *dev)
}
}
/* HINT method: I2C attached devices
*
* This method works for all boards.
* Uses a hash of i2c scanned devices.
* Devices with the same i2c attached chips will
* be considered equal.
* This method is less precise than the eeprom one.
*/
/* user did not request i2c scanning => do it now */
if
(
!
dev
->
i2c_hash
)
em28xx_do_i2c_scan
(
dev
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录