[Debconf-video-commits] r455 - package/trunk/src

Ben Hutchings benh at alioth.debian.org
Mon Jul 13 01:34:18 UTC 2009


Author: benh
Date: 2009-07-13 01:34:18 +0000 (Mon, 13 Jul 2009)
New Revision: 455

Added:
   package/trunk/src/dc-tally-light
Modified:
   package/trunk/src/dc-start-source
Log:
Add support for tally lights


Modified: package/trunk/src/dc-start-source
===================================================================
--- package/trunk/src/dc-start-source	2009-07-13 01:33:37 UTC (rev 454)
+++ package/trunk/src/dc-start-source	2009-07-13 01:34:18 UTC (rev 455)
@@ -29,8 +29,13 @@
 		-p $MIXER_PORT -s $VIDEO_STANDARD ${source_device} \
 		&
 	    ;;
-	firewire)
+	firewire | firewire+tally)
 	    source_host="${source_path%%/*}"
+	    if [ "$source_scheme" = 'firewire+tally' ]; then
+		tally_extra="-t | dc-tally-light"
+	    else
+		tally_extra=
+	    fi
 	    if [ "$source_path" != "$source_host" ]; then
 		source_card="${source_path#*/}"
 	    else
@@ -38,6 +43,7 @@
 	    fi
 	    ssh $source_host dvsource-firewire -h $MIXER_HOST  \
 		-p $MIXER_PORT ${source_card:+-c $source_card} \
+		$tally_extra \
 		&
 	    ;;
 	*)

Added: package/trunk/src/dc-tally-light
===================================================================
--- package/trunk/src/dc-tally-light	                        (rev 0)
+++ package/trunk/src/dc-tally-light	2009-07-13 01:34:18 UTC (rev 455)
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+# Filter for output of dvsource-firewire -t.
+# Requires a USB-serial device with an LED between DTR and GND.
+
+TALLY_DEVICE=/dev/ttyUSB0
+source /etc/default/debconf-video
+
+while read line; do
+    case "$line" in
+	'TALLY: on')
+	    # Assert DTR
+	    exec 3>/dev/ttyUSB0
+	    ;;
+	'TALLY: off')
+	    # Deassert DTR
+	    exec 3>/dev/null
+	    ;;
+	*)
+	    echo "$line"
+	    ;;
+    esac
+done


Property changes on: package/trunk/src/dc-tally-light
___________________________________________________________________
Added: svn:executable
   + *




More information about the Debconf-video-commits mailing list