From patchwork Mon May 19 12:33:01 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arun Kumar K X-Patchwork-Id: 4201811 Return-Path: X-Original-To: patchwork-linux-samsung-soc@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 702C29F37E for ; Mon, 19 May 2014 12:33:36 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9DC84200E6 for ; Mon, 19 May 2014 12:33:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 97788200E3 for ; Mon, 19 May 2014 12:33:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932094AbaESMd3 (ORCPT ); Mon, 19 May 2014 08:33:29 -0400 Received: from mail-pb0-f49.google.com ([209.85.160.49]:33992 "EHLO mail-pb0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754538AbaESMd2 (ORCPT ); Mon, 19 May 2014 08:33:28 -0400 Received: by mail-pb0-f49.google.com with SMTP id jt11so5762284pbb.8 for ; Mon, 19 May 2014 05:33:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=njroVJyzl0+9CMTlfZWdeDCnPDaw07C0+DL+u/iZKO0=; b=MgE5ry6ysEtkSXTGv2ztQwxSam0G0kodGToBYkVFyoh/dxKX6LLqPfVRzg9ATBo1Zu /8uU8mXer8FyX/Pv3OJVOL34Zj5VAYbUTiyhcxeR2LLsIP8PoQBSH9pQ8kjEgr6Vi7z8 vBvRInvv3LrloUVbOyKG0YY0xcem2zLkjGwGCYSMWwFmg74hzHhCXT/9B27TVYy7yW8V k/mbhGaQSgTJwJ4SpZyJ4ecaLBiTY7pxLkjKqf6gn/+ZEyzkif9fOFZjG+s55KznII9m SV22cuuetgJtjQeuVed+Afy5YhwoevVP9VvMZT56nHEjKEwALgvZXBQJhY2x8uy8Tlr7 CAUw== X-Received: by 10.68.164.100 with SMTP id yp4mr37298857pbb.136.1400502807732; Mon, 19 May 2014 05:33:27 -0700 (PDT) Received: from localhost.localdomain ([14.140.216.146]) by mx.google.com with ESMTPSA id bz4sm29931786pbb.12.2014.05.19.05.33.25 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 19 May 2014 05:33:27 -0700 (PDT) From: Arun Kumar K To: linux-media@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: k.debski@samsung.com, posciak@chromium.org, avnd.kiran@samsung.com, arunkk.samsung@gmail.com Subject: [PATCH 05/10] [media] s5p-mfc: Update scratch buffer size for VP8 encoder Date: Mon, 19 May 2014 18:03:01 +0530 Message-Id: <1400502786-4826-6-git-send-email-arun.kk@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1400502786-4826-1-git-send-email-arun.kk@samsung.com> References: <1400502786-4826-1-git-send-email-arun.kk@samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham 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 From: Kiran AVND Scratch buffer size updated for vp8 encoding as per the latest v7 firmware. As the new macro increases the scratch buffer size, it is backward compatible with the older firmware too. Signed-off-by: Kiran AVND Signed-off-by: Arun Kumar K --- drivers/media/platform/s5p-mfc/regs-mfc-v7.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/media/platform/s5p-mfc/regs-mfc-v7.h b/drivers/media/platform/s5p-mfc/regs-mfc-v7.h index ea5ec2a..5dfa149 100644 --- a/drivers/media/platform/s5p-mfc/regs-mfc-v7.h +++ b/drivers/media/platform/s5p-mfc/regs-mfc-v7.h @@ -56,6 +56,7 @@ (SZ_1M + ((w) * 144) + (8192 * (h)) + 49216) #define S5P_FIMV_SCRATCH_BUF_SIZE_VP8_ENC_V7(w, h) \ - (((w) * 48) + (((w) + 1) / 2 * 128) + 144 + 8192) + (((w) * 48) + 8192 + ((((w) + 1) / 2) * 128) + 144 + \ + ((((((w) * 16) * ((h) * 16)) * 3) / 2) * 4)) #endif /*_REGS_MFC_V7_H*/