From: Hans de Goede <hdegoede@redhat.com>
To: Mauro Carvalho Chehab <mchehab@redhat.com>
Cc: Hans Verkuil <hverkuil@xs4all.nl>, v4l-dvb <linux-media@vger.kernel.org>
Subject: Re: RFC: Drop V4L1 support in V4L2 drivers
Date: Fri, 19 Mar 2010 20:10:51 +0100 [thread overview]
Message-ID: <4BA3CC3B.1050705@redhat.com> (raw)
In-Reply-To: <4BA375A7.3000400@redhat.com>
Hi,
On 03/19/2010 02:01 PM, Mauro Carvalho Chehab wrote:
> Hans Verkuil wrote:
>> Hi all,
>>
>> V4L1 support has been marked as scheduled for removal for a long time. The
>> deadline for that in the feature-removal-schedule.txt file was July 2009.
>
> As reference, this is what's written there:
>
> What: Video4Linux API 1 ioctls and from Video devices.
> When: July 2009
> Files: include/linux/videodev.h
> Check: include/linux/videodev.h
> Why: V4L1 AP1 was replaced by V4L2 API during migration from 2.4 to 2.6
> series. The old API have lots of drawbacks and don't provide enough
> means to work with all video and audio standards. The newer API is
> already available on the main drivers and should be used instead.
> Newer drivers should use v4l_compat_translate_ioctl function to handle
> old calls, replacing to newer ones.
> Decoder iocts are using internally to allow video drivers to
> communicate with video decoders. This should also be improved to allow
> V4L2 calls being translated into compatible internal ioctls.
> Compatibility ioctls will be provided, for a while, via
> v4l1-compat module.
> Who: Mauro Carvalho Chehab<mchehab@infradead.org>
>
>
>>
>> I think it is time that we remove the V4L1 compatibility support from V4L2
>> drivers for 2.6.35.
>>
>> It would help with the videobuf cleanup as well, but that's just a bonus.
>>
>> If no one objects, then I can prepare a patch series for this.
>
> With respect to V4L1, there are some aspects to consider:
>
> 1) The removal (or conversion to V4L2) of the existing V4L1 drivers. I think this
> is a good thing. Hans already said he wants to convert a few more drivers to V4L2.
> So, we need to check with him if 2.6.35 is feasible. This means that he has something
> like 5-6 weeks to convert, in order to get the next window.
>
Heh, I might be able to get around to port over se401 to gspca before then, for
the other ones: -ENEEDHARDWARE.
> 2) The removal of V4L1 compatibility layer. If you take a look at the
> feature-removal-schedule.txt annoncement, it talks about removing the V4L1 drivers,
> not about removing the V4L1 compat layer: it mentions only videodev.h removal from
> userspace API, and says that V4L1 compat will exist "for a while". What I'm meant
> to do with that announcement text is that, once removed all V4L1 drivers, we'll replace
> the V4L1 removal announcement with a V4L1 compat layer announcement, giving app developers
> some time to fix their userspace apps. So, assuming that we'll remove V4L1 drivers on
> 2.6.35, we should wait at least to 2.6.36 before removing V4L1 compat.
>
> 3) The removal of V4L1 means that the existing applications should not try to include
> videodev.h with newer kernels or their compilations will break (easy to fix, but better
> to remind application developers that may be reading this thread). Also, the removal of
> V4L1 compat means that all V4L1 only applications will stop working. What's the current
> status of webcam/TV/stream/radio/videotext/vbi applications? Just yesterday, somebody
> reported me a problem with radio crashing at the V4L1 compat layer. It seemed that maybe
> not all radio apps got converted. So, before dropping compat layer support, we should
> double check what apps will break.
>
I think the best way forward here is making libv4l1 completely independ of the kernel
v4l1 compat layer. This isn't to hard to do, I could even copy over the necessary bits
to compile v4l1 apps from linux/videodev.h to libv4l1.h, then the kernel can completely
drop v4l1 compat for v4l2 drivers, but this will need some time...
Regards,
Hans
next prev parent reply other threads:[~2010-03-19 19:09 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-19 7:59 RFC: Drop V4L1 support in V4L2 drivers Hans Verkuil
2010-03-19 8:04 ` Laurent Pinchart
2010-03-19 8:46 ` Hans Verkuil
2010-03-19 8:50 ` Laurent Pinchart
2010-03-19 9:03 ` Markus Rechberger
2010-03-19 13:47 ` Mauro Carvalho Chehab
2010-03-19 15:49 ` David Ellingsworth
2010-03-19 17:43 ` Mauro Carvalho Chehab
2010-03-19 18:00 ` David Ellingsworth
2010-03-19 18:12 ` Devin Heitmueller
2010-03-19 19:04 ` VDR User
2010-03-20 1:01 ` hermann pitton
2010-03-19 19:57 ` Mauro Carvalho Chehab
2010-03-19 19:06 ` Hans de Goede
2010-03-19 15:17 ` Andy Walls
2010-03-19 19:02 ` Hans de Goede
2010-03-19 13:01 ` Mauro Carvalho Chehab
2010-03-19 19:10 ` Hans de Goede [this message]
2010-03-19 19:27 ` Mauro Carvalho Chehab
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4BA3CC3B.1050705@redhat.com \
--to=hdegoede@redhat.com \
--cc=hverkuil@xs4all.nl \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.