Re: Media controller: sysfs vs ioctl

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 2009-09-12 at 12:54 -0300, Mauro Carvalho Chehab wrote:
> Em Sat, 12 Sep 2009 17:12:35 +0200
> Hans Verkuil <hverkuil@xxxxxxxxx> escreveu:

> > I'm currently trying to get ivtv media-controller-aware. It's probably the
> > most complex driver when it comes to topology that I have access to, so that
> > would be a good test case.
> 
> The most complex hardware for PC I'm aware is the cx25821. Unfortunately, the
> driver is currently in bad shape, in terms of CodingStyle (including the
> removal of large blocks of code that are repeated several times along the
> driver), needing lots of changes in order to get merged.
> 
> For those interested, the code is at:
> 	http://linuxtv.org/hg/~mchehab/cx25821/
> 
> I'll likely do some work on it during this merge window for its inclusion
> upstream (probably at drivers/staging - since I doubt we'll have enough time to
> clean it up right now).
> 
> It has several blocks that can be used for video in and video out. The current
> driver has support for 8 simultaneous video inputs and 4 simultaneous video
> output. I'm not sure, but I won't doubt that you can exchange inputs and
> outputs or even group them. So, this is a good candidate for some media
> controller tests. I'll try to do it via sysfs, running some tests and post the
> results.


I read the available specs for that chip when I saw the source code
appear in a repo of yours several months ago.  The public data sheet is
here.

http://www.conexant.com/servlets/DownloadServlet/PBR-201499-004.pdf?docid=1501&revid=4

The chip looks like it is a good fit for surveillance applications.

The block diagram indicates it is essentially a Video (10x CCIR656) and
Audio (5x I2S) router, with a pile of GPIOS (48), 3 I2C busses, and
support for inbound and outbound DMA channels.  The chip also has built
in scalers and motion detection.  Managing the chip itself doesn't look
too complicated, but once intergrated with other devices like
compression CODECs, a CX25853 devices, or general purpose
microcontrollers, I imagine it could get complex to manage.

The reference design brief is here:

http://www.conexant.com/servlets/DownloadServlet/RED-202183-001.pdf?docid=2184&revid=1


I agree with the coding style problems of the current driver.

Regards,
Andy

> Cheers,
> Mauro


--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux