Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754054Ab2HAGnt (ORCPT ); Wed, 1 Aug 2012 02:43:49 -0400 Received: from smtp-vbr13.xs4all.nl ([194.109.24.33]:2191 "EHLO smtp-vbr13.xs4all.nl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753826Ab2HAGns (ORCPT ); Wed, 1 Aug 2012 02:43:48 -0400 From: Hans Verkuil To: Federico Vaga Subject: Re: Update VIP to videobuf2 and control framework Date: Wed, 1 Aug 2012 08:41:56 +0200 User-Agent: KMail/1.13.7 (Linux/3.4.0-rc7-tschai; KDE/4.8.4; x86_64; ; ) Cc: Mauro Carvalho Chehab , Pawel Osciak , Marek Szyprowski , Hans Verkuil , Giancarlo Asnaghi , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Jonathan Corbet References: <1343765829-6006-1-git-send-email-federico.vaga@gmail.com> In-Reply-To: <1343765829-6006-1-git-send-email-federico.vaga@gmail.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201208010841.56941.hverkuil@xs4all.nl> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2309 Lines: 50 On Tue July 31 2012 22:17:06 Federico Vaga wrote: > As suggested I moved the Video Buffer Input (VIP) of the STA2X11 board to the > videobuf2. This patch series is an RFC. Thank you very much for working on this! Much appreciated! > The first patch is just an update to the adv7180 because the VIP (the only > user) now use the control framework so query{g_|s_|ctrl} are not necessery. For this patch: Acked-by: Hans Verkuil > The second patch adds a new memory allocator for the videobuf2. I name it > videobuf2-dma-streaming but I think "streaming" is not the best choice, so > suggestions are welcome. My inspiration for this buffer come from > videobuf-dma-contig (cached) version. After I made this buffer I found the > videobuf2-dma-nc made by Jonathan Corbet and I improve the allocator with > some suggestions (http://patchwork.linuxtv.org/patch/7441/). The VIP doesn't > work with videobu2-dma-contig and I think this solution is easier the sg. I leave this to the vb2 experts. It's not obvious to me why we would need a fourth memory allocator. > The third patch updates the VIP to videobuf2 and control framework. I made also > some restyling to the driver and change some mechanism so I take the ownership > of the driver and I add the copyright of ST Microelectronics. Some trivial > code is unchanged. The patch probably needs some extra update. > I add the control framework to the VIP but without any control. I add it to > inherit controls from adv7180. Did you run the latest v4l2-compliance tool from the v4l-utils.git repository over your driver? I'm sure you didn't since VIP is missing support for control events and v4l2-compliance would certainly complain about that. Always check with v4l2-compliance whenever you make changes! It's continuously improved as well, so a periodic check wouldn't hurt. Also take a look at the new vb2 helper functions in media/videobuf2-core.h: it is likely that you can use those to simplify your driver. They are used in e.g. vivi, so take a look there. Regards, Hans -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/