From cc542b44e04302ad244197dd85f5a178767b5cbe Mon Sep 17 00:00:00 2001 From: Ian Abbott Date: Wed, 28 Nov 2007 11:12:17 +0000 Subject: [PATCH] Release Z2-CT2 resource after AI command started if convert_src is neither TRIG_TIMER nor TRIG_INT. --- comedi/drivers/amplc_pci230.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/comedi/drivers/amplc_pci230.c b/comedi/drivers/amplc_pci230.c index 119f8a22..42be725d 100644 --- a/comedi/drivers/amplc_pci230.c +++ b/comedi/drivers/amplc_pci230.c @@ -1911,6 +1911,9 @@ static void pci230_ai_start(comedi_device * dev, comedi_subdevice * s) break; } } + } else if (cmd->convert_src != TRIG_INT) { + /* No longer need Z2-CT2. */ + put_one_resource(dev, RES_Z2CT2, OWNER_AICMD); } } } -- 2.26.2