From patchwork Mon Jul 15 11:51:23 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arun Kumar K X-Patchwork-Id: 2827430 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 5D3EDC0AB2 for ; Mon, 15 Jul 2013 11:51:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3DA2220186 for ; Mon, 15 Jul 2013 11:51:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A1DE220184 for ; Mon, 15 Jul 2013 11:51:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756029Ab3GOLvZ (ORCPT ); Mon, 15 Jul 2013 07:51:25 -0400 Received: from mail-pa0-f49.google.com ([209.85.220.49]:41957 "EHLO mail-pa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755899Ab3GOLvZ (ORCPT ); Mon, 15 Jul 2013 07:51:25 -0400 Received: by mail-pa0-f49.google.com with SMTP id ld11so11049450pab.36 for ; Mon, 15 Jul 2013 04:51:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer; bh=qJpdzwwbhZrGxG9SLfBhBQdRP5uciOWTdG5S40Qj560=; b=i/VHMRktDo5IWRlLyg46EXDZsck/JnA4HWwzgfKh/dFFG3sS7a810Th5m2m7CRmpLy lXqbcTU5k+YTZj0Gwu2dvTP7slUGbB1GlGZEpgiqsxatH45oFw3B2y5zax4InNKoIYpr FlkN37K6zu6vJut49vrQWI1qT1l+cwE90whT8BEGMywlMMCOhUm23CoLwnvrSkj28uks BDYfyrBFyxlrp+b+SCgSCidlwHSbxdWM3eHGWLv4RiL4/xHNTWzf3QfFarD66KOzTSek JCLT8Xf9oPDDpN68k1W7Hd0VPiYPgpo11+ZsMgeGCPxP7l3ly1R6TE6xL7Bqm1D8t1GP 6mtw== X-Received: by 10.66.232.101 with SMTP id tn5mr54954071pac.132.1373889084853; Mon, 15 Jul 2013 04:51:24 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPSA id yj2sm60540288pbb.40.2013.07.15.04.51.22 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 15 Jul 2013 04:51:24 -0700 (PDT) From: Arun Kumar K To: linux-media@vger.kernel.org Cc: s.nawrocki@samsung.com, arunkk.samsung@gmail.com Subject: [PATCH] [media] exynos4-is: Fix fimc-lite bayer formats Date: Mon, 15 Jul 2013 17:21:23 +0530 Message-Id: <1373889083-13675-1-git-send-email-arun.kk@samsung.com> X-Mailer: git-send-email 1.7.9.5 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The 10bit and 12bit bayer output formats supported by fimc-lite actually uses 16bits where the extra bits are padded with zeros. The patch corrects this by modifying depth field of these two formats. Signed-off-by: Arun Kumar K --- drivers/media/platform/exynos4-is/fimc-lite.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/exynos4-is/fimc-lite.c b/drivers/media/platform/exynos4-is/fimc-lite.c index 08fbfed..e85dc4f 100644 --- a/drivers/media/platform/exynos4-is/fimc-lite.c +++ b/drivers/media/platform/exynos4-is/fimc-lite.c @@ -90,7 +90,7 @@ static const struct fimc_fmt fimc_lite_formats[] = { .name = "RAW10 (GRBG)", .fourcc = V4L2_PIX_FMT_SGRBG10, .colorspace = V4L2_COLORSPACE_SRGB, - .depth = { 10 }, + .depth = { 16 }, .color = FIMC_FMT_RAW10, .memplanes = 1, .mbus_code = V4L2_MBUS_FMT_SGRBG10_1X10, @@ -99,7 +99,7 @@ static const struct fimc_fmt fimc_lite_formats[] = { .name = "RAW12 (GRBG)", .fourcc = V4L2_PIX_FMT_SGRBG12, .colorspace = V4L2_COLORSPACE_SRGB, - .depth = { 12 }, + .depth = { 16 }, .color = FIMC_FMT_RAW12, .memplanes = 1, .mbus_code = V4L2_MBUS_FMT_SGRBG12_1X12,