dts: remove buffer_acquire from dts.c

remove buffer ops from dts.c

this is a continuation of changes
from commit 4a03699

Signed-off-by: Tobiasz Dryjanski <tobiaszx.dryjanski@intel.com>
This commit is contained in:
Tobiasz Dryjanski 2023-09-15 20:06:30 +02:00 committed by Liam Girdwood
parent bdc8316768
commit 252381238b
1 changed files with 1 additions and 6 deletions

View File

@ -78,7 +78,6 @@ static int dts_effect_populate_buffer_configuration(struct comp_dev *dev,
{
struct comp_buffer *source = list_first_item(&dev->bsource_list, struct comp_buffer,
sink_list);
struct comp_buffer *source_c;
const struct audio_stream *stream;
DtsSofInterfaceBufferLayout buffer_layout;
DtsSofInterfaceBufferFormat buffer_format;
@ -89,16 +88,12 @@ static int dts_effect_populate_buffer_configuration(struct comp_dev *dev,
if (!source)
return -EINVAL;
source_c = buffer_acquire(source);
stream = &source_c->stream;
stream = &source->stream;
buffer_fmt = audio_stream_get_buffer_fmt(stream);
frame_fmt = audio_stream_get_frm_fmt(stream);
rate = audio_stream_get_rate(stream);
channels = audio_stream_get_channels(stream);
buffer_release(source_c);
switch (buffer_fmt) {
case SOF_IPC_BUFFER_INTERLEAVED:
buffer_layout = DTS_SOF_INTERFACE_BUFFER_LAYOUT_INTERLEAVED;