- From: Nils Juergens <ju_at_isf.rwth-aachen.de>
- Date: Tue, 25 Nov 2003 17:31:46 +0100
Hello again,
in the case of a command with start_src=TRIG_EXT, the Control_CNT0 control
bit is overwritten when interrupt_service_pci1710() switches from TRIG_EXT to
TRIG_xxx.
This patch fixes that. Please apply :)
thanks,
Nils
diff -u -b -B -r1.26 adv_pci1710.c
--- adv_pci1710.c 13 Nov 2003 21:13:11 -0000 1.26
+++ adv_pci1710.c 25 Nov 2003 16:08:59 -0000
_at__at_ -724,7 +729,9 _at__at_
if (devpriv->ai_et) { // Switch from initial TRIG_EXT to TRIG_xxx.
devpriv->ai_et = 0;
- outw(Control_SW, dev->iobase+PCI171x_CONTROL);
+ devpriv->CntrlReg&=Control_CNT0;
+ devpriv->CntrlReg|=Control_SW; // set software trigger
+ outw(devpriv->CntrlReg, dev->iobase+PCI171x_CONTROL);
devpriv->CntrlReg=devpriv->ai_et_CntrlReg;
outb(0,dev->iobase + PCI171x_CLRFIFO);
outb(0,dev->iobase + PCI171x_CLRINT);
Received on 2003-11-25Z16:31:46