From 8ed48876305e23ca69723aba8fa5f1465a794d9d Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Fri, 8 Jan 2010 20:48:03 +0000 Subject: voicebus: Remove framesize, buffer_cache, and cache_line members from struct. Framesize is the same on all the clients, so it can be removed from the 'struct voicebus' (and changed back again if needed). Since the framesize is the same, each board doesn't need it's own buffer_cache, and cache_line is only used during startup and can be read directly from pci configuration space, so we don't need to keep it around in our context. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7779 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/wctdm24xxp/base.c | 5 ++++- drivers/dahdi/wctdm24xxp/wctdm24xxp.h | 6 +++--- 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'drivers/dahdi/wctdm24xxp') diff --git a/drivers/dahdi/wctdm24xxp/base.c b/drivers/dahdi/wctdm24xxp/base.c index 0ea909b..0fd09aa 100644 --- a/drivers/dahdi/wctdm24xxp/base.c +++ b/drivers/dahdi/wctdm24xxp/base.c @@ -64,6 +64,10 @@ Tx Gain - W/Pre-Emphasis: -23.99 to 0.00 db #include "voicebus/GpakCust.h" #include "voicebus/GpakApi.h" +#if VOICEBUS_SFRAME_SIZE != SFRAME_SIZE +#error SFRAME_SIZE must match the VOICEBUS_SFRAME_SIZE +#endif + /* Experimental max loop current limit for the proslic Loop current limit is from 20 mA to 41 mA in steps of 3 @@ -3738,7 +3742,6 @@ static int __devinit wctdm_init_one(struct pci_dev *pdev, const struct pci_devic pci_set_drvdata(pdev, wc); wc->vb.ops = &voicebus_operations; - wc->vb.framesize = SFRAME_SIZE; wc->vb.pdev = pdev; wc->vb.debug = &debug; ret = voicebus_init(&wc->vb, wc->board_name); diff --git a/drivers/dahdi/wctdm24xxp/wctdm24xxp.h b/drivers/dahdi/wctdm24xxp/wctdm24xxp.h index f8eb2ce..1ca027d 100644 --- a/drivers/dahdi/wctdm24xxp/wctdm24xxp.h +++ b/drivers/dahdi/wctdm24xxp/wctdm24xxp.h @@ -53,9 +53,9 @@ #define FLAG_3215 (1 << 0) #define FLAG_EXPRESS (1 << 1) -#define EFRAME_SIZE 108 -#define ERING_SIZE 16 /* Maximum ring size */ -#define EFRAME_GAP 20 +#define EFRAME_SIZE 108L +#define ERING_SIZE 16L /* Maximum ring size */ +#define EFRAME_GAP 20L #define SFRAME_SIZE ((EFRAME_SIZE * DAHDI_CHUNKSIZE) + (EFRAME_GAP * (DAHDI_CHUNKSIZE - 1))) #define MAX_ALARMS 10 -- cgit v1.2.3