module_adpater: change the buffer size of waves_codec

Change the buffer size of waves_codec from 2ms to SCHEDULE_PERIOD

Signed-off-by: CY Kuei <cyk@waves.com>
This commit is contained in:
CY Kuei 2022-06-10 17:39:21 +08:00 committed by Liam Girdwood
parent 42eccb306b
commit e9442e04c6
1 changed files with 2 additions and 2 deletions

View File

@ -342,8 +342,8 @@ static int waves_effect_init(struct processing_module *mod)
waves_codec->o_format = waves_codec->i_format;
waves_codec->sample_size_in_bytes = sample_bytes;
waves_codec->buffer_samples = (src_fmt->rate * 2) / 1000; /* 2 ms io buffers */
waves_codec->buffer_bytes = waves_codec->buffer_samples * src_fmt->channels *
waves_codec->buffer_bytes = mod->period_bytes;
waves_codec->buffer_samples = waves_codec->buffer_bytes / src_fmt->channels /
waves_codec->sample_size_in_bytes;
// trace allows printing only up-to 4 words at a time