public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: "Erik Andrén" <erik.andren@gmail.com>
To: Hans de Goede <j.w.r.degoede@hhs.nl>
Cc: m560x-driver-devel <m560x-driver-devel@lists.sourceforge.net>,
	video4linux-list@redhat.com
Subject: Re: [PATCH][RFC] Add support for the ALi m5602 usb bridge webcam
Date: Fri, 19 Sep 2008 20:56:06 +0200	[thread overview]
Message-ID: <48D3F5C6.3050806@gmail.com> (raw)
In-Reply-To: <48D3306B.4060001@hhs.nl>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



Hans de Goede wrote:
| Erik Andrén wrote:
|> Hi,
|> I'm proud to announce the following patch adding support for the ALi
|> m5602
|> usb bridge connected to several different sensors.
|> This driver has been brewing for a long time in the m560x.sf.net
|> project and
|> exists due to the hard work of many persons.
|>
|> libv4l is needed in order to gain support for multiple pixelformats.
|>
|> The patch should apply against the latest v4l-dvb hg tree.
|>
|> Thanks for any feedback,
|> Erik
|>
|
| Hi Erik,
|
| Thanks for doing this, unfortunately the driver which you used as a
| template to start from has various issues (not allowing multiple opens
| for one, interpreting the v4l2 API in interesting ways in other places).
|
| Besides that there is lot of code duplication between isoc mode usb
| webcams.
|
| I would kindly like to ask you to consider porting the m5602 driver to
| the gspca framework, which provides a generic framework for isoc webcams
| and takes a lot of stuff out of the driver and into a more generic
| framework (like try_fmt mode negatiation, isoc mode setup and handling,
| frame buffer management, etc.).
|
| gspca is in the current 2.6.27 kernels, if you look under
| drivers/media/video/gspca you will see drivers for a lot of different
| webcams there, you could for example take the pac207 driver as an
| example, strip it empty and then copy and paste the relevant part of
| your driver to there.
|
| I will help you in anyway I can.
|
| Does this sound like a plan?

Hi Hans and thanks for the feedback.

Frankly, I'd rather not refactor the driver for two reasons:

1) I personally think the gspca code is ugly and hard to understand. The
usb bridge code and sensor code is cludged together. There is a lack of
structure when one source file may be up to +7k lines of code (think
zc3xx.c).
I'm never going to accept to see the m5602 driver be concatenated into
one big chunk like that.
The m5602 driver currently has a nice layout with clear defined layers
and filenames which allow fast integration of new sensors and modularity
and I intend to keep it so.
If it's supposed to be a generic framework, why does it still keep the
name it used when it was a special purpose driver?
Why not rename it to "webcam-framework" or something more sane?

2) The submitted m5602 driver is stable. Sure, it needs some spit and
polish and you never know when a notebook with a new, unsupported sensor
pops out, but it basically works with the libv4l. I haven't investigated
~  the multiple open issue but I'm sure it could be resolved.

I say, merge this driver. Then let anyone wanting to do the conversion
work to adapt it for the gspca later on.

Best regards,
Erik

|
| Regards,
|
| Hans
|
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFI0/XGN7qBt+4UG0ERAsdIAKCtVNauq75DD/pM2xEA15Da1qi/fgCcD9Iv
ovWL/NB0ILftYiCAnFWRRqA=
=dS43
-----END PGP SIGNATURE-----

--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

      reply	other threads:[~2008-09-19 18:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-18  7:02 [PATCH][RFC] Add support for the ALi m5602 usb bridge webcam Erik Andrén
2008-09-19  4:54 ` Hans de Goede
2008-09-19 18:56   ` Erik Andrén [this message]

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=48D3F5C6.3050806@gmail.com \
    --to=erik.andren@gmail.com \
    --cc=j.w.r.degoede@hhs.nl \
    --cc=m560x-driver-devel@lists.sourceforge.net \
    --cc=video4linux-list@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox