Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756370AbXFPLqU (ORCPT ); Sat, 16 Jun 2007 07:46:20 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754075AbXFPLqN (ORCPT ); Sat, 16 Jun 2007 07:46:13 -0400 Received: from smtp4-g19.free.fr ([212.27.42.30]:45024 "EHLO smtp4-g19.free.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753236AbXFPLqM (ORCPT ); Sat, 16 Jun 2007 07:46:12 -0400 Subject: Re: [PATCH 1/1] V4L: stk11xx, add a new webcam driver From: Thierry Merle To: Jiri Slaby Cc: Mauro Carvalho Chehab , video4linux-list@redhat.com, linux-kernel@vger.kernel.org In-Reply-To: <6872422218943432279_1@wsc.cz> References: <2172422218943432279@wsc.cz> <1180364420.21547.160.camel@localhost> <1180378677.21547.189.camel@localhost> <1180383071.21547.230.camel@localhost> <465B49EB.4080204@free.fr> <465BBAFB.30906@free.fr> <1180448712.21547.314.camel@localhost> <465C7920.2080203@free.fr> <1180467116.9509.73.camel@localhost> <465F3361.106@free.fr> <1180739401.3904.50.camel@localhost> <466131CB.20301@free.fr> <466131CB.20301@free.fr> <6872422218943432279_1@wsc.cz> Content-Type: text/plain; charset=ISO-8859-1 Date: Sat, 16 Jun 2007 13:46:17 +0200 Message-Id: <1181994378.22144.11.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Dropline GNOME Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2519 Lines: 70 Le vendredi 15 juin 2007 ? 23:08 +0200, Jiri Slaby a ?crit : > Mauro Carvalho Chehab wrote: > > Em Sáb, 2007-06-02 ? s 11:00 +0200, Thierry Merle escreveu: > > > > > > Mauro Carvalho Chehab a écrit : > > > >>> This seems to be an interesting approach. > > > >>> > > > >>> > > > >>> > > > >> Interesting but impossible to do for ioctl calls. > > > >> When the application does a > ioctl(fd_of_mnt_video0,VIDIOC_G_FMT,&arg) > > > >> for example, there is no way for the userspace helper to catch > this ioctl. > > > >> The application could only open/read from the userspace > helper's file > > > >> /mnt/video0. > > > >> ioctl would still have to be done on the kernel device driver. > > > >> I thought also about a /proc interface for decompression > algorithms (a > > > >> helper would listen on a /proc file and write on another /proc > file) but > > > >> /proc is not designed for that kind of thing. > > > >> A separate library seems to be the simplest solution. > > > >> > > > > > > > > There are some ways for this to work. For example, you may > create a > > > > helper device for the daemon driver to bind, even requiring it > to have > > > > root permission. > > > > > > > > > > > Right, but I am afraid that complex userspace/kernelspace context > > > changes breaks performance. > > Yes, there's a risk. > > > > > Nevertheless, I will start to specify the framework. > > > The helper daemon would link to the v4l2-apps/lib. > > > > Ok, thanks! > > Ok, here comes updated version of stk11xx driver. Note that it's not > still > separated into more files (I'll do this as the last step) and also > resize > and bayer->rgb conversion remains. This is what I'm interested in -- > is > there some embryo of library with resize and conversion? Or what was > the > decision to create? Hi Jiri, sorry I started the specification but nothing finalized (and consequently no code). Here is the start of my idea for a v4l2_extension: http://thierry.merle.free.fr/v4l2_extension/general.html My new USB tuner took me all my little time and I did not get into details (the spec is incomplete). Well, as you insist I will explain a bit more :) Please comment, tell me what you don't understand I will try to update during this week-end... Thierry - 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/