From bb1be3064af6882cd226fc6df9154fa905e9bd4a Mon Sep 17 00:00:00 2001 From: David Schleef Date: Sun, 10 Feb 2002 04:11:36 +0000 Subject: [PATCH] Change buffer allocation to use mite allocator. --- comedi/drivers/ni_pcimio.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/comedi/drivers/ni_pcimio.c b/comedi/drivers/ni_pcimio.c index 1d4b3144..c906eec7 100644 --- a/comedi/drivers/ni_pcimio.c +++ b/comedi/drivers/ni_pcimio.c @@ -675,6 +675,13 @@ static int pcimio_find_device(comedi_device *dev,int bus,int slot) static int pcimio_ai_alloc(comedi_device *dev, comedi_subdevice *s, unsigned long new_size) { + int ret; + + ret = mite_buf_alloc(devpriv->mite, s->async, new_size); + if(ret<0)return ret; + + return 0; +#if 0 comedi_async *async = s->async; if(async->prealloc_buf && async->prealloc_bufsz == new_size){ @@ -700,6 +707,7 @@ static int pcimio_ai_alloc(comedi_device *dev, comedi_subdevice *s, async->prealloc_bufsz = new_size; return 0; +#endif } -- 2.26.2