mux: Clean up processing functions on reset.

Clean up mux/demux processing functions in component
data on reset().

Signed-off-by: Eddy Hsu <eddyhsu@chromium.org>
This commit is contained in:
Eddy Hsu 2022-04-20 21:13:51 +00:00 committed by Liam Girdwood
parent 247c2b28f6
commit 516b34d875
1 changed files with 6 additions and 0 deletions

View File

@ -598,6 +598,7 @@ static int mux_reset(struct comp_dev *dev)
int dir = dev->pipeline->source_comp->direction;
struct list_item *blist;
struct comp_buffer *source;
struct comp_data *cd = comp_get_drvdata(dev);
comp_info(dev, "mux_reset()");
@ -612,6 +613,11 @@ static int mux_reset(struct comp_dev *dev)
}
}
if (dev->ipc_config.type == SOF_COMP_MUX)
cd->mux = NULL;
else
cd->demux = NULL;
comp_set_state(dev, COMP_TRIGGER_RESET);
return 0;
}