Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/rebuild-testbench.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export_xtensa_setup()
cat <<EOFSETUP > "$export_script"
export XTENSA_TOOLS_ROOT=$XTENSA_TOOLS_ROOT
export XTENSA_CORE=$XTENSA_CORE
XTENSA_PATH=$tools_bin
export XTENSA_PATH=$tools_bin
EOFSETUP
}

Expand Down
3 changes: 2 additions & 1 deletion src/audio/mfcc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ config COMP_MFCC
tristate "MFCC component"
depends on COMP_MODULE_ADAPTER
select CORDIC_FIXED
select MATH_16BIT_MEL_FILTERBANK
select MATH_32BIT_FFT
select MATH_32BIT_MEL_FILTERBANK
select MATH_AUDITORY
select MATH_DCT
select MATH_DECIBELS
Expand Down
11 changes: 1 addition & 10 deletions src/audio/mfcc/mfcc.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ static int mfcc_prepare(struct processing_module *mod,
enum sof_ipc_frame source_format;
enum sof_ipc_frame sink_format;
size_t data_size;
uint32_t sink_period_bytes;
int ret;

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

/* get sink data format and period bytes */
sink_format = audio_stream_get_frm_fmt(&sinkb->stream);
sink_period_bytes = audio_stream_period_bytes(&sinkb->stream, dev->frames);
comp_info(dev, "source_format = %d, sink_format = %d",
source_format, sink_format);
if (audio_stream_get_size(&sinkb->stream) < sink_period_bytes) {
comp_err(dev, "sink buffer size %d is insufficient < %d",
audio_stream_get_size(&sinkb->stream), sink_period_bytes);
ret = -ENOMEM;
goto err;
}
comp_info(dev, "source_format = %d, sink_format = %d", source_format, sink_format);

cd->config = comp_get_data_blob(cd->model_handler, &data_size, NULL);
Comment thread
singalsu marked this conversation as resolved.

Expand Down
Loading
Loading