From patchwork Wed May 14 06:32:39 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: 4173001 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 304AE9F23C for ; Wed, 14 May 2014 06:32:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 71F2A2035D for ; Wed, 14 May 2014 06:32:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 904A220364 for ; Wed, 14 May 2014 06:32:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751447AbaENGcr (ORCPT ); Wed, 14 May 2014 02:32:47 -0400 Received: from mail-pa0-f50.google.com ([209.85.220.50]:39329 "EHLO mail-pa0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751351AbaENGcq (ORCPT ); Wed, 14 May 2014 02:32:46 -0400 Received: by mail-pa0-f50.google.com with SMTP id fb1so1282392pad.9 for ; Tue, 13 May 2014 23:32:46 -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=g/FaABBUsx88U9z6TkAsf44QBDh3XSXUz0xSoIc0jUI=; b=mZHIpt5r3UKIFz9raNVIH8kFQw8ydxKDSShY7aug4OYbeBjuum+OvIG2GVzTUAOk5w kp5b37IEssGBKf7GgnIBUG01LfIJVKOYwVLosMgQ4j0+t09hnKXQ0agW/j3Hgt8inL6b epIEqeO/rDa4aANM9fOr2CpeL68+FB4an3loq9D9QxxbHu1Vv2D84NeijChoVzzF0kjL XAo5hLaBM7wsGiRKfIOQfd/yaJpb40RXmf0/eBD1msfGLqNbRHco2ueB5LCw093zGL6+ LaJpF+mgyYRBRWxjvIiqP3Dx9juSzDZB1PLLemo2vz1/5wHxKLE444nRWVpV/4shwPSj FWTQ== X-Received: by 10.66.191.39 with SMTP id gv7mr2001067pac.150.1400049166247; Tue, 13 May 2014 23:32:46 -0700 (PDT) Received: from localhost.localdomain ([14.140.216.146]) by mx.google.com with ESMTPSA id cj1sm3869329pac.40.2014.05.13.23.32.43 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 13 May 2014 23:32:45 -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, arunkk.samsung@gmail.com Subject: [PATCH] [media] s5p-mfc: Update scratch buffer size for MPEG4 Date: Wed, 14 May 2014 12:02:39 +0530 Message-Id: <1400049159-801-1-git-send-email-arun.kk@samsung.com> X-Mailer: git-send-email 1.7.9.5 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,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 Update the MPEG4 decoder scratch buffer size as per the new v6 firmware. This updation is increasing the size and so is backward compatible with older v6 firmwares. Signed-off-by: Arun Kumar K --- drivers/media/platform/s5p-mfc/regs-mfc-v6.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/media/platform/s5p-mfc/regs-mfc-v6.h b/drivers/media/platform/s5p-mfc/regs-mfc-v6.h index b47567c..fd04f84 100644 --- a/drivers/media/platform/s5p-mfc/regs-mfc-v6.h +++ b/drivers/media/platform/s5p-mfc/regs-mfc-v6.h @@ -382,8 +382,7 @@ (DIV_ROUND_UP((mbw) * (mbh), 32) * 16)) #define S5P_FIMV_SCRATCH_BUF_SIZE_H264_DEC_V6(w, h) (((w) * 192) + 64) #define S5P_FIMV_SCRATCH_BUF_SIZE_MPEG4_DEC_V6(w, h) \ - ((w) * ((h) * 64 + 144) + (2048/16 * (h) * 64) + \ - (2048/16 * 256 + 8320)) + ((w) * 144 + 8192 * (h) + 49216 + 1048576) #define S5P_FIMV_SCRATCH_BUF_SIZE_VC1_DEC_V6(w, h) \ (2096 * ((w) + (h) + 1)) #define S5P_FIMV_SCRATCH_BUF_SIZE_H263_DEC_V6(w, h) ((w) * 400)