Re: [PATCH v2] omap3isp: Use monotonic timestamps for statistics buffers

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

 



Em 27-09-2012 16:49, Sakari Ailus escreveu:
> Hi Mauro,
> 
> Mauro Carvalho Chehab wrote:
>> Em Fri, 14 Sep 2012 23:57:48 +0200
>> Laurent Pinchart <laurent.pinchart@xxxxxxxxxxxxxxxx> escreveu:
...
>>>   struct omap3isp_stat_data {
>>> -    struct timeval ts;
>>> +    struct timespec ts;
>>
>> NACK. That breaks userspace API, as this structure is part of an ioctl.
>>
>> It is too late to touch here. Please keep timeval. It is ok to fill it with
>> a mononotic time, but replacing it is an API breakage.
> 
> I beg to present a differing opinion.
> 
> The timestamp that has been taken from a realtime clock has NOT been useful to begin with in this context: the OMAP3ISP driver has used monotonic time on video buffers since the very beginning of its existence in mainline kernel. As no-one has complained about this --- except Antoine very recently --- I'm pretty certain we wouldn't be breaking any application by changing this. The statistics timestamp is only useful when it's comparable to other timestamps (from video buffers and events), which this patch achieves.

Technically, the only gain here would be to improve the precision from microsseconds
to nanosseconds.

Breaking the API due to that could only be justified if you have really fast
sensors that would be able to take more than one picture at the 1 microssecond
period of time.

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