Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp10190794imu; Wed, 5 Dec 2018 18:16:43 -0800 (PST) X-Google-Smtp-Source: AFSGD/XygezRUiArQcjEd26anUCEwk5/+Ji3RJtRR2LE2vHD9vTjpE7/c6JEH2rNJgnLa8qviqnO X-Received: by 2002:a63:6302:: with SMTP id x2mr22332425pgb.183.1544062603381; Wed, 05 Dec 2018 18:16:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544062603; cv=none; d=google.com; s=arc-20160816; b=k+i66W7cpAKCl1PkNUhjd4ERVAZqWMF/JSklJeDAL0gW4P6aopdwABsDGfc0f7ANL3 n3A56Hr1dUQQXENFx2QjLYIUpZNH5x6msnv/Dy4gqkJjpxzrQTHerTQtx8xZtNEDue6e hl1cfQ7yTu72pXTc/7u/g5qnvCuFrHnKKim88NvV2WkbPFeElPmM3ndG2w1jh3ySKViB MVdeVUqIKlyrQIut5twz+hDKfjgBUyjrs1WdG6/aCp0gy15UBNW96rmREiz5UDJODzgl /mIoq/NpJuoaYJwlyi5mMSGOFJTEWj0ra3PlIDxyfGuaHrWBNGyNKRNYW089M84Huxo6 8zOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=qKkQXlA4+xjc3Ix6LWY0Qq/nz02AU2Nkdps9/xN46vI=; b=tuDSL/W+gxufAealChOetYN6Ctdm29utm9QjkktT+pzVqjdytBo1LgTGScjdnjKKjC s3s+MpCtJ40IQrdcnVZ3s8gmcQOhN/mugdNUWqcbNgQl+XCA1gdk+y4dX3DGIeGjpYn/ UQgv+ePj0Ebe1zxZZxZ4JFJ+B5ZeWeNIHSHQWPMctzZNDGC8GSoJnGlu13jWRvwWcX2j BUruomTgQQkDB23ftl3t16J3LVMHh0U1RubYjrXopSCH1yOoP8Irgs7iVI4yMN0Lxozl 4SsoA1FgsAEGU6V/Srd5wmzuXibhFBN5dkcGtcO9Q5YwHDv6OeVgbxlDRT7onegU2CjG HeiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@plaes.org header.s=mail header.b=OJO043c0; 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 r10si19212513pgg.143.2018.12.05.18.16.28; Wed, 05 Dec 2018 18:16:43 -0800 (PST) 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=fail header.i=@plaes.org header.s=mail header.b=OJO043c0; 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 S1728867AbeLFCPm (ORCPT + 99 others); Wed, 5 Dec 2018 21:15:42 -0500 Received: from plaes.org ([188.166.43.21]:35368 "EHLO plaes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727712AbeLFCPl (ORCPT ); Wed, 5 Dec 2018 21:15:41 -0500 Received: from plaes.org (localhost [127.0.0.1]) by plaes.org (Postfix) with ESMTPSA id D9C8440588; Thu, 6 Dec 2018 02:15:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=plaes.org; s=mail; t=1544062538; bh=9714Czk1Qqpg4HbknhpRUPDNUe7v/H2WZQf5+YJ+ii0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OJO043c0GChxb041Ey3YiZJsCNW5H+GcpSiM+QW9AsBnLNTzD3mcKbO/AKxR4wxKE iS0weBKIyhd1TPpcvFaxRsOHRnukfjadV6y0MRHq8n3+hM3BTYj7ptho4ZGeMP9x27 hPu0o1Ap8kM5KwmZPF1vcFNunp+EMoUWS8WgIx9TUVpDItrl58glEwzdOBtgzHnW+q NKHIn2a74ELU2KxFA6HN06Nbr521SyTGEThyK5kbp1HiS9j7e5+RmI9U+lVT6bIckw GFh/tJQ5/V71SYFAElHt3/zqzykaXjcohMQuRLLxW8V9lUEfLjpRnVUrcES/dEXObG qtyMayG0B50/w== Date: Thu, 6 Dec 2018 02:15:37 +0000 From: Priit Laes To: Mauro Carvalho Chehab Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] media: Kconfig: Add configuration entry for MEDIA_MEM2MEM_SUPPORT Message-ID: <20181206021537.24jz4x4bpn5xojwg@plaes.org> References: <20181126163844.18729-1-plaes@plaes.org> <20181205174703.5d2a8529@coco.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181205174703.5d2a8529@coco.lan> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 05, 2018 at 05:47:03PM -0200, Mauro Carvalho Chehab wrote: > Em Mon, 26 Nov 2018 18:38:44 +0200 > Priit Laes escreveu: > > > Currently there is no easy way to enable mem2mem based video > > processor drivers (cedrus for example). Simplify this by adding > > separate category to media support. > > > > Signed-off-by: Priit Laes > > --- > > drivers/media/Kconfig | 12 ++++++++++-- > > 1 file changed, 10 insertions(+), 2 deletions(-) > > > > diff --git a/drivers/media/Kconfig b/drivers/media/Kconfig > > index 8add62a18293..f2a773896dcf 100644 > > --- a/drivers/media/Kconfig > > +++ b/drivers/media/Kconfig > > @@ -56,6 +56,14 @@ config MEDIA_DIGITAL_TV_SUPPORT > > Say Y when you have a board with digital support or a board with > > hybrid digital TV and analog TV. > > > > +config MEDIA_MEM2MEM_SUPPORT > > + bool "Mem2mem devices (stateless media decoders/encoders support)" > > + ---help--- > > + Enable support for mem2mem / stateless media decoders/encoders. > > + > > + Say Y when you have a system with stateless media encoder/decoder > > + support. > > + > > config MEDIA_RADIO_SUPPORT > > bool "AM/FM radio receivers/transmitters support" > > ---help--- > > @@ -95,7 +103,7 @@ source "drivers/media/cec/Kconfig" > > > > config MEDIA_CONTROLLER > > bool "Media Controller API" > > - depends on MEDIA_CAMERA_SUPPORT || MEDIA_ANALOG_TV_SUPPORT || MEDIA_DIGITAL_TV_SUPPORT > > + depends on MEDIA_CAMERA_SUPPORT || MEDIA_ANALOG_TV_SUPPORT || MEDIA_DIGITAL_TV_SUPPORT || MEDIA_MEM2MEM_SUPPORT > > ---help--- > > Enable the media controller API used to query media devices internal > > topology and configure it dynamically. > > @@ -118,7 +126,7 @@ config MEDIA_CONTROLLER_DVB > > config VIDEO_DEV > > tristate > > depends on MEDIA_SUPPORT > > - depends on MEDIA_CAMERA_SUPPORT || MEDIA_ANALOG_TV_SUPPORT || MEDIA_RADIO_SUPPORT || MEDIA_SDR_SUPPORT > > + depends on MEDIA_CAMERA_SUPPORT || MEDIA_ANALOG_TV_SUPPORT || MEDIA_RADIO_SUPPORT || MEDIA_SDR_SUPPORT || MEDIA_MEM2MEM_SUPPORT > > default y > > > > config VIDEO_V4L2_SUBDEV_API > > Hmm... this patch looks incomplete. I mean, the main goal of those > MEDIA_*_SUPPORT is to make simpler for the users to select a > subset of the drivers. Those options actually make visible > the corresponding entries for pci/usb/... drivers. So, > for example, drivers/media/usb/Kconfig contains: > > if MEDIA_CAMERA_SUPPORT > comment "Webcam devices" > source "drivers/media/usb/uvc/Kconfig" > source "drivers/media/usb/gspca/Kconfig" > source "drivers/media/usb/pwc/Kconfig" > source "drivers/media/usb/cpia2/Kconfig" > source "drivers/media/usb/zr364xx/Kconfig" > source "drivers/media/usb/stkwebcam/Kconfig" > source "drivers/media/usb/s2255/Kconfig" > source "drivers/media/usb/usbtv/Kconfig" > endif > > If we'll be adding it, I would expect a corresponding change at > drivers/media/platform/Kconfig. Thanks, I will look into it. The current approach at least made it somewhat easier to enable sunxi-cedrus via menuconfig. > > Thanks, > Mauro