From: deepthy.ravi@ti.com (Deepthy Ravi)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 4/5] ispccdc: Configure CCDC_SYN_MODE register
Date: Tue, 27 Sep 2011 19:10:47 +0530 [thread overview]
Message-ID: <1317130848-21136-5-git-send-email-deepthy.ravi@ti.com> (raw)
In-Reply-To: <1317130848-21136-1-git-send-email-deepthy.ravi@ti.com>
Configure INPMOD and PACK8 fileds for UYVY8_2X8
and YUYV8_2X8 formats.
Signed-off-by: Deepthy Ravi <deepthy.ravi@ti.com>
---
drivers/media/video/omap3isp/ispccdc.c | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/drivers/media/video/omap3isp/ispccdc.c b/drivers/media/video/omap3isp/ispccdc.c
index 3bc9b7d..7791acb 100644
--- a/drivers/media/video/omap3isp/ispccdc.c
+++ b/drivers/media/video/omap3isp/ispccdc.c
@@ -985,8 +985,12 @@ static void ccdc_config_sync_if(struct isp_ccdc_device *ccdc,
syn_mode &= ~ISPCCDC_SYN_MODE_INPMOD_MASK;
if (format->code == V4L2_MBUS_FMT_YUYV8_2X8 ||
- format->code == V4L2_MBUS_FMT_UYVY8_2X8)
- syn_mode |= ISPCCDC_SYN_MODE_INPMOD_YCBCR8;
+ format->code == V4L2_MBUS_FMT_UYVY8_2X8){
+ if (pdata && pdata->bt656)
+ syn_mode |= ISPCCDC_SYN_MODE_INPMOD_YCBCR8;
+ else
+ syn_mode |= ISPCCDC_SYN_MODE_INPMOD_YCBCR16;
+ }
else if (format->code == V4L2_MBUS_FMT_YUYV8_1X16 ||
format->code == V4L2_MBUS_FMT_UYVY8_1X16)
syn_mode |= ISPCCDC_SYN_MODE_INPMOD_YCBCR16;
@@ -1172,7 +1176,8 @@ static void ccdc_configure(struct isp_ccdc_device *ccdc)
syn_mode &= ~ISPCCDC_SYN_MODE_SDR2RSZ;
/* Use PACK8 mode for 1byte per pixel formats. */
- if (omap3isp_video_format_info(format->code)->width <= 8)
+ if ((omap3isp_video_format_info(format->code)->width <= 8) &&
+ (omap3isp_video_format_info(format->code)->bpp <= 8))
syn_mode |= ISPCCDC_SYN_MODE_PACK8;
else
syn_mode &= ~ISPCCDC_SYN_MODE_PACK8;
--
1.7.0.4
next prev parent reply other threads:[~2011-09-27 13:40 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-27 13:40 [PATCH v2 0/5] OMAP3EVM: Add support for MT9T111 sensor Deepthy Ravi
2011-09-27 13:40 ` [PATCH v2 1/5] omap3evm: Enable regulators for camera interface Deepthy Ravi
2011-09-27 13:40 ` [PATCH v2 2/5] [media] v4l: Add support for mt9t111 sensor driver Deepthy Ravi
2011-09-27 23:30 ` Guennadi Liakhovetski
2011-09-27 13:40 ` [PATCH v2 3/5] omap3evm: Add Camera board init/hookup file Deepthy Ravi
2011-09-29 16:37 ` Tony Lindgren
2011-09-27 13:40 ` Deepthy Ravi [this message]
2011-09-27 13:40 ` [PATCH v2 5/5] omap2plus_defconfig: Enable omap3isp and MT9T111 sensor drivers Deepthy Ravi
2011-09-27 13:51 ` [PATCH v2 0/5] OMAP3EVM: Add support for MT9T111 sensor Gary Thomas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1317130848-21136-5-git-send-email-deepthy.ravi@ti.com \
--to=deepthy.ravi@ti.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).