Skip to content

Commit c88023b

Browse files
Jyri Sarhalgirdwood
authored andcommitted
Audio: Smart Amp: Convert from component- to module API
NOTE: This change has not been tested in any functional setup For smart_amp to remain compatible with developing SOF it has to be converted to use module API. The component API as such does not allow llext loading or user-space usage. However, its unlikely the module will work out of the box after this change, but in any case this should make it easier to take smart_amp again into use. This patch converts this component to module adapter API. - New() becomes simpler init() - Params() is handled in module adapter, in init() "mod->verify_params_flags = BUFF_PARAMS_CHANNELS;" replaces smart_amp_verify_params() - Channels check in params() is placed to separate function smart_amp_ipc4_params() to be called from prepare() - cmd() handler is changed to module adapter client style with smart_amp_set_configuration() and smart_amp_get_configuration(). - smart_amp_copy() becomes module API smart_amp_process() function - smart_amo_prepare() picks sources and sink and does other preparations for processing - smart_amp_trigger() does the same thing as before, zeroes feedback buffer at playback start - Preliminary IPC4 support added Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>
1 parent 6b2d862 commit c88023b

1 file changed

Lines changed: 162 additions & 191 deletions

File tree

0 commit comments

Comments
 (0)