Skip to content

Commit

Permalink
up_down_mixer: Remove dummy prepare and reset methods
Browse files Browse the repository at this point in the history
The prepare, reset and free methods are now optional in module adapter.
Removed unnecessary prepare and reset methods.

Signed-off-by: Adrian Warecki <[email protected]>
  • Loading branch information
softwarecki committed Nov 30, 2023
1 parent 40fd44f commit 408acf3
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions src/audio/up_down_mixer/up_down_mixer.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,27 +398,6 @@ static int up_down_mixer_init(struct processing_module *mod)
return ret;
}

/* just stubs for now. Remove these after making these ops optional in the module adapter */
static int up_down_mixer_prepare(struct processing_module *mod,
struct sof_source **sources, int num_of_sources,
struct sof_sink **sinks, int num_of_sinks)
{
struct up_down_mixer_data *cd = module_get_private_data(mod);
struct comp_dev *dev = mod->dev;

if (!cd->mix_routine) {
comp_err(dev, "up_down_mixer_prepare(): mix routine not initialized");
return -EINVAL;
}

return 0;
}

static int up_down_mixer_reset(struct processing_module *mod)
{
return 0;
}

static int
up_down_mixer_process(struct processing_module *mod,
struct input_stream_buffer *input_buffers, int num_input_buffers,
Expand Down Expand Up @@ -458,9 +437,7 @@ up_down_mixer_process(struct processing_module *mod,

static const struct module_interface up_down_mixer_interface = {
.init = up_down_mixer_init,
.prepare = up_down_mixer_prepare,
.process_audio_stream = up_down_mixer_process,
.reset = up_down_mixer_reset,
.free = up_down_mixer_free
};

Expand Down

0 comments on commit 408acf3

Please sign in to comment.