Skip to content

Conversation

@perexg
Copy link
Member

@perexg perexg commented Jan 21, 2026

This is a follow up for #29 and #30. Comments are welcome.

Link: alsa-project#30
Fixes: 72dd4bb ("compress_hw_get_hpointer: use SNDRV_COMPRESS_AVAIL64")
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
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>
It is not required to polute ops with two versions
of similar callbacks when we introduced V2 ops. Handle the
wrapping in the top level (compress_get_tstamp function).

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Allow to pass unwrapped avail value to applications. Introduce
new compress_get_hpointer64() function and change callback
in ops.

Use UINT_MAX limiting rather than blind wrap like in the previous
code in compress_get_hpointer().

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
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.

1 participant