From patchwork Wed May 7 11:34:13 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: 4127161 Return-Path: X-Original-To: patchwork-linux-samsung-soc@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 278D7BFF02 for ; Wed, 7 May 2014 11:34:22 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 60F81202F2 for ; Wed, 7 May 2014 11:34:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D839E202EB for ; Wed, 7 May 2014 11:34:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932554AbaEGLeT (ORCPT ); Wed, 7 May 2014 07:34:19 -0400 Received: from mail-pa0-f49.google.com ([209.85.220.49]:38057 "EHLO mail-pa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932368AbaEGLeS (ORCPT ); Wed, 7 May 2014 07:34:18 -0400 Received: by mail-pa0-f49.google.com with SMTP id lj1so1077709pab.36 for ; Wed, 07 May 2014 04:34:18 -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; bh=Ps9MHADlKq3xqmFaXlcK80ErPmJPEI9qFagmuASao0s=; b=FHdZqmwS6W0SMNQvlidU/LQat0kHJ5FDnWO8AdAwLfXYya2vSbzpQDKXXNaqt0Q6Gz UeodcvVAC2OBVBb/Og0uWIYmp1nCtto9EDPKj6C5AD41Fc3MqIw6yZXAgTtVte/Yjccr 5Ys+sw4iCfcrfACHcsPqVrh+pdNiR87GZO5UfRST1CjLpInH4HQMfjkbuavsv5ttIeuN quEG9/eLO++9dTxHkNPDxmEUYiVAF0GnRU7y7hEUA8CzdooOpaZ8SPdQIKmh2b+5183W 5e1G+6+14yT4YNB6Tcb8QR4zadeQirYIedJylOHxGp0DrGJv07wqFuPtt6J18TTHOkMg TZOw== X-Received: by 10.66.233.72 with SMTP id tu8mr18001471pac.112.1399462457980; Wed, 07 May 2014 04:34:17 -0700 (PDT) Received: from localhost.localdomain ([14.140.216.146]) by mx.google.com with ESMTPSA id vx10sm112296188pac.17.2014.05.07.04.34.14 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 07 May 2014 04:34:17 -0700 (PDT) From: Arun Kumar K To: linux-media@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: k.debski@samsung.com, s.nawrocki@samsung.com, avnd.kiran@samsung.com, arunkk.samsung@gmail.com Subject: [PATCH] [media] s5p-mfc: Update scratch buffer size for VP8 encoder Date: Wed, 7 May 2014 17:04:13 +0530 Message-Id: <1399462453-21966-1-git-send-email-arun.kk@samsung.com> X-Mailer: git-send-email 1.7.9.5 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 82c96fa..1a5c6fd 100644 --- a/drivers/media/platform/s5p-mfc/regs-mfc-v7.h +++ b/drivers/media/platform/s5p-mfc/regs-mfc-v7.h @@ -54,6 +54,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*/