Browse Source

Add support for undocumented "Thunderbolt" port status/type.

Georgi Chorbadzhiyski 9 years ago
parent
commit
55a391f6e8
6 changed files with 6 additions and 0 deletions
  1. 1
    0
      ChangeLog
  2. 1
    0
      README
  3. 1
    0
      cmd.c
  4. 1
    0
      data.h
  5. 1
    0
      display.c
  6. 1
    0
      videohubctrl.1

+ 1
- 0
ChangeLog View File

4
  * Add support for serial ports (names, routing, locks and directions),
4
  * Add support for serial ports (names, routing, locks and directions),
5
     --se-name, --se-connect, --se-clear, --se-lock, --se-unlock,
5
     --se-name, --se-connect, --se-clear, --se-lock, --se-unlock,
6
     --se-dir and --list-serial.
6
     --se-dir and --list-serial.
7
+ * Add support for undocumented "Thunderbolt" port status/type.
7
 
8
 
8
 2014-11-30 : Version 0.4
9
 2014-11-30 : Version 0.4
9
  * Add videohubctrl(1) man page.
10
  * Add videohubctrl(1) man page.

+ 1
- 0
README View File

258
                        port is not installed.
258
                        port is not installed.
259
                   B  - The port type is "BNC".
259
                   B  - The port type is "BNC".
260
                   o  - The port type is "Optical".
260
                   o  - The port type is "Optical".
261
+                  T  - The port type is "Thunderbolt".
261
 
262
 
262
 
263
 
263
 Video outputs Legend
264
 Video outputs Legend

+ 1
- 0
cmd.c View File

202
 			else if (streq("Optical", port_data)) s_port->port[port_num].status = S_OPTICAL;
202
 			else if (streq("Optical", port_data)) s_port->port[port_num].status = S_OPTICAL;
203
 			else if (streq("RS422", port_data))   s_port->port[port_num].status = S_RS422;
203
 			else if (streq("RS422", port_data))   s_port->port[port_num].status = S_RS422;
204
 			else if (streq("None", port_data))    s_port->port[port_num].status = S_NONE;
204
 			else if (streq("None", port_data))    s_port->port[port_num].status = S_NONE;
205
+			else if (streq("Thunderbolt", port_data)) s_port->port[port_num].status = S_THUNDERBOLT;
205
 			break;
206
 			break;
206
 		case PARSE_DIR:
207
 		case PARSE_DIR:
207
 			s_port->port[port_num].direction = DIR_AUTO;
208
 			s_port->port[port_num].direction = DIR_AUTO;

+ 1
- 0
data.h View File

34
 	S_NONE,
34
 	S_NONE,
35
 	S_BNC,
35
 	S_BNC,
36
 	S_OPTICAL,
36
 	S_OPTICAL,
37
+	S_THUNDERBOLT,
37
 	S_RS422,
38
 	S_RS422,
38
 };
39
 };
39
 
40
 

+ 1
- 0
display.c View File

31
 	case S_UNKNOWN: return ' ';
31
 	case S_UNKNOWN: return ' ';
32
 	case S_BNC    : return 'B';
32
 	case S_BNC    : return 'B';
33
 	case S_OPTICAL: return 'o';
33
 	case S_OPTICAL: return 'o';
34
+	case S_THUNDERBOLT: return 'T';
34
 	case S_NONE   : return 'x';
35
 	case S_NONE   : return 'x';
35
 	case S_RS422  : return '4'; // For serial ports
36
 	case S_RS422  : return '4'; // For serial ports
36
 	}
37
 	}

+ 1
- 0
videohubctrl.1 View File

58
        installed in the device.
58
        installed in the device.
59
   B  - The port type is "BNC".
59
   B  - The port type is "BNC".
60
   o  - The port type is "Optical".
60
   o  - The port type is "Optical".
61
+  T  - The port type is "Thunderbolt".
61
 .fi
62
 .fi
62
 .TP
63
 .TP
63
 \fB\-\-list\-voutputs\fR
64
 \fB\-\-list\-voutputs\fR

Loading…
Cancel
Save