From patchwork Wed Oct 10 14:46:32 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Stanislawski X-Patchwork-Id: 1574221 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id E17E2DFB34 for ; Wed, 10 Oct 2012 14:56:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756738Ab2JJO4g (ORCPT ); Wed, 10 Oct 2012 10:56:36 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:61449 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754050Ab2JJO4f (ORCPT ); Wed, 10 Oct 2012 10:56:35 -0400 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MBO00GJGMU5P590@mailout2.samsung.com> for linux-media@vger.kernel.org; Wed, 10 Oct 2012 23:56:35 +0900 (KST) X-AuditID: cbfee61a-b7f726d000000ec7-5a-50758ca2bd61 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 2F.1A.03783.2AC85705; Wed, 10 Oct 2012 23:56:35 +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:34 +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 13/26] v4l: vivi: support for dmabuf importing Date: Wed, 10 Oct 2012 16:46:32 +0200 Message-id: <1349880405-26049-14-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+NgFnrIJMWRmVeSWpSXmKPExsVy+t9jAd3FPaUBBvPWMlr0bNjK6sDo8XmT XABjFJdNSmpOZllqkb5dAlfGliX/2Qu2s1c8aJFtYFzC1sXIySEhYCIx4UoPC4QtJnHh3nqg OBeHkMAiRonORZOgnFVMEjOebACrYgPqOLbkMyOILSLgIHH67ixmkCJmgTXMEi9W3gAbKyzg KDHl4hmmLkYODhYBVYlrSz1AwrwCnhLnF6+A2iwv8fR+H5jNCRS/MG86M4gtJOAh8X/9ZqYJ jLwLGBlWMYqmFiQXFCel5xrqFSfmFpfmpesl5+duYgR7/JnUDsaVDRaHGAU4GJV4eDOiSgKE WBPLiitzDzFKcDArifCa+pQGCPGmJFZWpRblxxeV5qQWH2KU5mBREudt9kgJEBJITyxJzU5N LUgtgskycXBKNTAWG5ltN3zj9SMl5kzM+XvZE2d38bmIdrhdbLj89ePSgoZ2ywV9jKanOrX2 n5/JevD4GbuuX1rxLnsn+f9v67ePVAo2TrpntWeF1mEFAaG3HaqG65Q3+E14e2DSvR+pjQF2 SxcG6H70vDo7I78znX3J5L7l3PlxPpvUtfKmzOd4sthQqUXC116JpTgj0VCLuag4EQCJpo1N 9AEAAA== Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org This patch enhances VIVI driver with a support for importing a buffer from DMABUF file descriptors. Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park Acked-by: Hans Verkuil --- drivers/media/platform/vivi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/vivi.c b/drivers/media/platform/vivi.c index b366b05..9e077bb 100644 --- a/drivers/media/platform/vivi.c +++ b/drivers/media/platform/vivi.c @@ -1308,7 +1308,7 @@ static int __init vivi_create_instance(int inst) /* initialize queue */ q = &dev->vb_vidq; q->type = V4L2_BUF_TYPE_VIDEO_CAPTURE; - q->io_modes = VB2_MMAP | VB2_USERPTR | VB2_READ; + q->io_modes = VB2_MMAP | VB2_USERPTR | VB2_DMABUF | VB2_READ; q->drv_priv = dev; q->buf_struct_size = sizeof(struct vivi_buffer); q->ops = &vivi_video_qops;