From: H Hartley Sweeten Date: Wed, 22 Oct 2014 21:36:37 +0000 (-0700) Subject: staging: comedi: cb_pcidas: introduce cb_pcidas64_ao_fill_buffer() X-Git-Tag: omap-for-v3.19/fixes-rc1~73^2~793 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7bd7d905629a8748fa43d20b930213f54ac9177d;p=pandora-kernel.git staging: comedi: cb_pcidas: introduce cb_pcidas64_ao_fill_buffer() Introduce a helper function to read the analog output samples from the async buffer. This fixes a bug in load_ao_dma_buffer(). That function was decrementing the 'ao_count' by the number of bytes, not the number of samples, that were read from the async buffer. Use comedi_buf_read_samples() to 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