From patchwork Mon Nov 25 09:58:11 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacek Anaszewski X-Patchwork-Id: 3228931 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 21EF1C045B for ; Mon, 25 Nov 2013 09:59:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DC4ED2024D for ; Mon, 25 Nov 2013 09:59:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AD3A320216 for ; Mon, 25 Nov 2013 09:58:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751241Ab3KYJ6u (ORCPT ); Mon, 25 Nov 2013 04:58:50 -0500 Received: from mailout4.samsung.com ([203.254.224.34]:47440 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750739Ab3KYJ6t (ORCPT ); Mon, 25 Nov 2013 04:58:49 -0500 Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MWT00JN8D1Z9P20@mailout4.samsung.com> for linux-media@vger.kernel.org; Mon, 25 Nov 2013 18:58:47 +0900 (KST) X-AuditID: cbfee61b-b7f166d000007a34-ae-52931f555c43 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 79.44.31284.55F13925; Mon, 25 Nov 2013 18:58:46 +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 <0MWT004BMD1ERF40@mmp2.samsung.com>; Mon, 25 Nov 2013 18:58:45 +0900 (KST) From: Jacek Anaszewski To: linux-media@vger.kernel.org Cc: sw0312.kim@samsung.com, andrzej.p@samsung.com, s.nawrocki@samsung.com, Jacek Anaszewski , Kyungmin Park Subject: [PATCH v2 04/16] s5p-jpeg: Remove superfluous call to the jpeg_bound_align_image function Date: Mon, 25 Nov 2013 10:58:11 +0100 Message-id: <1385373503-1657-5-git-send-email-j.anaszewski@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1385373503-1657-1-git-send-email-j.anaszewski@samsung.com> References: <1385373503-1657-1-git-send-email-j.anaszewski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrLJMWRmVeSWpSXmKPExsVy+t9jQd0w+clBBreELWa9bGex6L36nNHi bNMbdoueDVtZLQ6/aWe1mDH5JZsDm0ffllWMHp83yQUwRXHZpKTmZJalFunbJXBlPP7ezFTw lLPiwe2XbA2MHRxdjJwcEgImEg13X7NC2GISF+6tZ+ti5OIQEpjOKDGvdyI7SEJIoJ1J4sbH MBCbTcBQ4ueL10wgtoiAvMST3htgDcwCSxklLk46AtYgLJAisbmrGcxmEVCVePRgNjOIzSvg LvHj11ygbRxA2xQk5kyyATE5BTwk5k9ihVjlLrHkx0b2CYy8CxgZVjGKphYkFxQnpeca6RUn 5haX5qXrJefnbmIEB8oz6R2MqxosDjEKcDAq8fBOrJ4UJMSaWFZcmXuIUYKDWUmE97Tk5CAh 3pTEyqrUovz4otKc1OJDjNIcLErivAdbrQOFBNITS1KzU1MLUotgskwcnFINjDpXF5b8qX2c //SX1DPWHuf1Z0r+tc/Xk1k+o6WSccqbmpcbuPPWBr9fdCIhc9EFQevpbhWpdwt6T1VL6d84 37/D8W/11fl/Ou4/+CAfLPekwv/S7COx1qGbXuakP1p/d1Hq1DO19XyCx9oiuvM+/3vF4q5t eJkz3TmqadcmCQn9pXfle1weWSixFGckGmoxFxUnAgC3feHVEAIAAA== Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-6.9 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 Aligning capture queue image dimensions while enqueuing output queue doesn't make a sense as the S_FMT ioctl might have not been called for the capture queue until that moment, whereas it is required to know capture format as the type of alignment heavily depends on it. Signed-off-by: Jacek Anaszewski Signed-off-by: Kyungmin Park --- drivers/media/platform/s5p-jpeg/jpeg-core.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/media/platform/s5p-jpeg/jpeg-core.c b/drivers/media/platform/s5p-jpeg/jpeg-core.c index a1366f0..a6ec8c6 100644 --- a/drivers/media/platform/s5p-jpeg/jpeg-core.c +++ b/drivers/media/platform/s5p-jpeg/jpeg-core.c @@ -1089,13 +1089,6 @@ static void s5p_jpeg_buf_queue(struct vb2_buffer *vb) q_data = &ctx->cap_q; q_data->w = tmp.w; q_data->h = tmp.h; - - jpeg_bound_align_image(&q_data->w, S5P_JPEG_MIN_WIDTH, - S5P_JPEG_MAX_WIDTH, q_data->fmt->h_align, - &q_data->h, S5P_JPEG_MIN_HEIGHT, - S5P_JPEG_MAX_HEIGHT, q_data->fmt->v_align - ); - q_data->size = q_data->w * q_data->h * q_data->fmt->depth >> 3; } v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vb);