[zaptel-commits] kpfleming: branch mogorman/zaptel-1.2-transcoder
r1935 - in /team/mogorman/za...
zaptel-commits at lists.digium.com
zaptel-commits at lists.digium.com
Tue Jan 23 11:03:09 MST 2007
Author: kpfleming
Date: Tue Jan 23 12:03:08 2007
New Revision: 1935
URL: http://svn.digium.com/view/zaptel?view=rev&rev=1935
Log:
Merged revisions 1912,1920,1923 via svnmerge from
https://origsvn.digium.com/svn/zaptel/branches/1.2
........
r1912 | file | 2007-01-22 19:57:00 -0600 (Mon, 22 Jan 2007) | 2 lines
Fix Congestion tone for Australia. (issue #8891 reported by JT)
........
r1920 | kpfleming | 2007-01-23 09:25:42 -0600 (Tue, 23 Jan 2007) | 2 lines
clean up various compiler warnings
........
r1923 | kpfleming | 2007-01-23 09:39:12 -0600 (Tue, 23 Jan 2007) | 2 lines
use the proper function prototype for 2.6 kernels
........
Modified:
team/mogorman/zaptel-1.2-transcoder/ (props changed)
team/mogorman/zaptel-1.2-transcoder/pciradio.c
team/mogorman/zaptel-1.2-transcoder/torisa.c
team/mogorman/zaptel-1.2-transcoder/wctdm.c
team/mogorman/zaptel-1.2-transcoder/wctdm24xxp.c
team/mogorman/zaptel-1.2-transcoder/xpp/xpp_zap.c
team/mogorman/zaptel-1.2-transcoder/zaptel.c
team/mogorman/zaptel-1.2-transcoder/zonedata.c
team/mogorman/zaptel-1.2-transcoder/ztd-eth.c
Propchange: team/mogorman/zaptel-1.2-transcoder/
------------------------------------------------------------------------------
--- svnmerge-integrated (original)
+++ svnmerge-integrated Tue Jan 23 12:03:08 2007
@@ -1,1 +1,1 @@
-/branches/1.2:1-1906
+/branches/1.2:1-1934
Modified: team/mogorman/zaptel-1.2-transcoder/pciradio.c
URL: http://svn.digium.com/view/zaptel/team/mogorman/zaptel-1.2-transcoder/pciradio.c?view=diff&rev=1935&r1=1934&r2=1935
==============================================================================
--- team/mogorman/zaptel-1.2-transcoder/pciradio.c (original)
+++ team/mogorman/zaptel-1.2-transcoder/pciradio.c Tue Jan 23 12:03:08 2007
@@ -169,8 +169,8 @@
volatile unsigned long ioaddr;
dma_addr_t readdma;
dma_addr_t writedma;
- volatile int *writechunk; /* Double-word aligned write memory */
- volatile int *readchunk; /* Double-word aligned read memory */
+ volatile unsigned int *writechunk; /* Double-word aligned write memory */
+ volatile unsigned int *readchunk; /* Double-word aligned read memory */
unsigned char saudio_status[NUM_CHANS];
char gotcor[NUM_CHANS];
char gotct[NUM_CHANS];
@@ -539,7 +539,7 @@
static void _do_encdec(struct pciradio *rad)
{
int i,n;
-unsigned char byte1,byte2;
+unsigned char byte1 = 0, byte2 = 0;
/* return doing nothing if busy */
if ((rad->encdec.lastcmd + 2) > jiffies) return;
@@ -1260,7 +1260,7 @@
if ((rad->rxindex < stack.p.data) &&
(rad->srxtimer < SRX_TIMEOUT) &&
((rad->remmode[chan->chanpos - 1] == ZT_RADPAR_REM_SERIAL) ||
- (!strchr(rad->rxbuf,'\r'))))
+ (!strchr((char *) rad->rxbuf,'\r'))))
{
spin_unlock_irqrestore(&rad->lock,flags);
interruptible_sleep_on_timeout(&mywait,2);
@@ -1662,7 +1662,7 @@
/* Allocate enough memory for two zt chunks, receive and transmit. Each sample uses
32 bits. Allocate an extra set just for control too */
- rad->writechunk = (int *)pci_alloc_consistent(pdev, ZT_MAX_CHUNKSIZE * 2 * 2 * 2 * 4, &rad->writedma);
+ rad->writechunk = pci_alloc_consistent(pdev, ZT_MAX_CHUNKSIZE * 2 * 2 * 2 * 4, &rad->writedma);
if (!rad->writechunk) {
printk("pciradio: Unable to allocate DMA-able memory\n");
if (rad->freeregion)
Modified: team/mogorman/zaptel-1.2-transcoder/torisa.c
URL: http://svn.digium.com/view/zaptel/team/mogorman/zaptel-1.2-transcoder/torisa.c?view=diff&rev=1935&r1=1934&r2=1935
==============================================================================
--- team/mogorman/zaptel-1.2-transcoder/torisa.c (original)
+++ team/mogorman/zaptel-1.2-transcoder/torisa.c Tue Jan 23 12:03:08 2007
@@ -1139,6 +1139,7 @@
}
+#if !defined(LINUX26)
static int __init set_tor_base(char *str)
{
base = simple_strtol(str, NULL, 0);
@@ -1146,6 +1147,7 @@
}
__setup("tor=", set_tor_base);
+#endif
static void __exit tor_exit(void)
{
Modified: team/mogorman/zaptel-1.2-transcoder/wctdm.c
URL: http://svn.digium.com/view/zaptel/team/mogorman/zaptel-1.2-transcoder/wctdm.c?view=diff&rev=1935&r1=1934&r2=1935
==============================================================================
--- team/mogorman/zaptel-1.2-transcoder/wctdm.c (original)
+++ team/mogorman/zaptel-1.2-transcoder/wctdm.c Tue Jan 23 12:03:08 2007
@@ -345,8 +345,8 @@
unsigned long ioaddr;
dma_addr_t readdma;
dma_addr_t writedma;
- volatile int *writechunk; /* Double-word aligned write memory */
- volatile int *readchunk; /* Double-word aligned read memory */
+ volatile unsigned int *writechunk; /* Double-word aligned write memory */
+ volatile unsigned int *readchunk; /* Double-word aligned read memory */
struct zt_chan chans[NUM_CARDS];
};
@@ -2204,7 +2204,7 @@
/* Allocate enough memory for two zt chunks, receive and transmit. Each sample uses
32 bits. Allocate an extra set just for control too */
- wc->writechunk = (int *)pci_alloc_consistent(pdev, ZT_MAX_CHUNKSIZE * 2 * 2 * 2 * 4, &wc->writedma);
+ wc->writechunk = pci_alloc_consistent(pdev, ZT_MAX_CHUNKSIZE * 2 * 2 * 2 * 4, &wc->writedma);
if (!wc->writechunk) {
printk("wctdm: Unable to allocate DMA-able memory\n");
if (wc->freeregion)
Modified: team/mogorman/zaptel-1.2-transcoder/wctdm24xxp.c
URL: http://svn.digium.com/view/zaptel/team/mogorman/zaptel-1.2-transcoder/wctdm24xxp.c?view=diff&rev=1935&r1=1934&r2=1935
==============================================================================
--- team/mogorman/zaptel-1.2-transcoder/wctdm24xxp.c (original)
+++ team/mogorman/zaptel-1.2-transcoder/wctdm24xxp.c Tue Jan 23 12:03:08 2007
@@ -398,7 +398,6 @@
static int battthresh = DEFAULT_BATT_THRESH;
static int debug = 0;
static int robust = 0;
-static int timingonly = 0;
static int lowpower = 0;
static int boostringer = 0;
static int fastringer = 0;
@@ -410,7 +409,6 @@
#ifdef VPM_SUPPORT
static int vpmsupport = 1;
static int vpmdtmfsupport = 0;
-static int vpmspans = 4;
#define VPM_DEFAULT_DTMFTHRESHOLD 1250
static int dtmfthreshold = VPM_DEFAULT_DTMFTHRESHOLD;
#endif
@@ -2705,7 +2703,7 @@
/* Allocate enough memory for two zt chunks, receive and transmit. Each sample uses
32 bits. Allocate an extra set just for control too */
- wc->writechunk = (int *)pci_alloc_consistent(pdev, PCI_WINDOW_SIZE, &wc->writedma);
+ wc->writechunk = pci_alloc_consistent(pdev, PCI_WINDOW_SIZE, &wc->writedma);
if (!wc->writechunk) {
printk("wctdm: Unable to allocate DMA-able memory\n");
if (wc->freeregion)
@@ -2878,7 +2876,6 @@
module_param(robust, int, 0600);
module_param(_opermode, int, 0600);
module_param(opermode, charp, 0600);
-module_param(timingonly, int, 0600);
module_param(lowpower, int, 0600);
module_param(boostringer, int, 0600);
module_param(fastringer, int, 0600);
@@ -2889,7 +2886,6 @@
#ifdef VPM_SUPPORT
module_param(vpmsupport, int, 0600);
module_param(vpmdtmfsupport, int, 0600);
-module_param(vpmspans, int, 0600);
module_param(dtmfthreshold, int, 0600);
#endif
#else
@@ -2898,7 +2894,6 @@
MODULE_PARM(robust, "i");
MODULE_PARM(_opermode, "i");
MODULE_PARM(opermode, "s");
-MODULE_PARM(timingonly, "i");
MODULE_PARM(lowpower, "i");
MODULE_PARM(boostringer, "i");
MODULE_PARM(fastringer, "i");
@@ -2909,7 +2904,6 @@
#ifdef VPM_SUPPORT
MODULE_PARM(vpmsupport, "i");
MODULE_PARM(vpmdtmfsupport, "i");
-MODULE_PARM(vpmspans, "i");
MODULE_PARM(dtmfthreshold, "i");
#endif
#endif
Modified: team/mogorman/zaptel-1.2-transcoder/xpp/xpp_zap.c
URL: http://svn.digium.com/view/zaptel/team/mogorman/zaptel-1.2-transcoder/xpp/xpp_zap.c?view=diff&rev=1935&r1=1934&r2=1935
==============================================================================
--- team/mogorman/zaptel-1.2-transcoder/xpp/xpp_zap.c (original)
+++ team/mogorman/zaptel-1.2-transcoder/xpp/xpp_zap.c Tue Jan 23 12:03:08 2007
@@ -433,7 +433,9 @@
len += sprintf(page + len, "\nzaptel state: %s RUNNING\n", (xpd->span.flags & ZT_FLAG_RUNNING)?"IS":"IS NOT");
len += sprintf(page + len, "\nPCM:\n | [readchunk] | [writechunk] | delay");
for_each_line(xpd, i) {
+#if 0
struct zt_chan *chans = xpd->span.chans;
+#endif
byte rchunk[ZT_CHUNKSIZE];
byte wchunk[ZT_CHUNKSIZE];
byte *rp;
Modified: team/mogorman/zaptel-1.2-transcoder/zaptel.c
URL: http://svn.digium.com/view/zaptel/team/mogorman/zaptel-1.2-transcoder/zaptel.c?view=diff&rev=1935&r1=1934&r2=1935
==============================================================================
--- team/mogorman/zaptel-1.2-transcoder/zaptel.c (original)
+++ team/mogorman/zaptel-1.2-transcoder/zaptel.c Tue Jan 23 12:03:08 2007
@@ -186,6 +186,7 @@
static int deftaps = 64;
+#if !defined(LINUX26)
static
__u16 fcstab[256] =
{
@@ -222,6 +223,7 @@
0xf78f, 0xe606, 0xd49d, 0xc514, 0xb1ab, 0xa022, 0x92b9, 0x8330,
0x7bc7, 0x6a4e, 0x58d5, 0x495c, 0x3de3, 0x2c6a, 0x1ef1, 0x0f78
};
+#endif
static int debug;
@@ -6249,7 +6251,7 @@
static void __zt_receive_chunk(struct zt_chan *chan, unsigned char *buf)
{
/* Receive chunk of audio -- called with chan->lock held */
- char waste[ZT_CHUNKSIZE];
+ unsigned char waste[ZT_CHUNKSIZE];
if (!buf) {
memset(waste, ZT_LIN2X(0, chan), sizeof(waste));
Modified: team/mogorman/zaptel-1.2-transcoder/zonedata.c
URL: http://svn.digium.com/view/zaptel/team/mogorman/zaptel-1.2-transcoder/zonedata.c?view=diff&rev=1935&r1=1934&r2=1935
==============================================================================
--- team/mogorman/zaptel-1.2-transcoder/zonedata.c (original)
+++ team/mogorman/zaptel-1.2-transcoder/zonedata.c Tue Jan 23 12:03:08 2007
@@ -46,7 +46,7 @@
{ ZT_TONE_BUSY, "425/375,0/375" },
{ ZT_TONE_RINGTONE, "413+438/400,0/200,413+438/400,0/2000" },
/* XXX Congestion: Should reduce by 10 db every other cadence XXX */
- { ZT_TONE_CONGESTION, "425/375,0/375,420/375,8/375" },
+ { ZT_TONE_CONGESTION, "425/375,0/375,420/375,0/375" },
{ ZT_TONE_CALLWAIT, "425/100,0/200,425/200,0/4400" },
{ ZT_TONE_DIALRECALL, "413+428" },
{ ZT_TONE_RECORDTONE, "!425/1000,!0/15000,425/360,0/15000" },
Modified: team/mogorman/zaptel-1.2-transcoder/ztd-eth.c
URL: http://svn.digium.com/view/zaptel/team/mogorman/zaptel-1.2-transcoder/ztd-eth.c?view=diff&rev=1935&r1=1934&r2=1935
==============================================================================
--- team/mogorman/zaptel-1.2-transcoder/ztd-eth.c (original)
+++ team/mogorman/zaptel-1.2-transcoder/ztd-eth.c Tue Jan 23 12:03:08 2007
@@ -84,7 +84,11 @@
return span;
}
+#if defined(LINUX26)
+static int ztdeth_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_type *pt, struct net_device *orig_dev)
+#else
static int ztdeth_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_type *pt)
+#endif
{
struct zt_span *span;
struct ztdeth_header *zh;
More information about the zaptel-commits
mailing list