From patchwork Tue Nov 19 14:26:56 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacek Anaszewski X-Patchwork-Id: 3202461 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 51A489F3A0 for ; Tue, 19 Nov 2013 14:27:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 35F9020318 for ; Tue, 19 Nov 2013 14:27:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0681120306 for ; Tue, 19 Nov 2013 14:27:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752982Ab3KSO1o (ORCPT ); Tue, 19 Nov 2013 09:27:44 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:19210 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752960Ab3KSO1k (ORCPT ); Tue, 19 Nov 2013 09:27:40 -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 <0MWI00LYLLI3VD30@mailout2.samsung.com> for linux-media@vger.kernel.org; Tue, 19 Nov 2013 23:27:39 +0900 (KST) X-AuditID: cbfee61b-b7fd56d000001fc6-5d-528b755a67b8 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id F9.46.08134.A557B825; Tue, 19 Nov 2013 23:27:39 +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 <0MWI00IBKLHFEGB0@mmp1.samsung.com>; Tue, 19 Nov 2013 23:27:38 +0900 (KST) From: Jacek Anaszewski To: linux-media@vger.kernel.org Cc: kyungmin.park@samsung.com, s.nawrocki@samsung.com, sw0312.kim@samsung.com, Jacek Anaszewski Subject: [PATCH 04/16] s5p-jpeg: Remove superfluous call to the jpeg_bound_align_image function Date: Tue, 19 Nov 2013 15:26:56 +0100 Message-id: <1384871228-6648-5-git-send-email-j.anaszewski@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1384871228-6648-1-git-send-email-j.anaszewski@samsung.com> References: <1384871228-6648-1-git-send-email-j.anaszewski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrJJMWRmVeSWpSXmKPExsVy+t9jAd3o0u4gg7cFFr1XnzNanG16w27R s2Erq8XhN+2sFjMmv2RzYPXo27KK0ePzJrkApigum5TUnMyy1CJ9uwSujMffm5kKnnJWPLj9 kq2BsYOji5GTQ0LARKL35lo2CFtM4sK99UA2F4eQwCJGiQ/bJzFDOO1MEg86ehlBqtgEDCV+ vnjNBGKLCMhLPOm9AdbNLFAjMWXrDXYQW1ggUWLmjUYwm0VAVeLxvCNg9bwC7hI3lp8CqucA 2qYgMWeSDUiYU8BDYsrC7WDlQkAl5zeeZJ/AyLuAkWEVo2hqQXJBcVJ6rpFecWJucWleul5y fu4mRnCAPJPewbiqweIQowAHoxIP7wT3riAh1sSy4srcQ4wSHMxKIryN+d1BQrwpiZVVqUX5 8UWlOanFhxilOViUxHkPtloHCgmkJ5akZqemFqQWwWSZODilGhg7OefGXF3ev3fHwdR3lzU8 NPd/k1h42fFvyjH7VZnntY6d2LaDX0/khHkw78+6tUuU/Y5+Uc5L8THXNPzy3M9wN9ft2P2V ZYxRT7vum5gXvmYU/z1tznzT2Ik2k3rmHAxZ9rb80urNQdt7br/+VZB5oOSG60bxYzFPitbF ampEv0zaHF/D5bVMiaU4I9FQi7moOBEAm46c+AwCAAA= 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.4 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);