Skip to content

Commit 1315ef5

Browse files
committed
Audio: MFCC: Remove obsolete check for sink size
The checks previously done in prepare() are done in the module adapter. Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
1 parent 66a8be4 commit 1315ef5

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

src/audio/mfcc/mfcc.c

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ static int mfcc_prepare(struct processing_module *mod,
160160
enum sof_ipc_frame source_format;
161161
enum sof_ipc_frame sink_format;
162162
size_t data_size;
163-
uint32_t sink_period_bytes;
164163
int ret;
165164

166165
comp_info(dev, "entry");
@@ -178,15 +177,7 @@ static int mfcc_prepare(struct processing_module *mod,
178177

179178
/* get sink data format and period bytes */
180179
sink_format = audio_stream_get_frm_fmt(&sinkb->stream);
181-
sink_period_bytes = audio_stream_period_bytes(&sinkb->stream, dev->frames);
182-
comp_info(dev, "source_format = %d, sink_format = %d",
183-
source_format, sink_format);
184-
if (audio_stream_get_size(&sinkb->stream) < sink_period_bytes) {
185-
comp_err(dev, "sink buffer size %d is insufficient < %d",
186-
audio_stream_get_size(&sinkb->stream), sink_period_bytes);
187-
ret = -ENOMEM;
188-
goto err;
189-
}
180+
comp_info(dev, "source_format = %d, sink_format = %d", source_format, sink_format);
190181

191182
cd->config = comp_get_data_blob(cd->model_handler, &data_size, NULL);
192183

0 commit comments

Comments
 (0)