From f3d9caf14fe296a710d9392a16e7ce43339e6f0b Mon Sep 17 00:00:00 2001 From: Curtis Malainey Date: Mon, 29 Mar 2021 12:00:54 -0700 Subject: [PATCH] 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 --- src/audio/codec_adapter/codec_adapter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/audio/codec_adapter/codec_adapter.c b/src/audio/codec_adapter/codec_adapter.c index 9486e619d3af..8d0fca1d7dde 100644 --- a/src/audio/codec_adapter/codec_adapter.c +++ b/src/audio/codec_adapter/codec_adapter.c @@ -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;