Re: [PATCH] staging: comedi: das1800: fix analog input sample munging

2016-04-07 Thread Ian Abbott
On 06/04/16 18:45, H Hartley Sweeten wrote: The analog input samples are 2's complement when the inputs are configured for bipolar ranges and offset binary when they are unipolar ranges. For bipolar ranges the samples need to be munged to the offset binary format that comedi uses. The (*insn_rea

[PATCH] staging: comedi: das1800: fix analog input sample munging

2016-04-06 Thread H Hartley Sweeten
The analog input samples are 2's complement when the inputs are configured for bipolar ranges and offset binary when they are unipolar ranges. For bipolar ranges the samples need to be munged to the offset binary format that comedi uses. The (*insn_read) does the munging correctly but the async co