sof
sof copied to clipboard
Pipeline2 0 - audio_buffer / sink / source api extensions and simplifications
There are 3 APIs each buffer must implement (Sink/src/audio_buffer) - for data producers/consumers/maintenance
each of them need to have methods doing same operations - like settings stream parameters
this PR adds methods to audio_buffer API allowing access to stream parameters It also introduces a simplification: in case of sink/src API provided by buffers the following methods:
- on_audio_format_set
- audio_set_ipc_params
- set_alignment_constants
need to be implement only once (not for sink/sourcer/audio_buffer API separately). Proper implementation will be called by a default wrappers
(how do I miss C++, such things are sooooooo natural there, in C there's a need for sophisticated tricks like this PR)