Skip to content
Commit 651568cf authored by Daniel Baluta's avatar Daniel Baluta Committed by Meng Li
Browse files

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: default avatarDaniel Baluta <daniel.baluta@nxp.com>
Signed-off-by: default avatarMeng Li <Meng.Li@windriver.com>
parent 12980c66
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment