codec_adapter: rename ca_copy_from_source_to_lib

rename it to ca_copy_from_source_to_module(). No functional change.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
This commit is contained in:
Ranjani Sridharan 2022-02-22 20:40:12 -08:00 committed by Daniel Baluta
parent d73b626130
commit 4bfef7e8a2
1 changed files with 4 additions and 7 deletions

View File

@ -225,9 +225,8 @@ int codec_adapter_params(struct comp_dev *dev,
} }
static void static void
codec_adapter_copy_from_source_to_lib(const struct audio_stream *source, ca_copy_from_source_to_module(const struct audio_stream *source,
const struct module_processing_data *mpd, const struct module_processing_data *mpd, size_t bytes)
size_t bytes)
{ {
/* head_size - available data until end of local buffer */ /* head_size - available data until end of local buffer */
const int without_wrap = audio_stream_bytes_without_wrap(source, source->r_ptr); const int without_wrap = audio_stream_bytes_without_wrap(source, source->r_ptr);
@ -329,8 +328,7 @@ int codec_adapter_copy(struct comp_dev *dev)
if (!md->mpd.init_done) { if (!md->mpd.init_done) {
buffer_stream_invalidate(source, codec_buff_size); buffer_stream_invalidate(source, codec_buff_size);
codec_adapter_copy_from_source_to_lib(&source->stream, &md->mpd, ca_copy_from_source_to_module(&source->stream, &md->mpd, codec_buff_size);
codec_buff_size);
md->mpd.avail = codec_buff_size; md->mpd.avail = codec_buff_size;
ret = module_process(dev); ret = module_process(dev);
if (ret) if (ret)
@ -344,8 +342,7 @@ int codec_adapter_copy(struct comp_dev *dev)
} }
buffer_stream_invalidate(source, codec_buff_size); buffer_stream_invalidate(source, codec_buff_size);
codec_adapter_copy_from_source_to_lib(&source->stream, &md->mpd, ca_copy_from_source_to_module(&source->stream, &md->mpd, codec_buff_size);
codec_buff_size);
md->mpd.avail = codec_buff_size; md->mpd.avail = codec_buff_size;
ret = module_process(dev); ret = module_process(dev);
if (ret) { if (ret) {