codec_adapter: fix local buffer prepare

We are only setting the parameters on the allocation of the local buffer
which means if the params change on the next run it will not change and
break things.

Signed-off-by: Curtis Malainey <cujomalainey@chromium.org>
This commit is contained in:
Curtis Malainey 2021-03-29 12:00:54 -07:00 committed by Liam Girdwood
parent 0277eb8c2d
commit f0ecc7b68a
1 changed files with 2 additions and 2 deletions

View File

@ -263,9 +263,9 @@ static int codec_adapter_prepare(struct comp_dev *dev)
return -ENOMEM;
}
buffer_set_params(cd->local_buff, &cd->stream_params,
BUFFER_UPDATE_FORCE);
}
buffer_set_params(cd->local_buff, &cd->stream_params,
BUFFER_UPDATE_FORCE);
buffer_reset_pos(cd->local_buff, NULL);
cd->state = PP_STATE_PREPARED;