LF-3665-5 ASoC: SOF: compr: Add compress ops implementation
commit 6ba9191d51ddea63f1924c87411ae6745bc0cbbf from git://source.codeaurora.org/external/qoriq/qoriq-components/linux Implement snd_compress_ops. There are a lot of similarities with PCM implementation. Few notes: 1) How do we keep track of the total number of transferred bytes? We make use of Host component updating the position in the current period via posn.host_posn. See sof_set_transferred_bytes. 2) How do we send compress parameters to SOF? We make use of sof_ipc_pcm_params struct which SOF knows about. In the future this might be extended via a new sof_ipc_compress_params. Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com> Signed-off-by: Meng Li <Meng.Li@windriver.com>
Please register or sign in to comment