From patchwork Thu Apr 10 07:32:12 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacek Anaszewski X-Patchwork-Id: 3960211 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 5E6399F336 for ; Thu, 10 Apr 2014 07:32:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9794020630 for ; Thu, 10 Apr 2014 07:32:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 94EEB20629 for ; Thu, 10 Apr 2014 07:32:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965170AbaDJHca (ORCPT ); Thu, 10 Apr 2014 03:32:30 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:34929 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965070AbaDJHc2 (ORCPT ); Thu, 10 Apr 2014 03:32:28 -0400 Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N3T00LBJ0Y36U60@mailout3.samsung.com> for linux-media@vger.kernel.org; Thu, 10 Apr 2014 16:32:27 +0900 (KST) X-AuditID: cbfee61b-b7f456d000006dfd-d6-5346490b99df Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 03.18.28157.B0946435; Thu, 10 Apr 2014 16:32:27 +0900 (KST) Received: from AMDC2362.DIGITAL.local ([106.120.53.23]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N3T005990XW0YD0@mmp2.samsung.com>; Thu, 10 Apr 2014 16:32:27 +0900 (KST) From: Jacek Anaszewski To: linux-media@vger.kernel.org Cc: s.nawrocki@samsung.com, Jacek Anaszewski , Kyungmin Park Subject: [PATCH v2 2/8] s5p-jpeg: Perform fourcc downgrade only for Exynos4x12 SoCs Date: Thu, 10 Apr 2014 09:32:12 +0200 Message-id: <1397115138-1095-2-git-send-email-j.anaszewski@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1397115138-1095-1-git-send-email-j.anaszewski@samsung.com> References: <1397115138-1095-1-git-send-email-j.anaszewski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrCJMWRmVeSWpSXmKPExsVy+t9jQV1uT7dgg7vT5Cx6rz5ntDjb9Ibd omfDVlaLw2/aWR1YPPq2rGL0+LxJLoApissmJTUnsyy1SN8ugSvj2pYzrAVTOCum3O9ka2C8 xt7FyMkhIWAi8exYGxOELSZx4d56ti5GLg4hgemMEu9vNbJAOO1MEp3z28A62AQMJX6+eA3W ISIgL/Gk9wZQBwcHs0CJxKH1iiBhYYFQiem9hxhBbBYBVYknTy6AtfIKuEv8/7eQBaRcQkBB Ys4kG5Awp4CHxI8965lBbCGgko2TrzNPYORdwMiwilE0tSC5oDgpPddIrzgxt7g0L10vOT93 EyM4LJ5J72Bc1WBxiFGAg1GJh/fAMtdgIdbEsuLK3EOMEhzMSiK8CkJuwUK8KYmVValF+fFF pTmpxYcYpTlYlMR5D7ZaBwoJpCeWpGanphakFsFkmTg4pRoYmx/XHT1w52hp4q9FUYdrb96e pRP/cJnxKlfhpu0fE1oNNsTxKSzefupCv8COs9uORzuvTQ1omBvY9F1B5UXV+hw5jyuTed40 7T9ssSqjRvz/reK9KhkLN/9bzLvURYn3T8199/y+HL1XQrmT2tOzjK5s8cu/PSnt8PukPJMd V37OkC1d/VFNWYmlOCPRUIu5qDgRAB+S0MEHAgAA 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.5 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 Change the driver variant check from "is not S5PC210" to "is Exynos4" while checking whether YUV format needs to be downgraded in order to prevent upsampling which is not supported by Exynos4 SoCs family. Signed-off-by: Jacek Anaszewski Signed-off-by: Kyungmin Park --- drivers/media/platform/s5p-jpeg/jpeg-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/s5p-jpeg/jpeg-core.c b/drivers/media/platform/s5p-jpeg/jpeg-core.c index 3ae9210..d307c0f 100644 --- a/drivers/media/platform/s5p-jpeg/jpeg-core.c +++ b/drivers/media/platform/s5p-jpeg/jpeg-core.c @@ -1070,7 +1070,7 @@ static int s5p_jpeg_try_fmt_vid_cap(struct file *file, void *priv, * If this requirement is not met then downgrade the requested * capture format to the one with subsampling equal to the input jpeg. */ - if ((ctx->jpeg->variant->version != SJPEG_S5P) && + if ((ctx->jpeg->variant->version == SJPEG_EXYNOS4) && (ctx->mode == S5P_JPEG_DECODE) && (fmt->flags & SJPEG_FMT_NON_RGB) && (fmt->subsampling < ctx->subsampling)) {