From patchwork Tue Oct 2 14:27:24 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Stanislawski X-Patchwork-Id: 11934 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 9DD871A52FC for ; Tue, 2 Oct 2012 14:29:33 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id 50BF1A186EC for ; Tue, 2 Oct 2012 14:29:33 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so14258231iej.11 for ; Tue, 02 Oct 2012 07:29:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:x-auditid :from:to:date:message-id:x-mailer:in-reply-to:references :x-brightmail-tracker:cc:subject:x-beenthere:x-mailman-version :precedence:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:sender:errors-to:x-gm-message-state; bh=CtsIlS5kbbro9IhYLAIXXKya52lTa6IS+qrnR3gYVh8=; b=pAfHlsYPsViTuJcVc4cemOCYHoNEvp/GHzDOFv70GQM6FtBICGpCJAqFRqvpgOmJ6z S5vOID87zHjdnigMl6KKxayXjc3pLnZNvLxoYIpOrzHKmFwQ03G1IbbQrp+ALJlGCOk7 1ZB3p+1PdLvB2EOyX+3ph456H7E6LcQwsStdFDf5Z15TcQip23uX1ovPZlo00w40nnyH /jEf7zld360XXkhU/TScfrQiAgPaiJGv/sXU/As27/tlsoD4F2VZICKGMDkcyWdCQmdt 9GD4Bztm2i0ouvW8lnXpF6PPAkC9snkmucams87a9NDvpzMlc+cpVDwLixtJHFuX3WmJ /idA== Received: by 10.50.7.212 with SMTP id l20mr8917972iga.43.1349188173061; Tue, 02 Oct 2012 07:29:33 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.184.232 with SMTP id ex8csp84995igc; Tue, 2 Oct 2012 07:29:32 -0700 (PDT) Received: by 10.204.131.89 with SMTP id w25mr6781824bks.35.1349188171624; Tue, 02 Oct 2012 07:29:31 -0700 (PDT) Received: from mombin.canonical.com (mombin.canonical.com. [91.189.95.16]) by mx.google.com with ESMTP id ig14si1704091bkc.54.2012.10.02.07.29.30; Tue, 02 Oct 2012 07:29:31 -0700 (PDT) Received-SPF: neutral (google.com: 91.189.95.16 is neither permitted nor denied by best guess record for domain of linaro-mm-sig-bounces@lists.linaro.org) client-ip=91.189.95.16; Authentication-Results: mx.google.com; spf=neutral (google.com: 91.189.95.16 is neither permitted nor denied by best guess record for domain of linaro-mm-sig-bounces@lists.linaro.org) smtp.mail=linaro-mm-sig-bounces@lists.linaro.org Received: from localhost ([127.0.0.1] helo=mombin.canonical.com) by mombin.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1TJ3TV-0004jY-Dw; Tue, 02 Oct 2012 14:29:29 +0000 Received: from mailout1.samsung.com ([203.254.224.24]) by mombin.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1TJ3TT-0004j2-T8 for linaro-mm-sig@lists.linaro.org; Tue, 02 Oct 2012 14:29:28 +0000 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MB9009UJS8V3500@mailout1.samsung.com> for linaro-mm-sig@lists.linaro.org; Tue, 02 Oct 2012 23:29:26 +0900 (KST) X-AuditID: cbfee61a-b7f726d000000ec7-52-506afa46da34 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id DD.9E.03783.64AFA605; Tue, 02 Oct 2012 23:29:26 +0900 (KST) Received: from mcdsrvbld02.digital.local ([106.116.37.23]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MB9005A7S65K790@mmp2.samsung.com> for linaro-mm-sig@lists.linaro.org; Tue, 02 Oct 2012 23:29:26 +0900 (KST) From: Tomasz Stanislawski To: linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org Date: Tue, 02 Oct 2012 16:27:24 +0200 Message-id: <1349188056-4886-14-git-send-email-t.stanislaws@samsung.com> X-Mailer: git-send-email 1.7.10 In-reply-to: <1349188056-4886-1-git-send-email-t.stanislaws@samsung.com> References: <1349188056-4886-1-git-send-email-t.stanislaws@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrMJMWRmVeSWpSXmKPExsVy+t9jQV23X1kBBk/myVp8ufKQyYHR4/a/ x8wBjFFcNimpOZllqUX6dglcGRO3qxa0sFe8m3ONrYHxO2sXIyeHhICJxLODs6BsMYkL99az dTFycQgJTGeUmP9gOiOEs5ZJYumkfnaQKjagjmNLPjOC2CICDhKn785iBiliFljDLPFi5Q02 kIQwUOL4/y3MIDaLgKrEn7XrwOK8Ah4SrV8uMUGsk5d4er8PLM4JFP/55AILiC0k4C6xZ3kT 2wRG3gWMDKsYRVMLkguKk9JzDfWKE3OLS/PS9ZLzczcxgr3+TGoH48oGi0OMAhyMSjy8O09m BgixJpYVV+YeYpTgYFYS4bW+nxUgxJuSWFmVWpQfX1Sak1p8iFGag0VJnLfZIyVASCA9sSQ1 OzW1ILUIJsvEwSnVwLjV3mXzTqPclYa7yqee9TVK9LFP7HKf8Euw8rRA/ST9nMKPU9wme2v8 6n7n8JD1y93VSzSDbrXGHM10rpHeesYqSyb+98m48/+fnAqK4RVcaNL5V+PE34Yfd6yN7uaU n7/46sf6nN+XzJ2/OfHtybu0zmNnqI5TW5juCluT5Fflre0CtX75q5RYijMSDbWYi4oTAaF3 ZVP2AQAA Cc: k.debski@samsung.com, s.nawrocki@samsung.com, pawel@osciak.com, sumit.semwal@ti.com, mchehab@redhat.com, robdclark@gmail.com, linaro-mm-sig@lists.linaro.org, kyungmin.park@samsung.com, laurent.pinchart@ideasonboard.com, airlied@redhat.com, remi@remlab.net Subject: [Linaro-mm-sig] [PATCHv9 13/25] v4l: vivi: support for dmabuf importing X-BeenThere: linaro-mm-sig@lists.linaro.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Unified memory management interest group." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linaro-mm-sig-bounces@lists.linaro.org Errors-To: linaro-mm-sig-bounces@lists.linaro.org X-Gm-Message-State: ALoCoQmuPQMIbBwyIJj4u8MubF+aY5zUSqsGPwf2xzcQqBJhpSJzQdelGZqpgFFw17uw2Jk/AfPR 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 --- drivers/media/video/vivi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/video/vivi.c b/drivers/media/video/vivi.c index a05494b..4fb38b9 100644 --- a/drivers/media/video/vivi.c +++ b/drivers/media/video/vivi.c @@ -1284,7 +1284,7 @@ static int __init vivi_create_instance(int inst) q = &dev->vb_vidq; memset(q, 0, sizeof(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;