From 4bfef7e8a22368d6ea867e67c8c59b1429a7467c Mon Sep 17 00:00:00 2001 From: Ranjani Sridharan Date: Tue, 22 Feb 2022 20:40:12 -0800 Subject: [PATCH] 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 --- src/audio/codec_adapter/codec_adapter.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/audio/codec_adapter/codec_adapter.c b/src/audio/codec_adapter/codec_adapter.c index 74e7c1260..2873d9b1a 100644 --- a/src/audio/codec_adapter/codec_adapter.c +++ b/src/audio/codec_adapter/codec_adapter.c @@ -225,9 +225,8 @@ int codec_adapter_params(struct comp_dev *dev, } static void -codec_adapter_copy_from_source_to_lib(const struct audio_stream *source, - const struct module_processing_data *mpd, - size_t bytes) +ca_copy_from_source_to_module(const struct audio_stream *source, + const struct module_processing_data *mpd, size_t bytes) { /* head_size - available data until end of local buffer */ 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) { buffer_stream_invalidate(source, codec_buff_size); - codec_adapter_copy_from_source_to_lib(&source->stream, &md->mpd, - codec_buff_size); + ca_copy_from_source_to_module(&source->stream, &md->mpd, codec_buff_size); md->mpd.avail = codec_buff_size; ret = module_process(dev); if (ret) @@ -344,8 +342,7 @@ int codec_adapter_copy(struct comp_dev *dev) } buffer_stream_invalidate(source, codec_buff_size); - codec_adapter_copy_from_source_to_lib(&source->stream, &md->mpd, - codec_buff_size); + ca_copy_from_source_to_module(&source->stream, &md->mpd, codec_buff_size); md->mpd.avail = codec_buff_size; ret = module_process(dev); if (ret) {