Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
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
Commits
79cab206
Commit
79cab206
authored
Feb 22, 2010
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
VPFE: debugging for testing (WIP)
- use 4 mmap buffers - add support for NTSC and PAL resolutions
parent
bb98c1ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
drivers/media/video/davinci/vpfe_capture.c
drivers/media/video/davinci/vpfe_capture.c
+8
-5
No files found.
drivers/media/video/davinci/vpfe_capture.c
View file @
79cab206
...
...
@@ -77,14 +77,14 @@
#include "ccdc_hw_device.h"
static
int
debug
;
static
u32
numbuffers
=
3
;
static
u32
numbuffers
=
4
;
static
u32
bufsize
=
(
720
*
576
*
2
);
module_param
(
numbuffers
,
uint
,
S_IRUGO
);
module_param
(
bufsize
,
uint
,
S_IRUGO
);
module_param
(
debug
,
int
,
0644
);
MODULE_PARM_DESC
(
numbuffers
,
"buffer count (default:
3
)"
);
MODULE_PARM_DESC
(
numbuffers
,
"buffer count (default:
4
)"
);
MODULE_PARM_DESC
(
bufsize
,
"buffer size in bytes (default:720 x 576 x 2)"
);
MODULE_PARM_DESC
(
debug
,
"Debug level 0-1"
);
...
...
@@ -115,8 +115,8 @@ struct ccdc_config {
/* data structures */
static
struct
vpfe_config_params
config_params
=
{
.
min_numbuffers
=
3
,
.
numbuffers
=
3
,
.
min_numbuffers
=
4
,
.
numbuffers
=
4
,
.
min_bufsize
=
720
*
480
*
2
,
.
device_bufsize
=
720
*
576
*
2
,
};
...
...
@@ -131,6 +131,8 @@ static struct ccdc_config *ccdc_cfg;
const
struct
vpfe_standard
vpfe_standards
[]
=
{
{
V4L2_STD_525_60
,
720
,
480
,
{
11
,
10
},
1
},
{
V4L2_STD_625_50
,
720
,
576
,
{
54
,
59
},
1
},
{
V4L2_STD_NTSC
,
720
,
480
,
{
11
,
10
},
1
},
{
V4L2_STD_PAL
,
720
,
480
,
{
54
,
59
},
0
},
};
/* Used when raw Bayer image from ccdc is directly captured to SDRAM */
...
...
@@ -430,7 +432,8 @@ static int vpfe_config_image_format(struct vpfe_device *vpfe_dev,
if
(
ret
&&
ret
!=
-
ENOIOCTLCMD
)
{
v4l2_err
(
&
vpfe_dev
->
v4l2_dev
,
"error in getting g_fmt from sub device
\n
"
);
"error in getting g_fmt from sub device (%s)
\n
"
,
sdinfo
->
name
);
return
ret
;
}
...
...
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