From: H Hartley Sweeten Date: Wed, 22 Oct 2014 21:36:36 +0000 (-0700) Subject: staging: comedi: cb_pcidas: introduce cb_pcidas_ao_load_fifo() X-Git-Tag: omap-for-v3.19/fixes-rc1~73^2~794 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2cc9854caf92526199935bc29685e253349362bc;p=pandora-kernel.git staging: comedi: cb_pcidas: introduce cb_pcidas_ao_load_fifo() Introduce a helper function to load the analog output FIFO. This fixes a bug in cb_pcidas_ao_inttrig(). That function was writing 'num_bytes' data values to the FIFO instead of 'num_points'. This results in twice the number of data values getting written to the FIFO. Use comedi_buf_read_samples() read the analog output samples from the async buffer. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed