From patchwork Mon Apr 7 13:16:07 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacek Anaszewski X-Patchwork-Id: 3945401 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 A1799BFF02 for ; Mon, 7 Apr 2014 13:16:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D66092022D for ; Mon, 7 Apr 2014 13:16:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D2D3E201F7 for ; Mon, 7 Apr 2014 13:16:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755343AbaDGNQm (ORCPT ); Mon, 7 Apr 2014 09:16:42 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:64617 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755277AbaDGNQm (ORCPT ); Mon, 7 Apr 2014 09:16:42 -0400 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N3N00JPVWVLO0C0@mailout2.samsung.com> for linux-media@vger.kernel.org; Mon, 07 Apr 2014 22:16:33 +0900 (KST) X-AuditID: cbfee61a-b7fb26d00000724f-21-5342a53097ea Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id F8.49.29263.035A2435; Mon, 07 Apr 2014 22:16:32 +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 <0N3N00MSNWV2V030@mmp2.samsung.com>; Mon, 07 Apr 2014 22:16:32 +0900 (KST) From: Jacek Anaszewski To: linux-media@vger.kernel.org Cc: s.nawrocki@samsung.com, Jacek Anaszewski , Kyungmin Park Subject: [PATCH 2/8] [media] s5p-jpeg: Perform fourcc downgrade only for Exynos4x12 SoCs Date: Mon, 07 Apr 2014 15:16:07 +0200 Message-id: <1396876573-15811-2-git-send-email-j.anaszewski@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1396876573-15811-1-git-send-email-j.anaszewski@samsung.com> References: <1396876573-15811-1-git-send-email-j.anaszewski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrEJMWRmVeSWpSXmKPExsVy+t9jQV3DpU7BBn1CFr1XnzNanG16w27R s2Erq8XhN+2sDiwefVtWMXp83iQXwBTFZZOSmpNZllqkb5fAldF3+w57wRTOiicdeg2M19i7 GDk5JARMJC7+28gGYYtJXLi3Hsjm4hASmM4osaRlBROE084k0dv1kBGkik3AUOLni9dMILaI gLzEk94bQB0cHMwCJRKH1iuChIUFoiQmHtzFCmKzCKhKdEw6C1bOK+Ah0T9pIhNIuYSAgsSc STYgYU4BT4lpKzeBTRcCKnn08jX7BEbeBYwMqxhFUwuSC4qT0nMN9YoTc4tL89L1kvNzNzGC Q+KZ1A7GlQ0WhxgFOBiVeHgDDjgGC7EmlhVX5h5ilOBgVhLhNexyChbiTUmsrEotyo8vKs1J LT7EKM3BoiTOe6DVOlBIID2xJDU7NbUgtQgmy8TBKdXA6HSlaKrkiurcfzIfF1exvD6yYibj /bKp8XNXMp3ifBbQt6qajWPtI/2in+Imh5WEnD6zVZzdb+//5rQn83t/9+NafpxOtec3nCn7 YXvarqZasHp/28VjD3fvOaD48Kei8NlwlVN2bn3Xr+mvvaYfesZhHdure2oZU9aVSb04cX6J RdpqdweGF0osxRmJhlrMRcWJAHlfch8FAgAA 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 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 9b0102d..c675c90 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)) {