From patchwork Wed May 19 15:56:51 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: asheeshb@ti.com X-Patchwork-Id: 100909 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o4JFw9Pp026151 for ; Wed, 19 May 2010 15:58:09 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753592Ab0ESP5i (ORCPT ); Wed, 19 May 2010 11:57:38 -0400 Received: from arroyo.ext.ti.com ([192.94.94.40]:51630 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753891Ab0ESP5g (ORCPT ); Wed, 19 May 2010 11:57:36 -0400 Received: from dlep36.itg.ti.com ([157.170.170.91]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id o4JFvaTO018891 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 19 May 2010 10:57:36 -0500 Received: from dlep26.itg.ti.com (localhost [127.0.0.1]) by dlep36.itg.ti.com (8.13.8/8.13.8) with ESMTP id o4JFvaJS015292; Wed, 19 May 2010 10:57:36 -0500 (CDT) Received: from dlee73.ent.ti.com (localhost [127.0.0.1]) by dlep26.itg.ti.com (8.13.8/8.13.8) with ESMTP id o4JFvaF4013420; Wed, 19 May 2010 10:57:36 -0500 (CDT) Received: from localhost.localdomain (158.218.48.84) by dlee73.ent.ti.com (157.170.170.88) with Microsoft SMTP Server (TLS) id 8.1.358.0; Wed, 19 May 2010 10:57:35 -0500 From: To: CC: Asheesh Bhardwaj Subject: [PATCH 7/7] Patch MMAP buffer bufsize support upto 1080p resolution on capture driver DM365 Date: Wed, 19 May 2010 10:56:51 -0500 Message-ID: <1274284611-13432-7-git-send-email-asheeshb@ti.com> X-Mailer: git-send-email 1.6.3.3 In-Reply-To: <1274284611-13432-6-git-send-email-asheeshb@ti.com> References: <1274284611-13432-1-git-send-email-asheeshb@ti.com> <1274284611-13432-2-git-send-email-asheeshb@ti.com> <1274284611-13432-3-git-send-email-asheeshb@ti.com> <1274284611-13432-4-git-send-email-asheeshb@ti.com> <1274284611-13432-5-git-send-email-asheeshb@ti.com> <1274284611-13432-6-git-send-email-asheeshb@ti.com> MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Wed, 19 May 2010 15:58:09 +0000 (UTC) diff --git a/drivers/media/video/davinci/vpfe_capture.c b/drivers/media/video/davinci/vpfe_capture.c index aeee5bb..112184d 100644 --- a/drivers/media/video/davinci/vpfe_capture.c +++ b/drivers/media/video/davinci/vpfe_capture.c @@ -80,12 +80,13 @@ #include "ccdc_hw_device.h" +#define HD_IMAGE_SIZE (1920 * 1080 * 2) #define PAL_IMAGE_SIZE (720 * 576 * 2) #define SECOND_IMAGE_SIZE_MAX (640 * 480 * 2) static int debug; static u32 numbuffers = 3; -static u32 bufsize = PAL_IMAGE_SIZE + SECOND_IMAGE_SIZE_MAX; +static u32 bufsize = HD_IMAGE_SIZE + SECOND_IMAGE_SIZE_MAX; static int interface; static u32 cont_bufoffset = 0; static u32 cont_bufsize = 0; @@ -109,7 +110,7 @@ module_param(cont_bufsize, uint, S_IRUGO); */ MODULE_PARM_DESC(interface, "interface 0-1 (default:0)"); MODULE_PARM_DESC(numbuffers, "buffer count (default:3)"); -MODULE_PARM_DESC(bufsize, "buffer size in bytes, (default:1443840 bytes)"); +MODULE_PARM_DESC(bufsize, "buffer size in bytes, (default:4147200 bytes)"); MODULE_PARM_DESC(debug, "Debug level 0-1"); MODULE_PARM_DESC(cont_bufoffset,"Capture buffer offset(default 0)"); MODULE_PARM_DESC(cont_bufsize,"Capture buffer size(default 0)"); @@ -141,8 +142,8 @@ struct ccdc_config { static struct vpfe_config_params config_params = { .min_numbuffers = 3, .numbuffers = 3, - .min_bufsize = 720 * 480 * 2, - .device_bufsize = 720 * 576 * 2, + .min_bufsize = 1280 * 720 * 2, + .device_bufsize = 1920* 1080 * 2, }; /* ccdc device registered */