Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp185093imm; Wed, 29 Aug 2018 17:54:49 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYMXaixDnMDpMZYGIVRPqAlFBQfOp6ra2Z5tGti3fNGkVOXQUuW705TSAobXrefZ8reLEzP X-Received: by 2002:a17:902:6f10:: with SMTP id w16-v6mr7901011plk.216.1535590489211; Wed, 29 Aug 2018 17:54:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535590489; cv=none; d=google.com; s=arc-20160816; b=YosHEU6mvKv10DnPMP7HCSkCptLPxBznrpF/CokmIdSLix+MoC0wvadYcX5p4I3GXD OZaf7hKhBFaaLWp16PBvJCs9Zw95FkVvqhBvQSNtRO9Jt7UCIj7/5VobsEUhOPor69Ph TaKIh1lsHO7ZGP00AaIgi5GO8InSksFQx1mIGtcLkoBzXY+wYnRrhob6j35bIpfGEfMk nTC5TWYMVUxH0MS2u34nfV5RrScKza0DwX+AxvAp86uRaFc6UBASRV63I1tX8X5dsn1w MLEiNDPF5XKmdmbFxJY5tw/GDhL0EKl/SxLjaeWaXQC9gxuDVyMj+/07qJkoy0DXCJPX 8Yzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=8+EEe6Fw5F0ObP3yokdb/YCnQIcXrtVXrmbnvXvPMgw=; b=FGs7c04RDyciTijVTDXiHScPTL7Po98Wc9XmOdoeYIZ8WYsfdnpRBPYg7bN8XyV4fD pw7fcqlihoP1xuBS7z8ZJTyFFzuBrxCBbVwp2IuuwV2v63tMCYY6WIEnOsUbzqoUHg6N Yl6xQn/IfHBgxVmXDrGSD0+2ogsjEwo3Hy4Jf7M2k+kbCU0z9yZ/ZV5Nc+ueVCKVDWLB 1IL/FHK6qmX30GNjr1L9X/K0CE3o7pqnLgHQ74jeiqPGr3h2z13njsbmJIV0mjeztAB0 ypmyjNsVyDX8XLs+s4YYI/c5fxCQZZI7/rmSst+74AiOx6k+tOBSpYuKefdmu3c6Avyw Sy1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@vanguardiasur-com-ar.20150623.gappssmtp.com header.s=20150623 header.b=UpozgOT5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l2-v6si5313657pgb.417.2018.08.29.17.54.33; Wed, 29 Aug 2018 17:54:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@vanguardiasur-com-ar.20150623.gappssmtp.com header.s=20150623 header.b=UpozgOT5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727089AbeH3Ew2 (ORCPT + 99 others); Thu, 30 Aug 2018 00:52:28 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:39142 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725768AbeH3Ew2 (ORCPT ); Thu, 30 Aug 2018 00:52:28 -0400 Received: by mail-pf1-f193.google.com with SMTP id j8-v6so3054453pff.6 for ; Wed, 29 Aug 2018 17:52:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vanguardiasur-com-ar.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=8+EEe6Fw5F0ObP3yokdb/YCnQIcXrtVXrmbnvXvPMgw=; b=UpozgOT5lpvuKGlrwt2oTi5opw2BRr65Hw02XbKm1Y6wl8OX435eJRg9GylkB+lXT6 0EVvc9q7NktSl770ZXDL67afRNq5lpzIOajwb8GI59rWVscfueEyeG004CBOExqddoRW 80+1KDUn/lTDyOnYZnNnJ9saevwy1XC9sgGp0N8AXbWN58efKppXpjjexq+yPeldj9UJ 62rhRrUkeDXRg/FGYbdO8aJha2e+RMJPmQY5yKdsOJKvcA60+ieGdJXXrE5qG8xii6YE b5Le1qo2WnOzRR0yuOrdBPN8sa8SwXMtrwH5cdaAFotVFg2MLf0W5uk/LvGCVuEiCkWj eCKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=8+EEe6Fw5F0ObP3yokdb/YCnQIcXrtVXrmbnvXvPMgw=; b=VelcX9fJpeHIRvJQqxCbDU1qeE4Fw970kTLZz5Ll+vMx28+lmJ2D/vrutSMlAfRRYJ 9w1ERO62eCrvWoLxQpFvuTz5ZdmXboiD8dlYWo7Mm0ZDBXWhjOylB5JgCy0UShOqArd2 UNCZypEizx7nWHssRLgoGhYPNt/x+2y04yhNwDyz+bW0A6wlEOc1gHHl2gVy21FJpHgz P7Yy6tUsls8oCBNtRzBMntwi1f8gBMuv6gv5PwNWda5rT95N6af4aZ9NYGXyov+goRgt hpT68DdArYc5oBjEpmLtP4FE4bkL0d0vyYhIs4aIFD/KPkeyDTOwtA3k+9A6sKoxIZuJ 7j5Q== X-Gm-Message-State: APzg51CECJtTf8o+W3yqxhoeLzQJoEJZdO1762oN6NQNLELD7YBqDORP 7c5djMZDixqKVhuDlglNhEFEo6RPi7mhZYjTbebdXw== X-Received: by 2002:a62:6781:: with SMTP id t1-v6mr8174358pfj.200.1535590378313; Wed, 29 Aug 2018 17:52:58 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a17:90a:5d02:0:0:0:0 with HTTP; Wed, 29 Aug 2018 17:52:57 -0700 (PDT) In-Reply-To: <1535576973-8067-5-git-send-email-eajames@linux.vnet.ibm.com> References: <1535576973-8067-1-git-send-email-eajames@linux.vnet.ibm.com> <1535576973-8067-5-git-send-email-eajames@linux.vnet.ibm.com> From: Ezequiel Garcia Date: Wed, 29 Aug 2018 21:52:57 -0300 Message-ID: Subject: Re: [PATCH 4/4] media: platform: Add Aspeed Video Engine driver To: Eddie James Cc: Linux Kernel Mailing List , linux-media , linux-aspeed@lists.ozlabs.org, openbmc@lists.ozlabs.org, andrew@aj.id.au, Mauro Carvalho Chehab , joel@jms.id.au, Rob Herring , Mark Rutland , devicetree@vger.kernel.org, linux-clk@vger.kernel.org, Michael Turquette , Stephen Boyd , linux-arm-kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Eddie, On 29 August 2018 at 18:09, Eddie James wrote: > The Video Engine (VE) embedded in the Aspeed AST2400 and AST2500 SOCs > can capture and compress video data from digital or analog sources. With > the Aspeed chip acting a service processor, the Video Engine can capture > the host processor graphics output. > > Add a V4L2 driver to capture video data and compress it to JPEG images, > making the data available through a standard read interface. > > Signed-off-by: Eddie James > --- > drivers/media/platform/Kconfig | 8 + > drivers/media/platform/Makefile | 1 + > drivers/media/platform/aspeed-video.c | 1307 +++++++++++++++++++++++++++++++++ > 3 files changed, 1316 insertions(+) > create mode 100644 drivers/media/platform/aspeed-video.c > > diff --git a/drivers/media/platform/Kconfig b/drivers/media/platform/Kconfig > index 94c1fe0..e599245 100644 > --- a/drivers/media/platform/Kconfig > +++ b/drivers/media/platform/Kconfig > @@ -32,6 +32,14 @@ source "drivers/media/platform/davinci/Kconfig" > > source "drivers/media/platform/omap/Kconfig" > > +config VIDEO_ASPEED > + tristate "Aspeed AST2400 and AST2500 Video Engine driver" > + depends on VIDEO_V4L2 It seems you are not using videobuf2. I think it should simplify the read I/O part and at the same time expose the other capture methods. There are plenty of examples to follow. Regards, Eze