Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
e5cc2bf4
K
Kernel
项目概览
openeuler
/
Kernel
接近 2 年 前同步成功
通知
8
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看板
提交
e5cc2bf4
编写于
1月 08, 2008
作者:
M
Mauro Carvalho Chehab
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
V4L/DVB (12824): tuner-xc2028: adds an option to send i2c data on slower speed
Signed-off-by:
N
Mauro Carvalho Chehab
<
mchehab@redhat.com
>
上级
6eb5c8a6
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
5 addition
and
1 deletion
+5
-1
drivers/media/common/tuners/tuner-xc2028.c
drivers/media/common/tuners/tuner-xc2028.c
+4
-1
drivers/media/common/tuners/tuner-xc2028.h
drivers/media/common/tuners/tuner-xc2028.h
+1
-0
未找到文件。
drivers/media/common/tuners/tuner-xc2028.c
浏览文件 @
e5cc2bf4
...
@@ -100,6 +100,7 @@ struct xc2028_data {
...
@@ -100,6 +100,7 @@ struct xc2028_data {
if (size != _rc) \
if (size != _rc) \
tuner_info("i2c output error: rc = %d (should be %d)\n",\
tuner_info("i2c output error: rc = %d (should be %d)\n",\
_rc, (int)size); \
_rc, (int)size); \
msleep(priv->ctrl.msleep); \
_rc; \
_rc; \
})
})
...
@@ -119,6 +120,7 @@ struct xc2028_data {
...
@@ -119,6 +120,7 @@ struct xc2028_data {
if (isize != _rc) \
if (isize != _rc) \
tuner_err("i2c input error: rc = %d (should be %d)\n", \
tuner_err("i2c input error: rc = %d (should be %d)\n", \
_rc, (int)isize); \
_rc, (int)isize); \
msleep(priv->ctrl.msleep); \
_rc; \
_rc; \
})
})
...
@@ -130,7 +132,7 @@ struct xc2028_data {
...
@@ -130,7 +132,7 @@ struct xc2028_data {
_val, sizeof(_val)))) { \
_val, sizeof(_val)))) { \
tuner_err("Error on line %d: %d\n", __LINE__, _rc); \
tuner_err("Error on line %d: %d\n", __LINE__, _rc); \
} else \
} else \
msleep(
10);
\
msleep(
priv->ctrl.msleep);
\
_rc; \
_rc; \
})
})
...
@@ -996,6 +998,7 @@ static int generic_set_freq(struct dvb_frontend *fe, u32 freq /* in HZ */,
...
@@ -996,6 +998,7 @@ static int generic_set_freq(struct dvb_frontend *fe, u32 freq /* in HZ */,
The reset CLK is needed only with tm6000.
The reset CLK is needed only with tm6000.
Driver should work fine even if this fails.
Driver should work fine even if this fails.
*/
*/
msleep
(
priv
->
ctrl
.
msleep
);
do_tuner_callback
(
fe
,
XC2028_RESET_CLK
,
1
);
do_tuner_callback
(
fe
,
XC2028_RESET_CLK
,
1
);
msleep
(
10
);
msleep
(
10
);
...
...
drivers/media/common/tuners/tuner-xc2028.h
浏览文件 @
e5cc2bf4
...
@@ -33,6 +33,7 @@ enum firmware_type {
...
@@ -33,6 +33,7 @@ enum firmware_type {
struct
xc2028_ctrl
{
struct
xc2028_ctrl
{
char
*
fname
;
char
*
fname
;
int
max_len
;
int
max_len
;
int
msleep
;
unsigned
int
scode_table
;
unsigned
int
scode_table
;
unsigned
int
mts
:
1
;
unsigned
int
mts
:
1
;
unsigned
int
input1
:
1
;
unsigned
int
input1
:
1
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录