From patchwork Thu Jan 16 11:26:33 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacek Anaszewski X-Patchwork-Id: 3498061 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id EAFFA9F32F for ; Thu, 16 Jan 2014 11:27:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 002742011B for ; Thu, 16 Jan 2014 11:27:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id F0363200C1 for ; Thu, 16 Jan 2014 11:26:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752577AbaAPL0x (ORCPT ); Thu, 16 Jan 2014 06:26:53 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:11354 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751768AbaAPL0q (ORCPT ); Thu, 16 Jan 2014 06:26:46 -0500 Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MZH00L7ERSL7LC0@mailout2.samsung.com> for linux-media@vger.kernel.org; Thu, 16 Jan 2014 20:26:45 +0900 (KST) X-AuditID: cbfee61b-b7f456d000006dfd-2c-52d7c1f5bd35 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id FF.CF.28157.5F1C7D25; Thu, 16 Jan 2014 20:26:45 +0900 (KST) Received: from AMDC2362.DIGITAL.local ([106.120.53.23]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MZH00BJXRSBVD30@mmp1.samsung.com>; Thu, 16 Jan 2014 20:26:45 +0900 (KST) From: Jacek Anaszewski To: linux-media@vger.kernel.org Cc: s.nawrocki@samsung.com, Jacek Anaszewski , Kyungmin Park Subject: [PATCH 2/2] s5p-jpeg: Fix wrong NV12 format parameters Date: Thu, 16 Jan 2014 12:26:33 +0100 Message-id: <1389871593-10973-2-git-send-email-j.anaszewski@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1389871593-10973-1-git-send-email-j.anaszewski@samsung.com> References: <1389871593-10973-1-git-send-email-j.anaszewski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrEJMWRmVeSWpSXmKPExsVy+t9jAd2vB68HGUzbJGTRe/U5o8XZpjfs Fj0btrJaHH7TzurA4tG3ZRWjx+dNcgFMUVw2Kak5mWWpRfp2CVwZi17cYiw4wFnx5v1BpgbG 4+xdjJwcEgImEq+XLmaCsMUkLtxbzwZiCwksYpQ4faCmi5ELyG5nkjjU1wlWxCZgKPHzxWsw W0RAXuJJ7w2gBg4OZoESiUPrFUHCwgL2EhfnngYLswioSvT2mIKEeQU8JD4u/sgCEpYQUJCY M8kGJMwp4Cmx8V4/I8RWD4n/V/6yTGDkXcDIsIpRNLUguaA4KT3XSK84Mbe4NC9dLzk/dxMj OCSeSe9gXNVgcYhRgINRiYd3x8NrQUKsiWXFlbmHGCU4mJVEeM12Xw8S4k1JrKxKLcqPLyrN SS0+xCjNwaIkznuw1TpQSCA9sSQ1OzW1ILUIJsvEwSnVwNjm6v5npef/oPMibx0+71bY1fZE PyV9dgQri+wtqT/fb1yU0IwxEb4gUNn6f23npZilMe6eL72MnKcqP2eb0D6j30YiR/3qnR8/ I9f4HJ4Tb1XjdUfoA2vEveSmo9++WAg5HQq+uz1jQjLzv8qfezisSyqz83ub8g4V+9olPrfQ vJiw1OnqJiWW4oxEQy3mouJEAJFAqj4FAgAA 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, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 NV12 format entries in the sjpeg_formats array had wrong colplanes, depth and v_align values. Signed-off-by: Jacek Anaszewski Signed-off-by: Kyungmin Park --- drivers/media/platform/s5p-jpeg/jpeg-core.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/media/platform/s5p-jpeg/jpeg-core.c b/drivers/media/platform/s5p-jpeg/jpeg-core.c index a009bd9..6db4d5e 100644 --- a/drivers/media/platform/s5p-jpeg/jpeg-core.c +++ b/drivers/media/platform/s5p-jpeg/jpeg-core.c @@ -175,7 +175,7 @@ static struct s5p_jpeg_fmt sjpeg_formats[] = { { .name = "YUV 4:2:0 planar, Y/CbCr", .fourcc = V4L2_PIX_FMT_NV12, - .depth = 16, + .depth = 12, .colplanes = 2, .h_align = 1, .v_align = 1, @@ -188,10 +188,10 @@ static struct s5p_jpeg_fmt sjpeg_formats[] = { { .name = "YUV 4:2:0 planar, Y/CbCr", .fourcc = V4L2_PIX_FMT_NV12, - .depth = 16, - .colplanes = 4, + .depth = 12, + .colplanes = 2, .h_align = 4, - .v_align = 1, + .v_align = 4, .flags = SJPEG_FMT_FLAG_ENC_OUTPUT | SJPEG_FMT_FLAG_DEC_CAPTURE | SJPEG_FMT_FLAG_S5P |