Skip to content

Commit

Permalink
to last commit - remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
marcinszkudlinski committed Oct 18, 2024
1 parent 40a131a commit ed0f20a
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions src/audio/buffers/comp_buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit ed0f20a

Please sign in to comment.