mirror of https://github.com/thesofproject/sof.git
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:
parent
bdc8316768
commit
252381238b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue