Skip to content

Commit 8169ac9

Browse files
buf: move buffer.c to buffers
comp_buffer, implemented in buffer.c file, should be kept in the buffers directory, together with all buffers Signed-off-by: Marcin Szkudlinski <marcin.szkudlinski@intel.com>
1 parent 9180cb9 commit 8169ac9

4 files changed

Lines changed: 12 additions & 3 deletions

File tree

src/audio/CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,15 @@ if(NOT CONFIG_COMP_MODULE_SHARED_LIBRARY_BUILD)
1010
add_local_sources(sof
1111
host-legacy.c
1212
component.c
13-
buffer.c
1413
source_api_helper.c
1514
sink_api_helper.c
1615
sink_source_utils.c
1716
audio_stream.c
1817
channel_map.c
1918
)
2019

20+
add_subdirectory(buffers)
21+
2122
if(CONFIG_COMP_BLOB)
2223
add_local_sources(sof data_blob.c)
2324
endif()
@@ -128,7 +129,7 @@ endif()
128129
add_local_sources(sof
129130
component.c
130131
data_blob.c
131-
buffer.c
132+
buffers/buffer.c
132133
buffers/audio_buffer.c
133134
source_api_helper.c
134135
sink_api_helper.c

src/audio/buffers/CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# SPDX-License-Identifier: BSD-3-Clause
2+
3+
add_local_sources(sof audio_buffer.c)
4+
add_local_sources(sof buffer.c)
5+
6+
if(CONFIG_PIPELINE_2_0)
7+
add_local_sources(sof ring_buffer.c)
8+
endif()

zephyr/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ zephyr_library_sources(
412412

413413
# SOF mandatory audio processing
414414
${SOF_AUDIO_PATH}/channel_map.c
415-
${SOF_AUDIO_PATH}/buffer.c
415+
${SOF_AUDIO_PATH}/buffers/buffer.c
416416
${SOF_AUDIO_PATH}/buffers/audio_buffer.c
417417
${SOF_AUDIO_PATH}/source_api_helper.c
418418
${SOF_AUDIO_PATH}/sink_api_helper.c

0 commit comments

Comments
 (0)