From c3aa29c3e25998ddf1859eeac0e288c702d5cc77 Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Thu, 25 Mar 2010 16:23:53 +0000 Subject: wctdm24xxp: Add an 'hx8' mode for buffer processing. The Hx8 series cards do not need any idle buffers and idle_buffers complicate processing when using the timing_cable. This change adds another mode of operation for the voicebus layer for the Hx8 cards that operates without the idle buffers. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@8431 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/wctdm24xxp/base.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'drivers/dahdi/wctdm24xxp/base.c') diff --git a/drivers/dahdi/wctdm24xxp/base.c b/drivers/dahdi/wctdm24xxp/base.c index e91f660..2d040f6 100644 --- a/drivers/dahdi/wctdm24xxp/base.c +++ b/drivers/dahdi/wctdm24xxp/base.c @@ -4668,7 +4668,7 @@ __wctdm_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) if (is_hx8(wc)) { wc->vb.ops = &hx8_voicebus_operations; - ret = voicebus_no_idle_init(&wc->vb, wc->board_name); + ret = voicebus_boot_init(&wc->vb, wc->board_name); } else { wc->vb.ops = &voicebus_operations; ret = voicebus_init(&wc->vb, wc->board_name); @@ -4716,12 +4716,12 @@ __wctdm_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) return -EIO; } - /* Switch back to the normal mode of operation */ + /* Switch to the normal operating mode for this card. */ voicebus_stop(&wc->vb); wc->vb.ops = &voicebus_operations; voicebus_set_minlatency(&wc->vb, latency); voicebus_set_maxlatency(&wc->vb, max_latency); - voicebus_set_normal_mode(&wc->vb); + voicebus_set_hx8_mode(&wc->vb); if (voicebus_start(&wc->vb)) BUG_ON(1); } -- cgit v1.2.3