Re: [PATCH 1/2] staging: comedi: rtd520: fix ai_read_n() async-cur_chan use

2014-10-31 Thread Ian Abbott
On 30/10/14 18:32, H Hartley Sweeten wrote: This functions uses the async-cur_chan to determine if the current channel is using a bipolar range and the sample needs to be munged. The cur_chan is never incremented so all the samples are munged based on the fist channel in the cmd-chanlist. Bump

[PATCH 1/2] staging: comedi: rtd520: fix ai_read_n() async-cur_chan use

2014-10-30 Thread H Hartley Sweeten
This functions uses the async-cur_chan to determine if the current channel is using a bipolar range and the sample needs to be munged. The cur_chan is never incremented so all the samples are munged based on the fist channel in the cmd-chanlist. Bump the cur_chan after writing each sample. This