Oleksandr Andrushchenko wrote:I know that and always considered not a good solution,
On 08/07/2017 01:27 PM, Clemens Ladisch wrote:As far as I am aware, hw_ptr_base is an internal field that drivers
You have to implement period interrupts (and the .pointer callback)Do you think I can implement this in a slightly different way,
based on when the samples are actually moved from/to the backend.
without a timer at all, by updating
substream->runtime->hw_ptr_base explicitly in the frontend driver?
are not supposed to change.
Just use your own variable, and return it from the .pointer callback.this can work, but see below
So, that way, whenever I get an ack/response from the backend that it hasThat response should come after every period.
successfully played the buffer
How does that interface work?For the buffer received in .copy_user/.copy_kernel we send
Is it possible to change the period size,
or at least to detect what it is?
you can see the protocol at [1]
Regards,
Clemens