mirror of https://github.com/thesofproject/sof.git
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:
parent
42eccb306b
commit
e9442e04c6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue