LF-3665-5 ASoC: SOF: compr: Add compress ops implementation
authorDaniel Baluta <daniel.baluta@nxp.com>
Tue, 19 Jan 2021 18:57:01 +0000 (20:57 +0200)
committerDaniel Baluta <daniel.baluta@nxp.com>
Wed, 28 Apr 2021 12:28:04 +0000 (15:28 +0300)
commit6ba9191d51ddea63f1924c87411ae6745bc0cbbf
treeb8668a7f508ccb5104734ad9e9d648667565a38e
parent0183793e5ef8b417059c833c0ea3def90b6e5740
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>
sound/soc/sof/compress.c