Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
319fb3ba
Commit
319fb3ba
authored
Nov 04, 2010
by
Ben Collins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
solo6x10: Updates to videobuf-dma-sg functions for latest kernel
Signed-off-by:
Ben Collins
<
bcollins@bluecherry.net
>
parent
f62de9be
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
drivers/staging/solo6x10/solo6010-v4l2-enc.c
drivers/staging/solo6x10/solo6010-v4l2-enc.c
+3
-3
drivers/staging/solo6x10/solo6010-v4l2.c
drivers/staging/solo6x10/solo6010-v4l2.c
+3
-3
No files found.
drivers/staging/solo6x10/solo6010-v4l2-enc.c
View file @
319fb3ba
...
@@ -814,7 +814,7 @@ static int solo_enc_buf_prepare(struct videobuf_queue *vq,
...
@@ -814,7 +814,7 @@ static int solo_enc_buf_prepare(struct videobuf_queue *vq,
int
rc
=
videobuf_iolock
(
vq
,
vb
,
NULL
);
int
rc
=
videobuf_iolock
(
vq
,
vb
,
NULL
);
if
(
rc
<
0
)
{
if
(
rc
<
0
)
{
struct
videobuf_dmabuf
*
dma
=
videobuf_to_dma
(
vb
);
struct
videobuf_dmabuf
*
dma
=
videobuf_to_dma
(
vb
);
videobuf_dma_unmap
(
vq
,
dma
);
videobuf_dma_unmap
(
vq
->
dev
,
dma
);
videobuf_dma_free
(
dma
);
videobuf_dma_free
(
dma
);
vb
->
state
=
VIDEOBUF_NEEDS_INIT
;
vb
->
state
=
VIDEOBUF_NEEDS_INIT
;
return
rc
;
return
rc
;
...
@@ -840,7 +840,7 @@ static void solo_enc_buf_release(struct videobuf_queue *vq,
...
@@ -840,7 +840,7 @@ static void solo_enc_buf_release(struct videobuf_queue *vq,
{
{
struct
videobuf_dmabuf
*
dma
=
videobuf_to_dma
(
vb
);
struct
videobuf_dmabuf
*
dma
=
videobuf_to_dma
(
vb
);
videobuf_dma_unmap
(
vq
,
dma
);
videobuf_dma_unmap
(
vq
->
dev
,
dma
);
videobuf_dma_free
(
dma
);
videobuf_dma_free
(
dma
);
vb
->
state
=
VIDEOBUF_NEEDS_INIT
;
vb
->
state
=
VIDEOBUF_NEEDS_INIT
;
}
}
...
@@ -886,7 +886,7 @@ static int solo_enc_open(struct file *file)
...
@@ -886,7 +886,7 @@ static int solo_enc_open(struct file *file)
&
solo_enc
->
lock
,
&
solo_enc
->
lock
,
V4L2_BUF_TYPE_VIDEO_CAPTURE
,
V4L2_BUF_TYPE_VIDEO_CAPTURE
,
V4L2_FIELD_INTERLACED
,
V4L2_FIELD_INTERLACED
,
sizeof
(
struct
videobuf_buffer
),
fh
);
sizeof
(
struct
videobuf_buffer
),
fh
,
NULL
);
return
0
;
return
0
;
}
}
...
...
drivers/staging/solo6x10/solo6010-v4l2.c
View file @
319fb3ba
...
@@ -462,7 +462,7 @@ static int solo_buf_prepare(struct videobuf_queue *vq,
...
@@ -462,7 +462,7 @@ static int solo_buf_prepare(struct videobuf_queue *vq,
int
rc
=
videobuf_iolock
(
vq
,
vb
,
NULL
);
int
rc
=
videobuf_iolock
(
vq
,
vb
,
NULL
);
if
(
rc
<
0
)
{
if
(
rc
<
0
)
{
struct
videobuf_dmabuf
*
dma
=
videobuf_to_dma
(
vb
);
struct
videobuf_dmabuf
*
dma
=
videobuf_to_dma
(
vb
);
videobuf_dma_unmap
(
vq
,
dma
);
videobuf_dma_unmap
(
vq
->
dev
,
dma
);
videobuf_dma_free
(
dma
);
videobuf_dma_free
(
dma
);
vb
->
state
=
VIDEOBUF_NEEDS_INIT
;
vb
->
state
=
VIDEOBUF_NEEDS_INIT
;
return
rc
;
return
rc
;
...
@@ -489,7 +489,7 @@ static void solo_buf_release(struct videobuf_queue *vq,
...
@@ -489,7 +489,7 @@ static void solo_buf_release(struct videobuf_queue *vq,
{
{
struct
videobuf_dmabuf
*
dma
=
videobuf_to_dma
(
vb
);
struct
videobuf_dmabuf
*
dma
=
videobuf_to_dma
(
vb
);
videobuf_dma_unmap
(
vq
,
dma
);
videobuf_dma_unmap
(
vq
->
dev
,
dma
);
videobuf_dma_free
(
dma
);
videobuf_dma_free
(
dma
);
vb
->
state
=
VIDEOBUF_NEEDS_INIT
;
vb
->
state
=
VIDEOBUF_NEEDS_INIT
;
}
}
...
@@ -539,7 +539,7 @@ static int solo_v4l2_open(struct file *file)
...
@@ -539,7 +539,7 @@ static int solo_v4l2_open(struct file *file)
&
solo_dev
->
pdev
->
dev
,
&
fh
->
slock
,
&
solo_dev
->
pdev
->
dev
,
&
fh
->
slock
,
V4L2_BUF_TYPE_VIDEO_CAPTURE
,
V4L2_BUF_TYPE_VIDEO_CAPTURE
,
SOLO_DISP_PIX_FIELD
,
SOLO_DISP_PIX_FIELD
,
sizeof
(
struct
videobuf_buffer
),
fh
);
sizeof
(
struct
videobuf_buffer
),
fh
,
NULL
);
return
0
;
return
0
;
}
}
...
...
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