LWN.net Logo

video-buf redesign

From:  Mauro Carvalho Chehab <mchehab@infradead.org>
To:  Linux and Kernel Video <video4linux-list@redhat.com>
Subject:  [RFC] video-buf redesign
Date:  Thu, 16 Aug 2007 23:50:32 -0300
Message-ID:  <1187319032.5023.55.camel@gaivota>
Archive-link:  Article, Thread

I did a redesign on video-buf. Basically, it were split into two
separate parts:
	video-buf-generic:
		Handles the buffering control
	video-buf-dma-sg:
		Allocates memory for Handling PCI DMA Scatter/Gather

This way, newer methods can be added. As an example, a newer method were
added for handling non-PCI devices:
	video-buf-vmalloc:
		Allocates memory using vmalloc method. This is the way usb v4l drivers
allocate memory. With this new method, it is easier to write USB
drivers, since video-buf will hide most of buffering complexity.

A missing module is a video-buf dma module for those devices that don't
support Scatter/Gather. It would be nice if someone can work on that,
since this is required for devices like Marvell Cafe and some open OMAP
platforms, AFAIK.

As a bonus, I've also implemented the V4L1 VIDIOCGMBUF at video-buf,
removing some duplicated code from vivi, cx88 and saa7134 drivers.

The tree with the patches is at:
	http://linuxtv.org/hg/~mchehab/videobuf/

Please test.

-- 
Cheers,
Mauro

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


Copyright © 2007, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds