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: 1574231 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 91C193FE36 for ; Wed, 10 Oct 2012 14:56:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756743Ab2JJO4q (ORCPT ); Wed, 10 Oct 2012 10:56:46 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:20933 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754050Ab2JJO4p (ORCPT ); Wed, 10 Oct 2012 10:56:45 -0400 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 linux-media@vger.kernel.org; Wed, 10 Oct 2012 23:56:44 +0900 (KST) X-AuditID: cbfee61b-b7f2b6d000000f14-c5-50758cacc88d Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 3B.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 linux-media@vger.kernel.org; Wed, 10 Oct 2012 23:56:44 +0900 (KST) From: Tomasz Stanislawski To: linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org Cc: airlied@redhat.com, m.szyprowski@samsung.com, t.stanislaws@samsung.com, kyungmin.park@samsung.com, laurent.pinchart@ideasonboard.com, sumit.semwal@ti.com, daeinki@gmail.com, daniel.vetter@ffwll.ch, robdclark@gmail.com, pawel@osciak.com, linaro-mm-sig@lists.linaro.org, hverkuil@xs4all.nl, remi@remlab.net, subashrp@gmail.com, mchehab@redhat.com, zhangfei.gao@gmail.com, s.nawrocki@samsung.com, k.debski@samsung.com 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+t9jAd01PaUBBk87FSx6NmxldWD0+LxJ LoAxissmJTUnsyy1SN8ugStj7rqtjAWf2CsWn/nM2sD4iK2LkZNDQsBE4v7mXiYIW0ziwr31 QHEuDiGBRYwSbWffMUI4q5gktje1gVWxAXUcW/KZEcQWEXCQOH13FjNIEbPAGmaJFytvgI0V FvCSWNh/FqyBRUBVYsOTE8wgNq+Ap8TPGReh1slLPL3fB1bPCRS/MG86WI2QgIfE//WbmSYw 8i5gZFjFKJpakFxQnJSea6RXnJhbXJqXrpecn7uJEez1Z9I7GFc1WBxiFOBgVOLhrcgoCRBi TSwrrsw9xCjBwawkwmvqUxogxJuSWFmVWpQfX1Sak1p8iFGag0VJnLfZIyVASCA9sSQ1OzW1 ILUIJsvEwSnVwLjGySRvWuSfN+Y9e6c1nnsyS1t67gmzwNxSl2O55ol7ZvfYv2KXXF1n/oXH cdGurY/dzFU0skVSsnbeLuk9w9C/7deC3WXXPwrMMIqIvpTan7M3evub80K3urbfZ/ktFzn1 YoF64dWaGzunWOosvtjvLmm8mq/PRiXKqVny7MGntxrO6C/wmqnEUpyRaKjFXFScCAAWMtEq 9gEAAA== Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.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,