Skip to content

Commit

Permalink
Audio: Crossover: Fix build error
Browse files Browse the repository at this point in the history
The component build fails if it is enabled in Kconfig. The variable
pipeline_id is not defined, it should be sink_id.

Fixes: 5bcbcf1 ("Audio: Crossover: Convert to module adapter")

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
  • Loading branch information
singalsu authored and lgirdwood committed Aug 23, 2023
1 parent bc28b92 commit ad79181
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/audio/crossover/crossover.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,14 +170,14 @@ static int crossover_assign_sinks(struct processing_module *mod,
if (i < 0) {
comp_err(dev,
"crossover_assign_sinks(), could not find sink %d in config",
pipeline_id);
sink_id);
break;
}

if (sinks[i]) {
comp_err(dev,
"crossover_assign_sinks(), multiple sinks from pipeline %d are assigned",
pipeline_id);
sink_id);
break;
}

Expand Down

0 comments on commit ad79181

Please sign in to comment.