diff options
| author | Kieran Bingham <[email protected]> | 2018-03-21 15:43:08 +0000 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2018-06-05 13:33:51 +0000 |
| commit | 0dc68cabdb626e33d02561529e6a4c681b72a784 (patch) | |
| tree | 700e5bfc8627f1ddb20c8c754032777a2ea14188 /drivers/pci/controller/pci-host-common.c | |
| parent | media: ddbridge: conditionally enable fast TS for stv0910-equipped bridges (diff) | |
| download | kernel-0dc68cabdb626e33d02561529e6a4c681b72a784.tar.gz kernel-0dc68cabdb626e33d02561529e6a4c681b72a784.zip | |
media: uvcvideo: Prevent setting unavailable flags
The addition of an extra operation to use the GET_INFO command
overwrites all existing flags from the uvc_ctrls table. This includes
setting all controls as supporting GET_MIN, GET_MAX, GET_RES, and
GET_DEF regardless of whether they do or not.
Move the initialisation of these control capabilities directly to the
uvc_ctrl_fill_xu_info() call where they were originally located in that
use case, and ensure that the new functionality in uvc_ctrl_get_flags()
will only set flags based on their reported capability from the GET_INFO
call.
Fixes: 859086ae3636 ("media: uvcvideo: Apply flags from device to actual properties")
Cc: [email protected]
Signed-off-by: Kieran Bingham <[email protected]>
Tested-by: Guennadi Liakhovetski <[email protected]>
Signed-off-by: Laurent Pinchart <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'drivers/pci/controller/pci-host-common.c')
0 files changed, 0 insertions, 0 deletions
