From patchwork Sun Oct 12 20:40:39 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Prabhakar X-Patchwork-Id: 5071981 Return-Path: X-Original-To: patchwork-davinci@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 5C1629F1EE for ; Sun, 12 Oct 2014 20:46:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A477B20179 for ; Sun, 12 Oct 2014 20:46:13 +0000 (UTC) Received: from arroyo.ext.ti.com (arroyo.ext.ti.com [192.94.94.40]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D4B1720176 for ; Sun, 12 Oct 2014 20:46:12 +0000 (UTC) Received: from dflxv15.itg.ti.com ([128.247.5.124]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id s9CKjKlC017508; Sun, 12 Oct 2014 15:45:20 -0500 Received: from DLEE70.ent.ti.com (dlee70.ent.ti.com [157.170.170.113]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id s9CKjKpr017054; Sun, 12 Oct 2014 15:45:20 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.3.174.1; Sun, 12 Oct 2014 15:45:19 -0500 Received: from linux.omap.com (dlelxs01.itg.ti.com [157.170.227.31]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id s9CKjJbZ005360; Sun, 12 Oct 2014 15:45:19 -0500 Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id 54C528062B; Sun, 12 Oct 2014 15:45:19 -0500 (CDT) X-Original-To: davinci-linux-open-source@linux.davincidsp.com Delivered-To: davinci-linux-open-source@linux.davincidsp.com Received: from dlelxv84.itg.ti.com (dlelxv84.itg.ti.com [172.17.0.246]) by linux.omap.com (Postfix) with ESMTP id 41DED80626 for ; Sun, 12 Oct 2014 15:41:07 -0500 (CDT) Received: from red.ext.ti.com (red.ext.ti.com [192.94.93.37]) by dlelxv84.itg.ti.com (8.14.3/8.13.8) with ESMTP id s9CKf7B2026931 for ; Sun, 12 Oct 2014 15:41:07 -0500 Received: from mail6.bemta8.messagelabs.com (mail6.bemta8.messagelabs.com [216.82.243.55]) by red.ext.ti.com (8.13.7/8.13.7) with ESMTP id s9CKf6pS004515 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 12 Oct 2014 15:41:07 -0500 Received: from [216.82.241.195:60253] by server-2.bemta-8.messagelabs.com id 0C/E2-03631-267EA345; Sun, 12 Oct 2014 20:41:06 +0000 X-Env-Sender: prabhakar.csengg@gmail.com X-Msg-Ref: server-8.tower-119.messagelabs.com!1413146463!29362947!1 X-Originating-IP: [209.85.212.179] X-SpamReason: No, hits=0.2 required=7.0 tests=RCVD_ILLEGAL_IP X-StarScan-Received: X-StarScan-Version: 6.12.2; banners=-,-,- X-VirusChecked: Checked Received: (qmail 17335 invoked from network); 12 Oct 2014 20:41:04 -0000 Received: from mail-wi0-f179.google.com (HELO mail-wi0-f179.google.com) (209.85.212.179) by server-8.tower-119.messagelabs.com with RC4-SHA encrypted SMTP; 12 Oct 2014 20:41:04 -0000 Received: by mail-wi0-f179.google.com with SMTP id d1so5924046wiv.12 for ; Sun, 12 Oct 2014 13:41:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=n/gdEKIxFhjFdSZiE5Nd2xE0E/WoLSagQY+1RTa6XY4=; b=kEuCZO7G8CS2wsdSm4+Lqg+GseoALwBSwv2HscsZ+CNO5HGZRpEwBEq9Yjh9TOWQxm QUNWASmqhOZ0zF9JIzBFnryKX8pYKEhrs7jiwROaouLA/MgPKKbd9dmIqsUojLJEkO99 DFtKeCddTezMbl/+Mu4YEcRIUSue9nYcssLzD5U36NPPHkYYdrcv6FFiq048ahlNG0CP iELzPOhCPqWCEaCBCeYmKOMDrqWCuUdF9x2lyszlzP1pVKK8KVBb1l9mPBdd8Fh21ygk xn7c74sbX1fiburXBMAGnyUaCSnJ55vBQuDkpTSKHcTrtTxpIgjUKTlcCl/GxApFRJUe 6k0Q== X-Received: by 10.180.210.231 with SMTP id mx7mr16141998wic.42.1413146463154; Sun, 12 Oct 2014 13:41:03 -0700 (PDT) Received: from tango-charlie.Home ([2.127.193.40]) by mx.google.com with ESMTPSA id y5sm9970930wix.10.2014.10.12.13.41.02 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 12 Oct 2014 13:41:02 -0700 (PDT) From: "Lad, Prabhakar" To: LMML Subject: [PATCH 09/15] media: davinci: vpbe: add support for VB2_DMABUF Date: Sun, 12 Oct 2014 21:40:39 +0100 Message-ID: <1413146445-7304-10-git-send-email-prabhakar.csengg@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1413146445-7304-1-git-send-email-prabhakar.csengg@gmail.com> References: <1413146445-7304-1-git-send-email-prabhakar.csengg@gmail.com> CC: DLOS , LKML X-BeenThere: davinci-linux-open-source@linux.davincidsp.com X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: Errors-To: davinci-linux-open-source-bounces@linux.davincidsp.com X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, 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 Signed-off-by: Lad, Prabhakar --- drivers/media/platform/davinci/vpbe_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/davinci/vpbe_display.c b/drivers/media/platform/davinci/vpbe_display.c index 76450aa..c33b77e 100644 --- a/drivers/media/platform/davinci/vpbe_display.c +++ b/drivers/media/platform/davinci/vpbe_display.c @@ -1450,7 +1450,7 @@ static int vpbe_display_probe(struct platform_device *pdev) q = &disp_dev->dev[i]->buffer_queue; memset(q, 0, sizeof(*q)); q->type = V4L2_BUF_TYPE_VIDEO_OUTPUT; - q->io_modes = VB2_MMAP | VB2_USERPTR; + q->io_modes = VB2_MMAP | VB2_USERPTR | VB2_DMABUF; q->drv_priv = disp_dev->dev[i]; q->ops = &video_qops; q->mem_ops = &vb2_dma_contig_memops;