Georgi Chorbadzhiyski
42a6e7e3ac
Rename configuration parameters.
--list-vinputs -> --list-inputs
--list-voutputs -> --list-outputs
--list-moutputs -> --list-monitor
--vi-X -> --in-X
--vo-X -> --out-X
--mo-X -> --mon-X
--se-X -> --ser-X
9 years ago
Georgi Chorbadzhiyski
e8bfb2bf00
Add support for --vi-output and --vi-monitor parameters.
9 years ago
Georgi Chorbadzhiyski
a42e405e05
Introduce struct vcmd_param to cleanup struct vcmd_entry.
9 years ago
Georgi Chorbadzhiyski
dd92e76c94
Add support for setting device friendly name using --set-name
My Videohub Micro doesn't support this extra but I suppose the
bigger models do (at least the official software v6 reads this
value and shows it instead of the device model).
9 years ago
Georgi Chorbadzhiyski
d6f8eeeebe
Add support for frames (names, routing and locks)
It is not tested on a real hardware. The number of frame buffers
is assumed to be the same as number of serial ports (as good guess
as any).
9 years ago
Georgi Chorbadzhiyski
54b685d478
Add support for processing units (routing and locks).
It is not tested on a real hardware.
9 years ago
Georgi Chorbadzhiyski
afdb845e60
Make handling of port disconnection generic.
9 years ago
Georgi Chorbadzhiyski
c87a7538b9
Display the undocumented "Friendly name" device setting.
9 years ago
Georgi Chorbadzhiyski
c4d62cb179
Report invalid port statuses.
9 years ago
Georgi Chorbadzhiyski
55a391f6e8
Add support for undocumented "Thunderbolt" port status/type.
9 years ago
Georgi Chorbadzhiyski
6176fb9bfe
Add support for clearing serial port connections.
9 years ago
Georgi Chorbadzhiyski
6004840714
Allow port routing to be canceled. It is needed for serial ports.
9 years ago
Georgi Chorbadzhiyski
45b59a4683
Report unknown settings in VIDEOHUB DEVICE command.
9 years ago
Georgi Chorbadzhiyski
ec2454ac5a
Add enum for input/output/monitoring/serial ports statuses.
9 years ago
Georgi Chorbadzhiyski
39bc206641
Small fix for serial directions.
9 years ago
Georgi Chorbadzhiyski
30a6246f79
Add support for serial ports (names, routing, locks and directions).
9 years ago
Georgi Chorbadzhiyski
a331d546b5
Preparation for serial commands support.
9 years ago
Georgi Chorbadzhiyski
74952e542a
Add full support for monitoring video outputs.
9 years ago
Georgi Chorbadzhiyski
bdf1c28b6f
Make --backup function use generic command types.
9 years ago
Georgi Chorbadzhiyski
822ef3bb37
Fix detection of monitoring outputs.
9 years ago
Georgi Chorbadzhiyski
40bb54c2a3
Parse commands based on their type.
This allows adding of new commands without any changes to command
parsing and generation code.
9 years ago
Georgi Chorbadzhiyski
cf4141cf4d
Refactor code into get_port_by_name().
9 years ago
Georgi Chorbadzhiyski
ebdf864c80
Create struct port_set which contains a set of ports.
9 years ago
Georgi Chorbadzhiyski
9e99f9d7d2
Start to move to data driven command parser.
9 years ago
Georgi Chorbadzhiyski
6f3c4c27cf
Simplify port lock handling.
9 years ago
Georgi Chorbadzhiyski
e16243a5d8
Add q() macro that checks quiet flag.
9 years ago
Georgi Chorbadzhiyski
f300e5c449
Add support for port statuses (types) reported by Univeral Videohub.
9 years ago
Georgi Chorbadzhiyski
e7d8e15880
Add support for reading commands from text file using -T / --test-input.
9 years ago
Georgi Chorbadzhiyski
97988a6a9f
Rename internal variable.
Some very old and broken compilers complain about shadowing bcopy().
9 years ago
Georgi Chorbadzhiyski
8e1aefbec6
Show executed commands in human readable commands format.
9 years ago
Georgi Chorbadzhiyski
81e1974c4d
cmd: Format CMD_INPUT_LABELS command separate from others.
9 years ago
Georgi Chorbadzhiyski
925385a527
cmd: outputs and inputs arrays are always big enough to holds num_video_{inputs,outputs}.
9 years ago
Georgi Chorbadzhiyski
290382b178
cmd: Check valid slot against outputs.
9 years ago
Georgi Chorbadzhiyski
0612aeceec
cmd: Change file description.
9 years ago
Georgi Chorbadzhiyski
20b533f5a8
Add configuration commands.
Add support for setting video input/output names, video output locking
and video output routing.
9 years ago
Georgi Chorbadzhiyski
55959179ea
Improve and simplify command parsing.
9 years ago
Georgi Chorbadzhiyski
8e881d6d11
Rename -v / --verbose parameter to -d / --debug.
9 years ago
Georgi Chorbadzhiyski
5a008c530a
Move commands enum into cmd.h
9 years ago
Georgi Chorbadzhiyski
6ef51a7374
Move some checks out of parse_cmd().
It is not a good idea parse_cmd() to just die().
9 years ago
Georgi Chorbadzhiyski
bcab8b796b
Improve some range checks.
9 years ago
Georgi Chorbadzhiyski
3adee6c91b
Use proper locks terminology.
9 years ago
Georgi Chorbadzhiyski
a6d9bdbbf6
Add support for 'needs_update' device status.
9 years ago
Georgi Chorbadzhiyski
37992c486a
Add proper protocol version checks.
9 years ago
Georgi Chorbadzhiyski
d4079fb1f6
Include cmd.h where needed and fix the errors.
9 years ago
Georgi Chorbadzhiyski
56ae756e57
Add support for exclusive and non-exclusive locks.
9 years ago
Georgi Chorbadzhiyski
84c20a4ce4
Enable parsing of several commands in single buffer.
It is not guaranteed that each command will come in it's own buffer. In
fact when several changes are made at once the commands are not separated.
9 years ago
Georgi Chorbadzhiyski
15c33940e8
Use couple of -v / --verbose parameters to increase logging verbosity.
9 years ago
Georgi Chorbadzhiyski
6aa6835528
Locks are per output not per input.
9 years ago
Georgi Chorbadzhiyski
6c09abc053
Fix routing information.
The routing was completely reversed and buggy. It should be done by
output instead it was done by input.
9 years ago
Georgi Chorbadzhiyski
09814bb426
VideoHub control initial commit.
9 years ago