Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
8 changes: 8 additions & 0 deletions src/audio/src/src_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,14 @@ int src_allocate_copy_stages(struct comp_dev *dev, struct src_param *prm,
coef_size[0] = tap_size * stage_src1->filter_length;
coef_size[1] = tap_size * stage_src2->filter_length;

if (coef_size[0] == 0 || coef_size[1] == 0) {
comp_err(dev,
"illegal zero coefficient vector size for unsupported conversion request %d to %d",
prm->in_fs[prm->idx_in], prm->out_fs[prm->idx_out]);
rfree(stage_dst);
return -EINVAL;
}

stage_dst[0].coefs = fast_get(stage_src1->coefs, coef_size[0]);
stage_dst[1].coefs = fast_get(stage_src2->coefs, coef_size[1]);

Expand Down
28 changes: 14 additions & 14 deletions src/audio/src/tune/sof_src_ipc4_int32.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,22 @@
% 1 1 2 2 3 4 4 6 8 9 7 9
% 8 1 6 2 4 2 4 8 4 8 6 6 2
%
1 0 1 0 1 1 1 1 0 1 1 1 1 % 8
1 0 1 0 1 1 1 1 0 1 1 1 0 % 11
1 0 1 0 1 1 1 1 0 1 1 1 1 % 12
1 0 1 0 1 1 1 1 0 1 1 1 1 % 16
1 0 1 0 1 1 1 1 1 1 1 1 1 % 8
1 0 1 0 1 1 1 1 1 1 1 1 0 % 11
1 0 1 0 1 1 1 1 1 1 1 1 1 % 12
1 0 1 0 1 1 1 1 1 1 1 1 1 % 16
0 0 0 0 1 0 1 1 0 0 0 0 0 % 18.9
1 0 1 0 1 1 1 1 0 1 1 1 1 % 22.05
1 0 1 0 1 1 1 1 0 1 1 1 1 % 24
1 0 1 0 1 1 1 1 0 1 1 1 1 % 32
1 0 1 0 1 1 1 1 1 1 1 1 1 % 22.05
1 0 1 0 1 1 1 1 1 1 1 1 1 % 24
1 0 1 0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