#ifdef PCIDMA
array[i] = __le16_to_cpu(array[i]);
#endif
- array[i] ^= devpriv->ai_xorlist[ async->cur_chan ];
+ array[i] ^= devpriv->ai_xorlist[ chan_index ];
chan_index++;
chan_index %= async->cmd.chanlist_len;
}
/* fix the external/internal range differences */
range = ni_gainlkup[boardtype.gainlkup][range];
- devpriv->ai_xorlist[i] = (range&0x100)?0:offset;
+ if( boardtype.reg_611x )
+ devpriv->ai_xorlist[i] = offset;
+ else
+ devpriv->ai_xorlist[i] = (range&0x100)?0:offset;
hi = 0;
if( ( list[i] & CR_ALT_SOURCE ) )