mirror of https://github.com/thesofproject/sof.git
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:
parent
b738c5e8f2
commit
1dffde13ba
|
@ -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);
|
n = audio_stream_frame_bytes(source_stream) * (blk_in + cd->source_frames);
|
||||||
if (source_stream->size < n) {
|
if (source_stream->size < n) {
|
||||||
comp_cl_err(&comp_src, "Source size %d is less than required %d",
|
comp_cl_warn(&comp_src, "Source size %d is less than required %d",
|
||||||
source_stream->size, n);
|
source_stream->size, n);
|
||||||
return -ENOBUFS;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
n = audio_stream_frame_bytes(sink_stream) * (blk_out + cd->sink_frames);
|
n = audio_stream_frame_bytes(sink_stream) * (blk_out + cd->sink_frames);
|
||||||
if (sink_stream->size < n) {
|
if (sink_stream->size < n) {
|
||||||
comp_cl_err(&comp_src, "Sink size %d is less than required %d",
|
comp_cl_warn(&comp_src, "Sink size %d is less than required %d",
|
||||||
sink_stream->size, n);
|
sink_stream->size, n);
|
||||||
return -ENOBUFS;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue