From: Greg KH <greg@kroah.com>
To: Marin Mitov <mitov@issp.bas.bg>
Cc: Scott Smedley <ss@aao.gov.au>, linux-kernel@vger.kernel.org
Subject: Re: [RFC] Yet another (third) dt3155 driver PCI/video4linux compliant
Date: Tue, 27 Apr 2010 16:18:39 -0700 [thread overview]
Message-ID: <20100427231839.GA26416@kroah.com> (raw)
In-Reply-To: <201003202140.16412.mitov@issp.bas.bg>
On Sat, Mar 20, 2010 at 09:40:16PM +0200, Marin Mitov wrote:
> On 20.3.2010, Greg KH wrote:
> > On Sat, Mar 20, 2010 at 11:18:36AM +0200, Marin Mitov wrote:
> > > Hi Scott, Greg, all,
> > >
> > > Here you will find a link to the source code for a dt3155 driver
> > > rewritten to be PCI/video4linux compliant.
> > >
> > > http://lfb.issp.bas.bg/~mitov/linux/dt3155v4l/
> > >
> > > It works with xawtv (if the window is bigger than the acquired image).
> > > See
> > >
> > > http://lfb.issp.bas.bg/~mitov/linux/dt3155v4l/00README
> > >
> > > for more details.
> > >
> > > Any critics/comments will be appreciated.
> >
> > Can you send it in patch form? I can't really do anything with it like
> > this, sorry.
> >
> > greg k-h
>
> OK, here it is:
>
> ======================================================
>
> Kernel module (device driver) for dt3155 frame grabber
> video4linux2 compliant (finaly). Works with xawtv.
>
> ======================================================
>
> This driver is written (almost) from scratch, usung the
> allocator developed for dt3155pci see bellow). The driver
> uses videobuf-dma-contig interface modified to use the above
> mentioned allocator instead of dma_alloc_coheren().
>
> The first thing to do was to design a new allocator based
> on allocating a configurable number of 4MB chunks of memory,
> that latter are broken into frame buffers of 768x576 bytes
> kept in different FIFOs (queues). As far as the driver autoloads
> as a kernel module during kernel boot, the allocation of 4MB
> chunks succeeds.
>
> The driver keeps three FIFOs: one for 4MB chunks, one for free
> buffers (available for allocations) and one for buffers already
> allocated. Allocation/deallocation is done automatically though
> the video4linux videobuf subsystem (some pointers to functions
> are replaced by driver supplied functions).
>
> Sure, there are problems:
>
> 1. The device works by read() method only (for now).
>
> 2. Works for CCIR, but should work for RS-170 (not tested)
> This is made during kernel configuration.
>
> 3. Could work for multiple dt3155 frame grabbers in a PC,
> (private data is allocated during PCI probe() method), but
> is not tested due to lack of a second board.
>
> 4. Not tested on a BIG ENDIAN architecture.
>
> 5. Many others you could find .... :-)
>
> All critics, comments, suggestions are wellcome.
I like it, want me to apply it? Right now it fails to build, but that
should be simple to fix up, I'll be glad to do that.
thanks,
greg k-h
next prev parent reply other threads:[~2010-04-27 23:19 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-20 9:18 [RFC] Yet another (third) dt3155 driver PCI/video4linux compliant Marin Mitov
2010-03-20 13:01 ` Greg KH
2010-03-20 19:40 ` Marin Mitov
2010-04-27 23:18 ` Greg KH [this message]
2010-04-30 15:36 ` Marin Mitov
2010-05-01 17:58 ` Greg KH
2010-05-02 4:29 ` Marin Mitov
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=20100427231839.GA26416@kroah.com \
--to=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mitov@issp.bas.bg \
--cc=ss@aao.gov.au \
/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