audio: rtnr: partial revert of 589df2aea4

The original commit failed to take into account that the assigned stream
was an adapter (not audio_stream) therefore revert in this file since
the adapter is unchanged.

Fixes: 589df2aea4 ("buffer: don't access stream internals")
Signed-off-by: Curtis Malainey <cujomalainey@chromium.org>
This commit is contained in:
Curtis Malainey 2023-07-13 17:13:23 -07:00 committed by Kai Vehmanen
parent cdb115f58e
commit d9f6d07186
1 changed files with 1 additions and 1 deletions

View File

@ -381,7 +381,7 @@ static int rtnr_params(struct comp_dev *dev, struct sof_ipc_stream_params *param
/* set source/sink stream channels */
cd->sources_stream[0].channels = audio_stream_get_channels(&source_c->stream);
audio_stream_set_channels(&cd->sink_stream, audio_stream_get_channels(&sink_c->stream));
cd->sink_stream.channels = audio_stream_get_channels(&sink_c->stream);
/* set source/sink stream overrun/underrun permitted */
cd->sources_stream[0].overrun_permitted = audio_stream_get_overrun(&source_c->stream);