drc: Clean up source_format on component reset

Clean up all contents in component data on reset().

Signed-off-by: Pin-chih Lin <johnylin@google.com>
This commit is contained in:
Pin-chih Lin 2021-07-26 13:58:47 +08:00 committed by Liam Girdwood
parent b63b8e992b
commit c9bed91e6d
1 changed files with 1 additions and 0 deletions

View File

@ -442,6 +442,7 @@ static int drc_reset(struct comp_dev *dev)
drc_reset_state(&cd->state);
cd->source_format = 0;
cd->drc_func = NULL;
comp_set_state(dev, COMP_TRIGGER_RESET);