diff --git a/src/audio/buffers/comp_buffer.c b/src/audio/buffers/comp_buffer.c index 94ef276d6e96..c7a7a18a16cf 100644 --- a/src/audio/buffers/comp_buffer.c +++ b/src/audio/buffers/comp_buffer.c @@ -434,27 +434,6 @@ int buffer_set_params(struct comp_buffer *buffer, } EXPORT_SYMBOL(buffer_set_params); -bool buffer_params_match(struct comp_buffer *buffer, - struct sof_ipc_stream_params *params, uint32_t flag) -{ - assert(params); - CORE_CHECK_STRUCT(&buffer->audio_buffer); - - if ((flag & BUFF_PARAMS_FRAME_FMT) && - audio_stream_get_frm_fmt(&buffer->stream) != params->frame_fmt) - return false; - - if ((flag & BUFF_PARAMS_RATE) && - audio_stream_get_rate(&buffer->stream) != params->rate) - return false; - - if ((flag & BUFF_PARAMS_CHANNELS) && - audio_stream_get_channels(&buffer->stream) != params->channels) - return false; - - return true; -} - void comp_update_buffer_produce(struct comp_buffer *buffer, uint32_t bytes) { struct buffer_cb_transact cb_data = {