Hi Sakari, On Tuesday 24 April 2012 18:14:20 Sakari Ailus wrote: > On Tue, Apr 24, 2012 at 11:08:12AM +0200, Laurent Pinchart wrote: > > On Tuesday 24 April 2012 01:23:06 Sakari Ailus wrote: > > > Hi Laurent, > > > > > > The patch looks good as such on the first glance, but I have another > > > question: why are you not using the selections API instead? It's in > > > Mauro's tree already. > > > > You're totally right, we need to convert the selection API. The reason why > > I've implemented crop support at the CCDC output was simply that I needed > > it for a project and didn't have time to implement the selection API. As > > the code works, I considered it would be good to have it upstream until > > we switch to the selection API. > > "Until we switch to the selection API"? The subdev selection API is in > Mauro's tree already so I see no reason not to use it. Implementing new > functionality in a driver using API we've just marked obsolete is... not > pretty. You're of course totally right. I've pushed back on enough attemps similar to this one to know that I will have to give up here and implement selection support :-) > The compatibility code for the old crop ioctls exist, too, so you get > exactly the same functionality as well. > > > > Also, the old S_CROP IOCTL only has been defined for sink pads, not > > > source. > > > > We're already using crop on source pads on sensors ;-) > > Is that supposed to work? At the very least least it does not follow the > spec. It doesn't follow the spec. But it works :-) -- Regards, Laurent Pinchart -- 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