[Pkg-voip-commits] r2706 - zaptel/trunk/debian/patches
Tzafrir Cohen
tzafrir-guest at alioth.debian.org
Wed Nov 15 16:07:57 CET 2006
Author: tzafrir-guest
Date: 2006-11-15 16:07:56 +0100 (Wed, 15 Nov 2006)
New Revision: 2706
Added:
zaptel/trunk/debian/patches/sangoma.dpatch
Log:
Sangoma's small changes to zaptel.[ch] .
Added: zaptel/trunk/debian/patches/sangoma.dpatch
===================================================================
--- zaptel/trunk/debian/patches/sangoma.dpatch 2006-11-15 15:06:31 UTC (rev 2705)
+++ zaptel/trunk/debian/patches/sangoma.dpatch 2006-11-15 15:07:56 UTC (rev 2706)
@@ -0,0 +1,38 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## sangoma.dpatch by Tzafrir Cohen <tzafrir.cohen at xorcom.com>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: The patch zaptel.patch from the Sangoma wanpipe driver distribution.
+
+ at DPATCH@
+diff -urNad zaptel-1.2.8.xpp.r2496/zaptel.c /tmp/dpep.3jOAuc/zaptel-1.2.8.xpp.r2496/zaptel.c
+--- zaptel-1.2.8.xpp.r2496/zaptel.c 2006-08-24 12:08:11.000000000 +0300
++++ /tmp/dpep.3jOAuc/zaptel-1.2.8.xpp.r2496/zaptel.c 2006-10-26 21:15:01.000000000 +0200
+@@ -1774,6 +1774,13 @@
+ } else {
+ if (copy_from_user(chan->writebuf[chan->inwritebuf], usrbuf, amnt))
+ return -EFAULT;
++
++ if ((chan->flags & ZT_FLAG_HDLC) && chan->span->ioctl != NULL){
++ if (chan->span->ioctl(chan, ZT_DCHAN_TX_V2, amnt)==0){
++ return amnt;
++ }
++ }
++
+ chan->writen[chan->inwritebuf] = amnt;
+ }
+ chan->writeidx[chan->inwritebuf] = 0;
+diff -urNad zaptel-1.2.8.xpp.r2496/zaptel.h /tmp/dpep.3jOAuc/zaptel-1.2.8.xpp.r2496/zaptel.h
+--- zaptel-1.2.8.xpp.r2496/zaptel.h 2006-08-24 12:08:11.000000000 +0300
++++ /tmp/dpep.3jOAuc/zaptel-1.2.8.xpp.r2496/zaptel.h 2006-10-26 21:15:01.000000000 +0200
+@@ -632,6 +632,10 @@
+ * 60-80 are reserved for private drivers
+ * 80-85 are reserved for dynamic span stuff
+ */
++#define ZT_DCHAN_TX _IOR (ZT_CODE, 60, int)
++#define ZT_DCHAN_TX_V1 ZT_DCHAN_TX
++#define ZT_DCHAN_TX_V2 ZT_DCHAN_TX
++
+
+ /*
+ * Create a dynamic span
Property changes on: zaptel/trunk/debian/patches/sangoma.dpatch
___________________________________________________________________
Name: svn:executable
+ *
More information about the Pkg-voip-commits
mailing list