From patchwork Mon Jul 1 04:04:12 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Seung-Woo Kim X-Patchwork-Id: 2805031 Return-Path: X-Original-To: patchwork-dri-devel@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 F09539F3C3 for ; Mon, 1 Jul 2013 04:04:36 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1376820109 for ; Mon, 1 Jul 2013 04:04:36 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 1008E20108 for ; Mon, 1 Jul 2013 04:04:35 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id EB084E5EF0 for ; Sun, 30 Jun 2013 21:04:34 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout3.samsung.com (mailout3.samsung.com [203.254.224.33]) by gabe.freedesktop.org (Postfix) with ESMTP id B5E9EE5C2F for ; Sun, 30 Jun 2013 21:04:02 -0700 (PDT) Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MP8005DXOMJKQB0@mailout3.samsung.com> for dri-devel@lists.freedesktop.org; Mon, 01 Jul 2013 13:04:01 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.115]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id 16.10.08825.1BFF0D15; Mon, 01 Jul 2013 13:04:01 +0900 (KST) X-AuditID: cbfee68e-b7f276d000002279-9e-51d0ffb1365a Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 12.A3.28381.1BFF0D15; Mon, 01 Jul 2013 13:04:01 +0900 (KST) Received: from localhost.localdomain ([10.90.8.56]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MP8007PPOMM2II0@mmp1.samsung.com>; Mon, 01 Jul 2013 13:04:00 +0900 (KST) From: Seung-Woo Kim To: dri-devel@lists.freedesktop.org, inki.dae@samsung.com Subject: [PATCH 2/2] drm/exynos: initialize the buf_num in vp_video_buffer Date: Mon, 01 Jul 2013 13:04:12 +0900 Message-id: <1372651452-16553-1-git-send-email-sw0312.kim@samsung.com> X-Mailer: git-send-email 1.7.4.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrKLMWRmVeSWpSXmKPExsWyRsSkWHfj/wuBBrM2Cln0njvJZHHl63s2 i0n3J7BYvLh3kcXibNMbdosZk1+yWezdOZnRgd1j+7cHrB73u48zefRtWcUYwBzFZZOSmpNZ llqkb5fAlfHl203mgsUcFQce/WBvYPzN1sXIwSEhYCKxv7eui5ETyBSTuHBvPVCYi0NIYCmj xMe/y5ggEiYSPyfdYoRILGKUeDRxOlRVM5PElN1tzCBVbAI6EvuX/GYFsUUELCUebP0NFmcW qJA4dOsP2CRhAS+JyYcugdksAqoS3dPXsIHYvAJuErs2T4PapiCx4N5bsAUSAp/ZJHp61jFD NAhIfJt8iAXibFmJTQeYIeolJQ6uuMEygVFwASPDKkbR1ILkguKk9CIjveLE3OLSvHS95Pzc TYzAID3971nfDsabB6wPMSYDjZvILCWanA8M8rySeENjMyMLUxNTYyNzSzPShJXEedVarAOF BNITS1KzU1MLUovii0pzUosPMTJxcEo1MDJnnL0s7pVt+WvfufUJisuunNl1SH6Sr87XihlZ 6td2MZ9bap0foNTypIVfo4hN/O3BR/OsFskIec7ftLrdd+bGKC7nlPVuCS9FtYPTlB0tdoqI Kf8utNqy7ZHY7YebLTvX9ahrTP373TLRe9KkWwYuV26cmpTyXeJkwtp7dkt3qNz40fnHc7oS S3FGoqEWc1FxIgC8Zef3aAIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrMIsWRmVeSWpSXmKPExsVy+t9jAd2N/y8EGmw4zmnRe+4kk8WVr+/Z LCbdn8Bi8eLeRRaLs01v2C1mTH7JZrF352RGB3aP7d8esHrc7z7O5NG3ZRVjAHNUA6NNRmpi SmqRQmpecn5KZl66rZJ3cLxzvKmZgaGuoaWFuZJCXmJuqq2Si0+ArltmDtB6JYWyxJxSoFBA YnGxkr4dpgmhIW66FjCNEbq+IUFwPUYGaCBhDWPGl283mQsWc1QcePSDvYHxN1sXIyeHhICJ xM9JtxghbDGJC/fWA8W5OIQEFjFKPJo4HcppZpKYsruNGaSKTUBHYv+S36wgtoiApcSDrb/B 4swCFRKHbv1hArGFBbwkJh+6BGazCKhKdE9fA7aNV8BNYtfmaUwQ2xQkFtx7yzaBkXsBI8Mq RtHUguSC4qT0XEO94sTc4tK8dL3k/NxNjOAoeCa1g3Flg8UhRgEORiUe3gXTLwQKsSaWFVfm HmKU4GBWEuHd/vl8oBBvSmJlVWpRfnxRaU5q8SHGZKDtE5mlRJPzgRGaVxJvaGxiZmRpZG5o YWRsTpqwkjjvgVbrQCGB9MSS1OzU1ILUIpgtTBycUg2M4ToVTzUYC9d9LY7Y1f5tnuFty8s7 i66dnrjowv4iV9+9HAr+8V8feVk+afOaPqcwm1tENvzMt+udV9bzfIlWTz9yeyLbOe2ySz+z m3dl1r99Z933Z9HUPwrC39jXmvRfM1zzLnq5xeWgoi1dW6XMddOulpqoOc208StaNH3ttvp+ /zIjhms5SizFGYmGWsxFxYkAaT5fBMYCAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Cc: kyungmin.park@samsung.com, sw0312.kim@samsung.com, yj44.cho@samsung.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 From: YoungJun Cho The buf_num in vp_video_buffer() should be 1 or 2, but it is not initialized, and only set to 2 in NV12M or NV12MT cases. So this patch initializes the buf_num with 1 as default. Signed-off-by: YoungJun Cho Signed-off-by: Seung-Woo Kim Signed-off-by: Kyungmin Park --- drivers/gpu/drm/exynos/exynos_mixer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/exynos/exynos_mixer.c b/drivers/gpu/drm/exynos/exynos_mixer.c index b1280b4..42ffb71 100644 --- a/drivers/gpu/drm/exynos/exynos_mixer.c +++ b/drivers/gpu/drm/exynos/exynos_mixer.c @@ -379,7 +379,7 @@ static void vp_video_buffer(struct mixer_context *ctx, int win) unsigned long flags; struct hdmi_win_data *win_data; unsigned int x_ratio, y_ratio; - unsigned int buf_num; + unsigned int buf_num = 1; dma_addr_t luma_addr[2], chroma_addr[2]; bool tiled_mode = false; bool crcb_mode = false;