Re: [PATCHv17 16/34] v4l2-ctrls: add v4l2_ctrl_request_hdl_find/put/ctrl_find functions

2018-08-14 Thread Hans Verkuil
On 14/08/18 10:55, Mauro Carvalho Chehab wrote: > Em Tue, 14 Aug 2018 10:45:57 +0200 > Hans Verkuil escreveu: > >> On 13/08/18 13:07, Mauro Carvalho Chehab wrote: >>> Em Sat, 4 Aug 2018 14:45:08 +0200 >>> Hans Verkuil escreveu: >>> If a driver needs to find/inspect the controls set in a

Re: [PATCHv17 16/34] v4l2-ctrls: add v4l2_ctrl_request_hdl_find/put/ctrl_find functions

2018-08-14 Thread Mauro Carvalho Chehab
Em Tue, 14 Aug 2018 10:45:57 +0200 Hans Verkuil escreveu: > On 13/08/18 13:07, Mauro Carvalho Chehab wrote: > > Em Sat, 4 Aug 2018 14:45:08 +0200 > > Hans Verkuil escreveu: > > > >> If a driver needs to find/inspect the controls set in a request then > >> it can use these functions. > >> > >

Re: [PATCHv17 16/34] v4l2-ctrls: add v4l2_ctrl_request_hdl_find/put/ctrl_find functions

2018-08-14 Thread Hans Verkuil
On 13/08/18 13:07, Mauro Carvalho Chehab wrote: > Em Sat, 4 Aug 2018 14:45:08 +0200 > Hans Verkuil escreveu: > >> If a driver needs to find/inspect the controls set in a request then >> it can use these functions. >> >> E.g. to check if a required control is set in a request use this in the >> r

Re: [PATCHv17 16/34] v4l2-ctrls: add v4l2_ctrl_request_hdl_find/put/ctrl_find functions

2018-08-13 Thread Mauro Carvalho Chehab
Em Sat, 4 Aug 2018 14:45:08 +0200 Hans Verkuil escreveu: > If a driver needs to find/inspect the controls set in a request then > it can use these functions. > > E.g. to check if a required control is set in a request use this in the > req_validate() implementation: > > int res = -EINVAL

[PATCHv17 16/34] v4l2-ctrls: add v4l2_ctrl_request_hdl_find/put/ctrl_find functions

2018-08-04 Thread Hans Verkuil
If a driver needs to find/inspect the controls set in a request then it can use these functions. E.g. to check if a required control is set in a request use this in the req_validate() implementation: int res = -EINVAL; hdl = v4l2_ctrl_request_hdl_find(req, parent_hdl); if