[alsa-devel] [PATCH 2/3] ALSA: compress_core: Split copy into seperate read and write callbacks

Pierre-Louis Bossart pierre-louis.bossart at linux.intel.com
Thu Apr 4 20:01:57 CEST 2013

On 04/03/2013 07:13 AM, Charles Keepax wrote:
> The compress API for non-memory mapped DSPs shares a copy callback for
> both read and write, however the file operation of write passes a const
> buffer. Thus we can't maintain const correctness for the copy callback
> and support both read and write.
> This patch seperates the read and write callbacks in the compressed API.

Why not remove the const to make this consistent with the PCM interface?

More information about the Alsa-devel mailing list