Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
47878f16
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看板
提交
47878f16
编写于
11月 15, 2007
作者:
M
Mauro Carvalho Chehab
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
V4L/DVB (12815): tm6000: follow videobuf API changes
Signed-off-by:
N
Mauro Carvalho Chehab
<
mchehab@redhat.com
>
上级
d4e15bcd
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
15 addition
and
15 deletion
+15
-15
drivers/staging/tm6000/tm6000-video.c
drivers/staging/tm6000/tm6000-video.c
+15
-15
未找到文件。
drivers/staging/tm6000/tm6000-video.c
浏览文件 @
47878f16
...
...
@@ -167,7 +167,7 @@ static void inline buffer_filled (struct tm6000_core *dev,
/* Advice that buffer was filled */
dprintk
(
dev
,
V4L2_DEBUG_ISOC
,
"[%p/%d] wakeup
\n
"
,
buf
,
buf
->
vb
.
i
);
buf
->
vb
.
state
=
STATE
_DONE
;
buf
->
vb
.
state
=
VIDEOBUF
_DONE
;
buf
->
vb
.
field_count
++
;
do_gettimeofday
(
&
buf
->
vb
.
ts
);
...
...
@@ -764,7 +764,7 @@ static int restart_video_queue(struct tm6000_dmaqueue *dma_q)
buf
=
list_entry
(
item
,
struct
tm6000_buffer
,
vb
.
queue
);
list_del
(
&
buf
->
vb
.
queue
);
buf
->
vb
.
state
=
STATE
_ERROR
;
buf
->
vb
.
state
=
VIDEOBUF
_ERROR
;
wake_up
(
&
buf
->
vb
.
done
);
}
mod_timer
(
&
dma_q
->
timeout
,
jiffies
+
BUFFER_TIMEOUT
);
...
...
@@ -785,7 +785,7 @@ static int restart_video_queue(struct tm6000_dmaqueue *dma_q)
tm6000_stop_thread
(
dma_q
);
tm6000_start_thread
(
dma_q
,
buf
);
buf
->
vb
.
state
=
STATE
_ACTIVE
;
buf
->
vb
.
state
=
VIDEOBUF
_ACTIVE
;
mod_timer
(
&
dma_q
->
timeout
,
jiffies
+
BUFFER_TIMEOUT
);
dprintk
(
dev
,
V4L2_DEBUG_QUEUE
,
"[%p/%d] restart_queue -"
" first active
\n
"
,
buf
,
buf
->
vb
.
i
);
...
...
@@ -795,7 +795,7 @@ static int restart_video_queue(struct tm6000_dmaqueue *dma_q)
prev
->
fmt
==
buf
->
fmt
)
{
list_del
(
&
buf
->
vb
.
queue
);
list_add_tail
(
&
buf
->
vb
.
queue
,
&
dma_q
->
active
);
buf
->
vb
.
state
=
STATE
_ACTIVE
;
buf
->
vb
.
state
=
VIDEOBUF
_ACTIVE
;
dprintk
(
dev
,
V4L2_DEBUG_QUEUE
,
"[%p/%d] restart_queue -"
" move to active
\n
"
,
buf
,
buf
->
vb
.
i
);
}
else
{
...
...
@@ -817,7 +817,7 @@ static void tm6000_vid_timeout(unsigned long data)
buf
=
list_entry
(
vidq
->
active
.
next
,
struct
tm6000_buffer
,
vb
.
queue
);
list_del
(
&
buf
->
vb
.
queue
);
buf
->
vb
.
state
=
STATE
_ERROR
;
buf
->
vb
.
state
=
VIDEOBUF
_ERROR
;
wake_up
(
&
buf
->
vb
.
done
);
dprintk
(
dev
,
V4L2_DEBUG_QUEUE
,
"tm6000/0: [%p/%d] timeout
\n
"
,
buf
,
buf
->
vb
.
i
);
...
...
@@ -857,7 +857,7 @@ static void free_buffer(struct videobuf_queue *vq, struct tm6000_buffer *buf)
videobuf_waiton
(
&
buf
->
vb
,
0
,
0
);
videobuf_vmalloc_free
(
&
buf
->
vb
);
buf
->
vb
.
state
=
STATE
_NEEDS_INIT
;
buf
->
vb
.
state
=
VIDEOBUF
_NEEDS_INIT
;
}
static
int
...
...
@@ -886,10 +886,10 @@ buffer_prepare(struct videobuf_queue *vq, struct videobuf_buffer *vb,
buf
->
vb
.
width
=
fh
->
width
;
buf
->
vb
.
height
=
fh
->
height
;
buf
->
vb
.
field
=
field
;
buf
->
vb
.
state
=
STATE
_NEEDS_INIT
;
buf
->
vb
.
state
=
VIDEOBUF
_NEEDS_INIT
;
}
if
(
STATE
_NEEDS_INIT
==
buf
->
vb
.
state
)
{
if
(
VIDEOBUF
_NEEDS_INIT
==
buf
->
vb
.
state
)
{
if
(
0
!=
(
rc
=
videobuf_iolock
(
vq
,
&
buf
->
vb
,
NULL
)))
goto
fail
;
urb_init
=
1
;
...
...
@@ -943,7 +943,7 @@ buffer_prepare(struct videobuf_queue *vq, struct videobuf_buffer *vb,
goto
fail
;
}
buf
->
vb
.
state
=
STATE
_PREPARED
;
buf
->
vb
.
state
=
VIDEOBUF
_PREPARED
;
return
0
;
fail:
...
...
@@ -962,12 +962,12 @@ buffer_queue(struct videobuf_queue *vq, struct videobuf_buffer *vb)
if
(
!
list_empty
(
&
vidq
->
queued
))
{
list_add_tail
(
&
buf
->
vb
.
queue
,
&
vidq
->
queued
);
buf
->
vb
.
state
=
STATE
_QUEUED
;
buf
->
vb
.
state
=
VIDEOBUF
_QUEUED
;
dprintk
(
dev
,
V4L2_DEBUG_QUEUE
,
"[%p/%d] buffer_queue - "
"append to queued
\n
"
,
buf
,
buf
->
vb
.
i
);
}
else
if
(
list_empty
(
&
vidq
->
active
))
{
list_add_tail
(
&
buf
->
vb
.
queue
,
&
vidq
->
active
);
buf
->
vb
.
state
=
STATE
_ACTIVE
;
buf
->
vb
.
state
=
VIDEOBUF
_ACTIVE
;
mod_timer
(
&
vidq
->
timeout
,
jiffies
+
BUFFER_TIMEOUT
);
dprintk
(
dev
,
V4L2_DEBUG_QUEUE
,
"[%p/%d] buffer_queue - "
"first active
\n
"
,
buf
,
buf
->
vb
.
i
);
...
...
@@ -978,12 +978,12 @@ buffer_queue(struct videobuf_queue *vq, struct videobuf_buffer *vb)
prev
->
vb
.
height
==
buf
->
vb
.
height
&&
prev
->
fmt
==
buf
->
fmt
)
{
list_add_tail
(
&
buf
->
vb
.
queue
,
&
vidq
->
active
);
buf
->
vb
.
state
=
STATE
_ACTIVE
;
buf
->
vb
.
state
=
VIDEOBUF
_ACTIVE
;
dprintk
(
dev
,
V4L2_DEBUG_QUEUE
,
"[%p/%d] buffer_queue -"
" append to active
\n
"
,
buf
,
buf
->
vb
.
i
);
}
else
{
list_add_tail
(
&
buf
->
vb
.
queue
,
&
vidq
->
queued
);
buf
->
vb
.
state
=
STATE
_QUEUED
;
buf
->
vb
.
state
=
VIDEOBUF
_QUEUED
;
dprintk
(
dev
,
V4L2_DEBUG_QUEUE
,
"[%p/%d] buffer_queue -"
" first queued
\n
"
,
buf
,
buf
->
vb
.
i
);
}
...
...
@@ -1583,8 +1583,8 @@ tm6000_poll(struct file *file, struct poll_table_struct *wait)
wait
);
}
poll_wait
(
file
,
&
buf
->
vb
.
done
,
wait
);
if
(
buf
->
vb
.
state
==
STATE
_DONE
||
buf
->
vb
.
state
==
STATE
_ERROR
)
if
(
buf
->
vb
.
state
==
VIDEOBUF
_DONE
||
buf
->
vb
.
state
==
VIDEOBUF
_ERROR
)
return
POLLIN
|
POLLRDNORM
;
return
0
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录