Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/audio/template_comp/template.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ static int template_comp_process(struct processing_module *mod,
{
struct template_comp_comp_data *cd = module_get_private_data(mod);
struct comp_dev *dev = mod->dev;
struct sof_source *source = sources[0];
struct sof_sink *sink = sinks[0];
struct sof_source *source = sources[0]; /* One input in this example */
struct sof_sink *sink = sinks[0]; /* One output in this example */
int frames = source_get_data_frames_available(source);
int sink_frames = sink_get_free_frames(sink);

Expand Down Expand Up @@ -112,6 +112,9 @@ static int template_comp_prepare(struct processing_module *mod,

comp_dbg(dev, "template_comp_prepare()");

/* The processing example in this component supports one input and one
* output. Generally there can be more.
*/
if (num_of_sources != 1 || num_of_sinks != 1)
return -EINVAL;

Expand Down
Loading