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
e68f608e
Commit
e68f608e
authored
Jul 11, 2008
by
邱宗炽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
typo fix and format adjust
Signed-off-by:
邱宗炽
<
tqiu@neuros.com.cn
>
parent
e1da1221
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
57 additions
and
56 deletions
+57
-56
drivers/media/video/davinci_vpfe.c
drivers/media/video/davinci_vpfe.c
+57
-56
No files found.
drivers/media/video/davinci_vpfe.c
View file @
e68f608e
...
...
@@ -54,7 +54,7 @@ MODULE_LICENSE("GPL");
#define DEVICE_DEACTIVATE(x) do { \
if ((x) && (x)->capture_device_deactive && \
(x)->capture_device_deactive()) \
debug_print(KERN_ERR
\
debug_print(KERN_ERR
\
"capture device %s deactivate failed\n", \
(x)->name); \
} while (0)
...
...
@@ -196,7 +196,6 @@ static int buffer_prepare(struct videobuf_queue *q,
{
vpfe_obj
*
vpfe
=
&
vpfe_device
;
if
(
vb
->
state
==
STATE_NEEDS_INIT
)
{
vb
->
width
=
vpfe
->
vwin
.
width
;
vb
->
height
=
vpfe
->
vwin
.
height
;
...
...
@@ -208,11 +207,13 @@ static int buffer_prepare(struct videobuf_queue *q,
return
0
;
}
static
void
buffer_config
(
struct
videobuf_queue
*
q
,
unsigned
int
count
)
{
vpfe_obj
*
vpfe
=
&
vpfe_device
;
int
i
;
for
(
i
=
0
;
i
<
count
;
i
++
)
{
q
->
bufs
[
i
]
->
boff
=
virt_to_phys
(
vpfe
->
fbuffers
[
i
]);
debug_print
(
KERN_INFO
"buffer address: %x
\n
"
,
q
->
bufs
[
i
]
->
boff
);
...
...
@@ -226,7 +227,6 @@ buffer_setup(struct videobuf_queue *q, unsigned int *count, unsigned int *size)
int
i
;
*
size
=
VPFE_MAX_FBUF_SIZE
;
for
(
i
=
VPFE_DEFNUM_FBUFS
;
i
<
*
count
;
i
++
)
{
u32
size
=
PAGE_SIZE
<<
VPFE_MAX_FBUF_ORDER
;
void
*
mem
=
(
void
*
)
__get_free_pages
(
GFP_KERNEL
|
GFP_DMA
,
...
...
@@ -253,6 +253,7 @@ buffer_setup(struct videobuf_queue *q, unsigned int *count, unsigned int *size)
static
void
buffer_queue
(
struct
videobuf_queue
*
q
,
struct
videobuf_buffer
*
vb
)
{
vpfe_obj
*
vpfe
=
&
vpfe_device
;
/* add the buffer to the DMA queue */
list_add_tail
(
&
vb
->
queue
,
&
vpfe
->
dma_queue
);
vb
->
state
=
STATE_QUEUED
;
...
...
@@ -270,7 +271,6 @@ static void buffer_release(struct videobuf_queue *q, struct videobuf_buffer *vb)
}
}
static
struct
videobuf_queue_ops
video_qops
=
{
.
buf_setup
=
buffer_setup
,
.
buf_prepare
=
buffer_prepare
,
...
...
@@ -305,6 +305,7 @@ static int vpfe_select_capture_device(int id)
{
int
err
=
0
;
struct
vpfe_capture_device
*
device
;
down_interruptible
(
&
vpfe_device
.
device_list_lock
);
list_for_each_entry
(
device
,
&
vpfe_device
.
capture_device_list
,
device_list
){
...
...
@@ -1106,7 +1107,7 @@ int vpfe_capture_device_unregister(struct vpfe_capture_device *device)
}
EXPORT_SYMBOL
(
vpfe_capture_device_unregister
);
static
int
capture_device_all_unr
i
gister
(
void
)
static
int
capture_device_all_unr
e
gister
(
void
)
{
int
ret
=
0
;
struct
vpfe_capture_device
*
device
;
...
...
@@ -1217,7 +1218,7 @@ static void vpfe_cleanup(void)
platform_device_unregister
(
&
_vpfe_device
);
driver_unregister
(
&
vpfe_driver
);
capture_device_all_unr
i
gister
();
capture_device_all_unr
e
gister
();
/* disable interrupt */
free_irq
(
IRQ_VDINT0
,
&
vpfe_device
);
...
...
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