Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
kernel_linux
提交
09df5cbe
K
kernel_linux
项目概览
OpenHarmony
/
kernel_linux
上一次同步 3 年多
通知
13
Star
8
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
kernel_linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
09df5cbe
编写于
7月 17, 2007
作者:
M
Mauro Carvalho Chehab
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
V4L/DVB (5858): Use msecs_to_jiffies instead of HZ on media/video I2C drivers
Signed-off-by:
N
Mauro Carvalho Chehab
<
mchehab@infradead.org
>
上级
a2d66a37
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
9 addition
and
9 deletion
+9
-9
drivers/media/video/bt866.c
drivers/media/video/bt866.c
+1
-1
drivers/media/video/saa5249.c
drivers/media/video/saa5249.c
+4
-4
drivers/media/video/saa7110.c
drivers/media/video/saa7110.c
+2
-2
drivers/media/video/tvaudio.c
drivers/media/video/tvaudio.c
+2
-2
未找到文件。
drivers/media/video/bt866.c
浏览文件 @
09df5cbe
...
...
@@ -257,7 +257,7 @@ static int bt866_write(struct bt866 *encoder,
printk
(
KERN_WARNING
"%s: I/O error #%d "
"(write 0x%02x/0x%02x)
\n
"
,
encoder
->
i2c
->
name
,
err
,
encoder
->
addr
,
subaddr
);
schedule_timeout_interruptible
(
HZ
/
10
);
schedule_timeout_interruptible
(
msecs_to_jiffies
(
100
)
);
}
if
(
err
==
3
)
{
printk
(
KERN_WARNING
"%s: giving up
\n
"
,
...
...
drivers/media/video/saa5249.c
浏览文件 @
09df5cbe
...
...
@@ -86,9 +86,9 @@ static const int disp_modes[8][3] =
#define PAGE_WAIT
(300*HZ/1000)
/* Time between requesting page and */
#define PAGE_WAIT
msecs_to_jiffies(300)
/* Time between requesting page and */
/* checking status bits */
#define PGBUF_EXPIRE
(15*HZ)
/* Time to wait before retransmitting */
#define PGBUF_EXPIRE
msecs_to_jiffies(15000)
/* Time to wait before retransmitting */
/* page regardless of infobits */
typedef
struct
{
u8
pgbuf
[
VTX_VIRTUALSIZE
];
/* Page-buffer */
...
...
@@ -115,8 +115,8 @@ struct saa5249_device
#define CCTWR 34
/* IC write/read-address of vtx-chip */
#define CCTRD 35
#define NOACK_REPEAT 10
/* Retry access this many times on failure */
#define CLEAR_DELAY
(HZ/2
0)
/* Time required to clear a page */
#define READY_TIMEOUT
(30*HZ/1000)
/* Time to wait for ready signal of I
C-bus interface */
#define CLEAR_DELAY
msecs_to_jiffies(5
0)
/* Time required to clear a page */
#define READY_TIMEOUT
msecs_to_jiffies(30)
/* Time to wait for ready signal of I2
C-bus interface */
#define INIT_DELAY 500
/* Time in usec to wait at initialization of CEA interface */
#define START_DELAY 10
/* Time in usec to wait before starting write-cycle (CEA) */
...
...
drivers/media/video/saa7110.c
浏览文件 @
09df5cbe
...
...
@@ -208,7 +208,7 @@ determine_norm (struct i2c_client *client)
saa7110_write_block
(
client
,
initseq
,
sizeof
(
initseq
));
saa7110_selmux
(
client
,
decoder
->
input
);
prepare_to_wait
(
&
decoder
->
wq
,
&
wait
,
TASK_UNINTERRUPTIBLE
);
schedule_timeout
(
HZ
/
4
);
schedule_timeout
(
msecs_to_jiffies
(
250
)
);
finish_wait
(
&
decoder
->
wq
,
&
wait
);
status
=
saa7110_read
(
client
);
if
(
status
&
0x40
)
{
...
...
@@ -249,7 +249,7 @@ determine_norm (struct i2c_client *client)
//saa7110_write(client,0x2E,0x9A);
prepare_to_wait
(
&
decoder
->
wq
,
&
wait
,
TASK_UNINTERRUPTIBLE
);
schedule_timeout
(
HZ
/
4
);
schedule_timeout
(
msecs_to_jiffies
(
250
)
);
finish_wait
(
&
decoder
->
wq
,
&
wait
);
status
=
saa7110_read
(
client
);
...
...
drivers/media/video/tvaudio.c
浏览文件 @
09df5cbe
...
...
@@ -290,7 +290,7 @@ static int chip_thread(void *data)
desc
->
checkmode
(
chip
);
/* schedule next check */
mod_timer
(
&
chip
->
wt
,
jiffies
+
2
*
HZ
);
mod_timer
(
&
chip
->
wt
,
jiffies
+
msecs_to_jiffies
(
2000
)
);
}
v4l_dbg
(
1
,
debug
,
&
chip
->
c
,
"%s: thread exiting
\n
"
,
chip
->
c
.
name
);
...
...
@@ -1770,7 +1770,7 @@ static int chip_command(struct i2c_client *client,
desc
->
setmode
(
chip
,
VIDEO_SOUND_MONO
);
if
(
chip
->
prevmode
!=
VIDEO_SOUND_MONO
)
chip
->
prevmode
=
-
1
;
/* reset previous mode */
mod_timer
(
&
chip
->
wt
,
jiffies
+
2
*
HZ
);
mod_timer
(
&
chip
->
wt
,
jiffies
+
msecs_to_jiffies
(
2000
)
);
/* the thread will call checkmode() later */
}
break
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录