Re: [RFC v3 02/19] media/v4l2-core: add new ioctl VIDIOC_G_DEF_EXT_CTRLS

Ricardo Ribalda Delgado
2015-07-20T13:52:25Z

Hello

I have no preference over the two implementations, but I see an issue
with this suggestion.

What happens to out out tree drivers, or drivers that don't support
this functionality?

With the ioctl, the user receives a -ENOTTY. So he knows there is
something wrong with the driver.

With this class, the driver might interpret this a simple G_VAL and
return he current value with no way for the user to know what is going
on.

Regarding the new implementation.... I can make some code next week,
this week I am 120% busy :)

What do you think?