diff options
author | Ritu Sharma <ritushar@codeaurora.org> | 2021-09-23 17:35:45 +0530 |
---|---|---|
committer | Ritu Sharma <ritushar@codeaurora.org> | 2021-09-23 17:46:47 +0530 |
commit | 910484c0d0cb0ffabe806cc54479311447c0bbe1 (patch) | |
tree | 409134d231903536fe63674a014e3e9ab12c5591 /compress_plugin.c | |
parent | 59ab62c9cd847563a68ef88b81eec9014413f23a (diff) |
tinycompress: plugin: Set codec params in SETUP state
Allow codec params to be set in COMPRESS_PLUG_SETUP state as well.
CRs-Fixed: 3023915
Change-Id: Ic1f93628c9fa325653cbd65a0cc827310276f81d
Diffstat (limited to 'compress_plugin.c')
-rw-r--r-- | compress_plugin.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compress_plugin.c b/compress_plugin.c index eac0f38..0e536cc 100644 --- a/compress_plugin.c +++ b/compress_plugin.c @@ -86,7 +86,8 @@ static int compress_plug_set_params(struct compress_plug_data *plug_data, if (plugin->state == COMPRESS_PLUG_STATE_RUNNING) return plugin->ops->set_params(plugin, params); - else if (plugin->state != COMPRESS_PLUG_STATE_OPEN) + else if (plugin->state != COMPRESS_PLUG_STATE_OPEN && + plugin->state != COMPRESS_PLUG_STATE_SETUP) return -EBADFD; if (params->buffer.fragment_size == 0 || |