Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci-2.6.23
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci-2.6.23
Commits
20ae6a07
Commit
20ae6a07
authored
Nov 19, 2009
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
davinci_vpfe: cast to correct types.
parent
7307837a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
drivers/media/video/davinci_vpfe.c
drivers/media/video/davinci_vpfe.c
+5
-5
No files found.
drivers/media/video/davinci_vpfe.c
View file @
20ae6a07
...
@@ -890,23 +890,23 @@ static int vpfe_doioctl(struct inode *inode, struct file *file,
...
@@ -890,23 +890,23 @@ static int vpfe_doioctl(struct inode *inode, struct file *file,
fh
->
io_allowed
=
TRUE
;
fh
->
io_allowed
=
TRUE
;
vpfe
->
io_usrs
=
1
;
vpfe
->
io_usrs
=
1
;
INIT_LIST_HEAD
(
&
vpfe
->
dma_queue
);
INIT_LIST_HEAD
(
&
vpfe
->
dma_queue
);
ret
=
videobuf_reqbufs
(
&
vpfe
->
bufqueue
,
arg
);
ret
=
videobuf_reqbufs
(
&
vpfe
->
bufqueue
,
(
struct
v4l2_requestbuffers
*
)
arg
);
up
(
&
vpfe
->
lock
);
up
(
&
vpfe
->
lock
);
break
;
break
;
case
VIDIOC_QUERYBUF
:
case
VIDIOC_QUERYBUF
:
ret
=
videobuf_querybuf
(
&
vpfe
->
bufqueue
,
arg
);
ret
=
videobuf_querybuf
(
&
vpfe
->
bufqueue
,
(
struct
v4l2_buffer
*
)
arg
);
break
;
break
;
case
VIDIOC_QBUF
:
case
VIDIOC_QBUF
:
if
(
!
fh
->
io_allowed
)
if
(
!
fh
->
io_allowed
)
ret
=
-
EACCES
;
ret
=
-
EACCES
;
else
else
ret
=
videobuf_qbuf
(
&
vpfe
->
bufqueue
,
arg
);
ret
=
videobuf_qbuf
(
&
vpfe
->
bufqueue
,
(
struct
v4l2_buffer
*
)
arg
);
break
;
break
;
case
VIDIOC_DQBUF
:
case
VIDIOC_DQBUF
:
if
(
!
fh
->
io_allowed
)
if
(
!
fh
->
io_allowed
)
ret
=
-
EACCES
;
ret
=
-
EACCES
;
else
else
ret
=
videobuf_dqbuf
(
&
vpfe
->
bufqueue
,
arg
,
0
);
ret
=
videobuf_dqbuf
(
&
vpfe
->
bufqueue
,
(
struct
v4l2_buffer
*
)
arg
,
file
->
f_flags
&
O_NONBLOCK
);
break
;
break
;
case
VIDIOC_STREAMON
:
case
VIDIOC_STREAMON
:
if
(
!
fh
->
io_allowed
)
if
(
!
fh
->
io_allowed
)
...
@@ -934,7 +934,7 @@ static int vpfe_doioctl(struct inode *inode, struct file *file,
...
@@ -934,7 +934,7 @@ static int vpfe_doioctl(struct inode *inode, struct file *file,
debug_print
(
KERN_INFO
"cur frame %x.
\n
"
,
debug_print
(
KERN_INFO
"cur frame %x.
\n
"
,
vpfe
->
dma_queue
.
next
);
vpfe
->
dma_queue
.
next
);
vpfe
->
nextFrm
=
vpfe
->
curFrm
=
list_entry
(
vpfe
->
dma_queue
.
next
,
vpfe
->
nextFrm
=
vpfe
->
curFrm
=
list_entry
(
vpfe
->
dma_queue
.
next
,
struct
videobuf_buffer
,
queue
);
struct
videobuf_buffer
,
queue
);
/* remove the buffer from the queue */
/* remove the buffer from the queue */
list_del
(
&
vpfe
->
curFrm
->
queue
);
list_del
(
&
vpfe
->
curFrm
->
queue
);
vpfe
->
curFrm
->
state
=
STATE_ACTIVE
;
vpfe
->
curFrm
->
state
=
STATE_ACTIVE
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment