src:change error to warning when checking buffer

PR to change the error into a warning
is a good quick compromise
until a better limit is figured out

Signed-off-by: Kwasowiec, Fabiola <fabiola.kwasowiec@intel.com>
This commit is contained in:
Kwasowiec, Fabiola 2022-09-01 12:58:46 +02:00 committed by Kai Vehmanen
parent b738c5e8f2
commit 1dffde13ba
1 changed files with 4 additions and 6 deletions

View File

@ -946,16 +946,14 @@ static int src_check_buffer_sizes(struct comp_data *cd,
n = audio_stream_frame_bytes(source_stream) * (blk_in + cd->source_frames);
if (source_stream->size < n) {
comp_cl_err(&comp_src, "Source size %d is less than required %d",
source_stream->size, n);
return -ENOBUFS;
comp_cl_warn(&comp_src, "Source size %d is less than required %d",
source_stream->size, n);
}
n = audio_stream_frame_bytes(sink_stream) * (blk_out + cd->sink_frames);
if (sink_stream->size < n) {
comp_cl_err(&comp_src, "Sink size %d is less than required %d",
sink_stream->size, n);
return -ENOBUFS;
comp_cl_warn(&comp_src, "Sink size %d is less than required %d",
sink_stream->size, n);
}
return 0;