Repository navigation
Commit e2ecb25
[media] v4l2: standardize log start/end message
For drivers that properly use the v4l2 framework (i.e. set v4l2_dev in the
video_device struct), the start and end messages of VIDIOC_LOG_STATUS are
now generated automatically. People tended to forget these, but the v4l2-ctl
tool scans for these messages, and it also makes it easier to read the status
output in the kernel log.
The cx18, ivtv and bttv drivers were changed since they no longer need to
log these start/end messages.
In saa7164 two empty log_status functions were removed.
Also added a helper function to v4l2-ctrl.c that can be used as the
vidioc_log_status callback if all you need to do is to log the current control
values. This is now used by pwc and vivi.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Cc: Steven Toth <stoth@kernellabs.com>
Cc: Andy Walls <awalls@md.metrocast.net>
Cc: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>1 parent eb224c2 commit e2ecb25
10 files changed
Lines changed: 24 additions & 43 deletions
File tree
- drivers/media/video
- bt8xx
- cx18
- ivtv
- pwc
- saa7164
- include/media
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2035 | 2035 | | |
2036 | 2036 | | |
2037 | 2037 | | |
2038 | | - | |
2039 | | - | |
2040 | 2038 | | |
2041 | | - | |
2042 | | - | |
2043 | 2039 | | |
2044 | 2040 | | |
2045 | 2041 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1085 | 1085 | | |
1086 | 1086 | | |
1087 | 1087 | | |
1088 | | - | |
1089 | | - | |
1090 | 1088 | | |
1091 | 1089 | | |
1092 | 1090 | | |
| |||
1120 | 1118 | | |
1121 | 1119 | | |
1122 | 1120 | | |
1123 | | - | |
1124 | | - | |
1125 | 1121 | | |
1126 | 1122 | | |
1127 | 1123 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1485 | 1485 | | |
1486 | 1486 | | |
1487 | 1487 | | |
1488 | | - | |
1489 | | - | |
1490 | 1488 | | |
1491 | 1489 | | |
1492 | 1490 | | |
| |||
1568 | 1566 | | |
1569 | 1567 | | |
1570 | 1568 | | |
1571 | | - | |
1572 | | - | |
1573 | | - | |
1574 | 1569 | | |
1575 | 1570 | | |
1576 | 1571 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1146 | 1146 | | |
1147 | 1147 | | |
1148 | 1148 | | |
1149 | | - | |
1150 | | - | |
1151 | | - | |
1152 | | - | |
1153 | | - | |
1154 | | - | |
1155 | | - | |
1156 | | - | |
1157 | 1149 | | |
1158 | 1150 | | |
1159 | 1151 | | |
| |||
1169 | 1161 | | |
1170 | 1162 | | |
1171 | 1163 | | |
1172 | | - | |
| 1164 | + | |
1173 | 1165 | | |
1174 | 1166 | | |
1175 | 1167 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
791 | 791 | | |
792 | 792 | | |
793 | 793 | | |
794 | | - | |
795 | | - | |
796 | | - | |
797 | | - | |
798 | | - | |
799 | 794 | | |
800 | 795 | | |
801 | 796 | | |
| |||
1347 | 1342 | | |
1348 | 1343 | | |
1349 | 1344 | | |
1350 | | - | |
1351 | 1345 | | |
1352 | 1346 | | |
1353 | 1347 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
730 | 730 | | |
731 | 731 | | |
732 | 732 | | |
733 | | - | |
734 | | - | |
735 | | - | |
736 | | - | |
737 | | - | |
738 | 733 | | |
739 | 734 | | |
740 | 735 | | |
| |||
1256 | 1251 | | |
1257 | 1252 | | |
1258 | 1253 | | |
1259 | | - | |
1260 | 1254 | | |
1261 | 1255 | | |
1262 | 1256 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2382 | 2382 | | |
2383 | 2383 | | |
2384 | 2384 | | |
| 2385 | + | |
| 2386 | + | |
| 2387 | + | |
| 2388 | + | |
| 2389 | + | |
| 2390 | + | |
| 2391 | + | |
| 2392 | + | |
| 2393 | + | |
| 2394 | + | |
| 2395 | + | |
| 2396 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1939 | 1939 | | |
1940 | 1940 | | |
1941 | 1941 | | |
| 1942 | + | |
| 1943 | + | |
| 1944 | + | |
1942 | 1945 | | |
| 1946 | + | |
| 1947 | + | |
| 1948 | + | |
1943 | 1949 | | |
1944 | 1950 | | |
1945 | 1951 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
959 | 959 | | |
960 | 960 | | |
961 | 961 | | |
962 | | - | |
963 | | - | |
964 | | - | |
965 | | - | |
966 | | - | |
967 | | - | |
968 | | - | |
969 | | - | |
970 | 962 | | |
971 | 963 | | |
972 | 964 | | |
| |||
1210 | 1202 | | |
1211 | 1203 | | |
1212 | 1204 | | |
1213 | | - | |
| 1205 | + | |
1214 | 1206 | | |
1215 | 1207 | | |
1216 | 1208 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
492 | 492 | | |
493 | 493 | | |
494 | 494 | | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
495 | 499 | | |
496 | 500 | | |
497 | 501 | | |
| |||
0 commit comments