Commit ae4a0d9
Desnes Nunes
media: uvcvideo: let v4l2_query_v4l2_ctrl() work with v4l2_query_ext_ctrl
JIRA: https://issues.redhat.com/browse/RHEL-78934
commit 1fde21e
Author: Ricardo Ribalda <ribalda@chromium.org>
Date: Mon, 3 Feb 2025 11:55:49 +0000
v4l2_query_ext_ctrl contains information that is missing in
v4l2_queryctrl, like elem_size and elems.
With this change we can handle all the element_size information inside
uvc_ctrl.c.
Now that we are at it, remove the memset of the reserved fields, the
v4l2 ioctl handler should do that for us.
There is no functional change expected from this change.
Reviewed-by: Yunke Cao <yunkec@google.com>
Tested-by: Yunke Cao <yunkec@google.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Link: https://lore.kernel.org/r/20250203-uvc-roi-v17-13-5900a9fed613@chromium.org
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Desnes Nunes <desnesn@redhat.com>1 parent 8e76cce commit ae4a0d9
3 files changed
+30
-31
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1259 | 1259 | | |
1260 | 1260 | | |
1261 | 1261 | | |
1262 | | - | |
| 1262 | + | |
| 1263 | + | |
1263 | 1264 | | |
1264 | 1265 | | |
1265 | 1266 | | |
| |||
1407 | 1408 | | |
1408 | 1409 | | |
1409 | 1410 | | |
1410 | | - | |
| 1411 | + | |
1411 | 1412 | | |
1412 | 1413 | | |
1413 | 1414 | | |
| |||
1473 | 1474 | | |
1474 | 1475 | | |
1475 | 1476 | | |
1476 | | - | |
| 1477 | + | |
1477 | 1478 | | |
1478 | 1479 | | |
1479 | 1480 | | |
| |||
1511 | 1512 | | |
1512 | 1513 | | |
1513 | 1514 | | |
| 1515 | + | |
| 1516 | + | |
| 1517 | + | |
1514 | 1518 | | |
1515 | 1519 | | |
1516 | 1520 | | |
| |||
1524 | 1528 | | |
1525 | 1529 | | |
1526 | 1530 | | |
1527 | | - | |
| 1531 | + | |
1528 | 1532 | | |
1529 | 1533 | | |
1530 | 1534 | | |
| |||
1650 | 1654 | | |
1651 | 1655 | | |
1652 | 1656 | | |
1653 | | - | |
| 1657 | + | |
1654 | 1658 | | |
1655 | 1659 | | |
1656 | 1660 | | |
| |||
2175 | 2179 | | |
2176 | 2180 | | |
2177 | 2181 | | |
2178 | | - | |
| 2182 | + | |
2179 | 2183 | | |
2180 | 2184 | | |
2181 | 2185 | | |
| |||
2189 | 2193 | | |
2190 | 2194 | | |
2191 | 2195 | | |
2192 | | - | |
| 2196 | + | |
2193 | 2197 | | |
2194 | 2198 | | |
2195 | 2199 | | |
2196 | 2200 | | |
2197 | 2201 | | |
2198 | | - | |
| 2202 | + | |
2199 | 2203 | | |
2200 | 2204 | | |
2201 | | - | |
| 2205 | + | |
2202 | 2206 | | |
2203 | 2207 | | |
2204 | | - | |
| 2208 | + | |
2205 | 2209 | | |
2206 | 2210 | | |
2207 | 2211 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
963 | 963 | | |
964 | 964 | | |
965 | 965 | | |
966 | | - | |
967 | | - | |
| 966 | + | |
| 967 | + | |
968 | 968 | | |
969 | 969 | | |
970 | 970 | | |
971 | 971 | | |
972 | | - | |
| 972 | + | |
973 | 973 | | |
974 | 974 | | |
975 | | - | |
976 | | - | |
| 975 | + | |
| 976 | + | |
977 | 977 | | |
978 | 978 | | |
979 | 979 | | |
980 | | - | |
| 980 | + | |
981 | 981 | | |
982 | 982 | | |
983 | | - | |
| 983 | + | |
984 | 984 | | |
985 | 985 | | |
986 | 986 | | |
987 | | - | |
988 | | - | |
989 | | - | |
990 | | - | |
991 | | - | |
992 | | - | |
993 | | - | |
994 | | - | |
995 | | - | |
996 | | - | |
997 | | - | |
998 | | - | |
999 | | - | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
1000 | 995 | | |
1001 | 996 | | |
1002 | 997 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
771 | 771 | | |
772 | 772 | | |
773 | 773 | | |
774 | | - | |
| 774 | + | |
775 | 775 | | |
776 | 776 | | |
777 | 777 | | |
| |||
0 commit comments