diff options
author | Linux Build Service Account <lnxbuild@localhost> | 2022-04-15 20:12:21 -0700 |
---|---|---|
committer | Linux Build Service Account <lnxbuild@localhost> | 2022-04-15 20:12:21 -0700 |
commit | c7c0c4fae8c81adb8bc3791e215bc797d6b007a4 (patch) | |
tree | 8ff84f79bb871c15761516f097bf466700255858 /compress_plugin.c | |
parent | 4378d4e526cc7e3284478d28e6420661d145fc4a (diff) | |
parent | dd6039d4a998cac6eeef16d0d211a06031cea6f9 (diff) |
Merge dd6039d4a998cac6eeef16d0d211a06031cea6f9 on remote branch
Change-Id: Icf99c799295ca5ebc0cc1f7fb73d09eea65a4135
Diffstat (limited to 'compress_plugin.c')
-rw-r--r-- | compress_plugin.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/compress_plugin.c b/compress_plugin.c index 0e536cc..22f8f11 100644 --- a/compress_plugin.c +++ b/compress_plugin.c @@ -43,6 +43,7 @@ #include <linux/ioctl.h> #include <sound/asound.h> #include "tinycompress/compress_plugin.h" +#include "tinycompress/tinycompress.h" #include "sound/compress_offload.h" #include "compress_ops.h" #include "snd_utils.h" @@ -96,8 +97,11 @@ static int compress_plug_set_params(struct compress_plug_data *plug_data, return -EINVAL; rc = plugin->ops->set_params(plugin, params); - if (!rc) + if (!rc) { plugin->state = COMPRESS_PLUG_STATE_SETUP; + if (plug_data->flags & COMPRESS_OUT) + plugin->state = COMPRESS_PLUG_STATE_PREPARED; + } return rc; } |