Skip to content

Conversation

@mpratyus
Copy link

Move tinycompress/compress_ops.h from noinst_HEADERS to nobase_include_HEADERS so it gets installed for users.

Move tinycompress/compress_ops.h from noinst_HEADERS to
nobase_include_HEADERS so it gets installed for users.

Signed-off-by: Pratyush Meduri <mpratyus@qti.qualcomm.com>
@vinodkoul
Copy link
Contributor

thanks for the change.
Can you please give reasons for this change? Why should we move this header for users to care about. Please provide motivation for the change.

@mpratyus
Copy link
Author

The motivation for this change is to make compress_ops.h available to external users and plugins that need to implement or register compress offload backends, rather than using tinycompress purely as a client library.
Currently, compress_ops.h is marked as noinst_HEADERS, which limits it to internal use within tinycompress itself. However, the header defines the struct compress_ops interface, which is required by some of our software components that implement their own compress backends and need to integrate with tinycompress using the same ABI and data structures.

perexg added a commit to perexg/tinycompress that referenced this pull request Jan 21, 2026
Link: alsa-project#30
Fixes: 72dd4bb ("compress_hw_get_hpointer: use SNDRV_COMPRESS_AVAIL64")
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
perexg added a commit to perexg/tinycompress that referenced this pull request Jan 21, 2026
We need more validation of passed ops structure to allow
further API changes in future.

This change looks for compress_plugin_mops symbol in the
dynamic plugin library to make sure that the new magic
and new get_tstamp64 members are handled correctly.

Link: alsa-project#29
Link: alsa-project#30
Fixes: 0bd5530 ("compress_ops: add get_tstamp64")
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
@perexg
Copy link
Member

perexg commented Jan 21, 2026

I put some ideas to improve ops API to #31 before we make this header public.

And yes, there is populate_compress_plugin_ops() function which tries to load and use external plugins on demand.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants