mirror of https://github.com/thesofproject/sof.git
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:
parent
247c2b28f6
commit
516b34d875
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue