RE: RFCv2: Media controller proposal

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

 



> -----Original Message-----
> From: linux-media-owner@xxxxxxxxxxxxxxx [mailto:linux-media-
> owner@xxxxxxxxxxxxxxx] On Behalf Of Devin Heitmueller
> Sent: Friday, September 11, 2009 9:16 PM
> To: Mauro Carvalho Chehab
> Cc: Hans Verkuil; linux-media@xxxxxxxxxxxxxxx
> Subject: Re: RFCv2: Media controller proposal
> 
> On Fri, Sep 11, 2009 at 11:13 AM, Mauro Carvalho Chehab
> <mchehab@xxxxxxxxxxxxx> wrote:
> > Em Thu, 10 Sep 2009 23:35:52 +0200
> > Hans Verkuil <hverkuil@xxxxxxxxx> escreveu:
> >
<snip>
> >
> > I was talking not about specific attributes, but about the V4L2
> API controls
> > that you may eventually need to "hijack" (using that context-
> sensitive
> > thread-unsafe approach you described).
> >
> > Anyway, by using sysfs, you won't have any thread issues, since
> you'll be able
> > to address each sub-device individually:
> >
> > echo 1 >/sys/class/media/mc0/video:dsp0/enable_stats
> >
> >
> >
> > Cheers,
> > Mauro
> 
> Mauro,
> 
> Please, *seriously* reconsider the notion of making sysfs a
> dependency
> of V4L.  While sysfs is great for a developer who wants to poke
> around
> at various properties from a command line during debugging, it is an
> absolute nightmare for any developer who wants to write an
> application
> in C that is expected to actually use the interface.  The amount of
> extra code for all the string parsing alone would be ridiculous
> (think
> of how many calls you're going to have to make to sscanf or atoi).
> It's so much more straightforward to be able to have ioctl() calls
> that can return an actual struct with nice things like enumeration
> data types etc.
> 
> Just my opinion, of course.
> 
[Hiremath, Vaibhav] Mauro,

Definitely SYSFS interface is a nightmare for the application developer, and again we have not thought of backward compatibility here.

How application would know/decide on which node is exist and stuff? Every video board will have his separate way of notions for creating SYSFS nodes and maintaining standard between them would be really mess. 

There has to be enumeration kind of interface to make standard application work seamlessly.

Thanks,
Vaibhav

> Devin
> 
> --
> Devin J. Heitmueller - Kernel Labs
> http://www.kernellabs.com
> --
> 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

--
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