Skip to content

Commit bf57568

Browse files
committed
Audio: MFCC: As workaround convert stream rate error to warning
For unknown reason the rate for MFCC appears as 48 kHz though it should be 16 kHz after SRC in the same topology pipeline. This change lets the MFCC module to run and initialize the processing correctly even if the check fails. Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
1 parent 4179e9d commit bf57568

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/audio/mfcc/mfcc_setup.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,9 @@ int mfcc_setup(struct processing_module *mod, int max_frames, int sample_rate, i
128128
}
129129

130130
if (config->sample_frequency != sample_rate) {
131-
comp_err(dev, "Config sample_frequency does not match stream");
132-
return -EINVAL;
131+
comp_warn(dev, "Config sample_frequency %d does not match stream %d",
132+
config->sample_frequency, sample_rate);
133+
sample_rate = config->sample_frequency;
133134
}
134135

135136
cd->max_frames = max_frames;

0 commit comments

Comments
 (0)