diff options
author | Jake Weinstein <jake@aospa.co> | 2023-10-31 07:03:04 +0900 |
---|---|---|
committer | alk3pInjection <webmaster@raspii.tech> | 2023-12-27 00:35:28 +0800 |
commit | 7b4840522f61eaec3162d3fc234c701cce553798 (patch) | |
tree | cec7731b2842e9bc137e5d0c1b81d671bc346c97 /compress_plugin.c | |
parent | d1e4fdea6d1201756414f2ab9a97dfa7571bb8ce (diff) |
Conditionally Revert "tinycompress: do not loop in the compress read"umineko
This change isn't ready for audio HALs before 5.10 and
breaks compress audio record, such as in WhatsApp.
This reverts commit f6700a93634f3c219a40b1298d12cbbf5ebf1160.
Co-Authored-By: Adithya R <gh0strider.2k18.reborn@gmail.com>
Change-Id: Ia87f587db74cad31585cac5fb5e628f29d1ba109
Diffstat (limited to 'compress_plugin.c')
-rw-r--r-- | compress_plugin.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compress_plugin.c b/compress_plugin.c index ac54f6c..5cb97c0 100644 --- a/compress_plugin.c +++ b/compress_plugin.c @@ -43,7 +43,9 @@ #include <linux/ioctl.h> #include <sound/asound.h> #include "tinycompress/compress_plugin.h" +#ifndef LOOP_COMPRESS_READ #include "tinycompress/tinycompress.h" +#endif #include "sound/compress_offload.h" #include "compress_ops.h" #include "snd_utils.h" @@ -99,8 +101,10 @@ static int compress_plug_set_params(struct compress_plug_data *plug_data, rc = plugin->ops->set_params(plugin, params); if (!rc) { plugin->state = COMPRESS_PLUG_STATE_SETUP; +#ifndef LOOP_COMPRESS_READ if (plug_data->flags & COMPRESS_OUT) plugin->state = COMPRESS_PLUG_STATE_PREPARED; +#endif } return rc; |