From: Ian Abbott Date: Wed, 28 Nov 2007 11:12:17 +0000 (+0000) Subject: Release Z2-CT2 resource after AI command started if convert_src is neither X-Git-Tag: v0_7_76~43 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=cc542b44e04302ad244197dd85f5a178767b5cbe;p=comedi.git Release Z2-CT2 resource after AI command started if convert_src is neither TRIG_TIMER nor TRIG_INT. --- 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); } } }