From patchwork Wed Oct 10 14:46:33 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Stanislawski X-Patchwork-Id: 1574441 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork1.kernel.org (Postfix) with ESMTP id 5FBDC3FE36 for ; Wed, 10 Oct 2012 15:07:57 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 33CDDA02FA for ; Wed, 10 Oct 2012 08:07:57 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) by gabe.freedesktop.org (Postfix) with ESMTP id 43AD29F729 for ; Wed, 10 Oct 2012 07:56:45 -0700 (PDT) Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MBO00LK9MUKOO30@mailout1.samsung.com> for dri-devel@lists.freedesktop.org; Wed, 10 Oct 2012 23:56:44 +0900 (KST) X-AuditID: cbfee61b-b7f2b6d000000f14-c2-50758cacd72d Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id FA.CB.03860.CAC85705; Wed, 10 Oct 2012 23:56:44 +0900 (KST) Received: from mcdsrvbld02.digital.local ([106.116.37.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 <0MBO002YDME0EC70@mmp1.samsung.com> for dri-devel@lists.freedesktop.org; Wed, 10 Oct 2012 23:56:44 +0900 (KST) From: Tomasz Stanislawski To: linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: [PATCHv10 14/26] v4l: s5p-tv: mixer: support for dmabuf importing Date: Wed, 10 Oct 2012 16:46:33 +0200 Message-id: <1349880405-26049-15-git-send-email-t.stanislaws@samsung.com> X-Mailer: git-send-email 1.7.10 In-reply-to: <1349880405-26049-1-git-send-email-t.stanislaws@samsung.com> References: <1349880405-26049-1-git-send-email-t.stanislaws@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrMJMWRmVeSWpSXmKPExsVy+t9jAd01PaUBBo07pS2ufH3P5sDocb/7 OFMAYxSXTUpqTmZZapG+XQJXxtx1WxkLPrFXLD7zmbWB8RFbFyMnh4SAicT3k/OYIGwxiQv3 1gPFuTiEBBYxSvyYc5kFJCEksI5JYtUOAxCbDajh2JLPjCC2iICDxOm7s5hBGpgF1jBLvFh5 A2yqsICXxML+s2BTWQRUJTY8OcEMYvMKeEr8nHERapu8xNP7fWD1nEDxC/OmM0Ms85D4v34z 0wRG3gWMDKsYRVMLkguKk9JzjfSKE3OLS/PS9ZLzczcxgr3+THoH46oGi0OMAhyMSjy8FRkl AUKsiWXFlbmHGCU4mJVEeE19SgOEeFMSK6tSi/Lji0pzUosPMUpzsCiJ8zZ7pAQICaQnlqRm p6YWpBbBZJk4OKUaGJu/nlKdZKR3aGt+csJ9tdMbvh9tyXZLaNlX1viOpfnHN0kuv/+tD9dc SdRKSVymqlaTdYuxheXbQ65zBlflf3l/uFMzge+qRuB7z0dbmRfdWLhYJF1x6+UKA4Ed16Z2 eOb5dijvK7lZsOue7bODR/4r/zLibJyw4a7iS+WAtMuSudU1wuU5pUosxRmJhlrMRcWJAA9V jML2AQAA Cc: t.stanislaws@samsung.com, s.nawrocki@samsung.com, pawel@osciak.com, mchehab@redhat.com, daniel.vetter@ffwll.ch, subashrp@gmail.com, linaro-mm-sig@lists.linaro.org, kyungmin.park@samsung.com, laurent.pinchart@ideasonboard.com, zhangfei.gao@gmail.com, airlied@redhat.com, remi@remlab.net, m.szyprowski@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 This patch enhances s5p-tv with support for DMABUF importing via V4L2_MEMORY_DMABUF memory type. Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park Acked-by: Hans Verkuil --- drivers/media/platform/s5p-tv/mixer_video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/s5p-tv/mixer_video.c b/drivers/media/platform/s5p-tv/mixer_video.c index 0c1cd89..2421e527 100644 --- a/drivers/media/platform/s5p-tv/mixer_video.c +++ b/drivers/media/platform/s5p-tv/mixer_video.c @@ -1093,7 +1093,7 @@ struct mxr_layer *mxr_base_layer_create(struct mxr_device *mdev, layer->vb_queue = (struct vb2_queue) { .type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE, - .io_modes = VB2_MMAP | VB2_USERPTR, + .io_modes = VB2_MMAP | VB2_USERPTR | VB2_DMABUF, .drv_priv = layer, .buf_struct_size = sizeof(struct mxr_buffer), .ops = &mxr_video_qops,