LF-3665-5 ASoC: SOF: compr: Add compress ops implementation
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>