Commit 79cab206 authored by Jean-Paul Saman's avatar Jean-Paul Saman

VPFE: debugging for testing (WIP)

- use 4 mmap buffers
- add support for NTSC and PAL resolutions
parent bb98c1ce
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment