Skip to content

Commit

Permalink
audio: copier: move copier generic header file to copier folder
Browse files Browse the repository at this point in the history
This header file is referred by external modules, add relative
path for external module usage.

Signed-off-by: Baofeng Tian <[email protected]>
  • Loading branch information
btian1 committed Oct 24, 2023
1 parent 54c3991 commit 34b26a0
Show file tree
Hide file tree
Showing 14 changed files with 12 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/audio/copier/copier.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
#include <sof/trace/trace.h>
#include <ipc4/alh.h>
#include <ipc4/base-config.h>
#include <ipc4/copier.h>
#include <ipc4/module.h>
#include <ipc4/error_status.h>
#include <ipc4/gateway.h>
Expand All @@ -37,6 +36,7 @@
#include <stddef.h>
#include <stdint.h>
#include <sof/audio/module_adapter/module/generic.h>
#include "copier.h"
#include "host_copier.h"
#include "dai_copier.h"
#include "ipcgtw_copier.h"
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/audio/copier/copier_dai.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

#include <sof/trace/trace.h>
#include <sof/audio/component_ext.h>
#include <ipc4/copier.h>
#include <ipc/dai.h>
#include <sof/audio/module_adapter/module/generic.h>
#include "copier.h"
#include "dai_copier.h"

LOG_MODULE_DECLARE(copier, CONFIG_SOF_LOG_LEVEL);
Expand Down
2 changes: 1 addition & 1 deletion src/audio/copier/copier_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
// Author: Andrula Song <[email protected]>

#include <ipc4/base-config.h>
#include <ipc4/copier.h>
#include <sof/audio/component_ext.h>
#include "copier.h"

LOG_MODULE_DECLARE(copier, CONFIG_SOF_LOG_LEVEL);

Expand Down
2 changes: 1 addition & 1 deletion src/audio/copier/copier_hifi.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Copyright(c) 2022 Intel Corporation. All rights reserved.
//
// Author: Andrula Song <[email protected]>
#include <ipc4/copier.h>
#include "copier.h"

#if __XCC__ && (XCHAL_HAVE_HIFI3 || XCHAL_HAVE_HIFI4)

Expand Down
2 changes: 1 addition & 1 deletion src/audio/copier/copier_host.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
#include <sof/audio/component_ext.h>
#include <sof/tlv.h>
#include <sof/trace/trace.h>
#include <ipc4/copier.h>
#include <sof/audio/module_adapter/module/generic.h>
#include "copier.h"
#include "host_copier.h"

LOG_MODULE_DECLARE(copier, CONFIG_SOF_LOG_LEVEL);
Expand Down
2 changes: 1 addition & 1 deletion src/audio/copier/copier_ipcgtw.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <sof/lib/memory.h>
#include <sof/ut.h>
#include <rtos/init.h>
#include <ipc4/copier.h>
#include "copier.h"
#include "ipcgtw_copier.h"

LOG_MODULE_REGISTER(ipcgtw, CONFIG_SOF_LOG_LEVEL);
Expand Down
2 changes: 1 addition & 1 deletion src/audio/copier/dai-zephyr.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@
#include <ipc/dai.h>
#include <ipc/stream.h>
#include <ipc/topology.h>
#include <ipc4/copier.h>
#include <user/trace.h>
#include <errno.h>
#include <stddef.h>
#include <stdint.h>
#include "copier.h"
#include "dai_copier.h"

#include <zephyr/device.h>
Expand Down
2 changes: 1 addition & 1 deletion src/audio/copier/host-zephyr.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#include <sof/audio/pcm_converter.h>
#include <sof/audio/pipeline.h>
#include <sof/audio/ipc-config.h>
#include <ipc4/copier.h>
#include <sof/common.h>
#include <rtos/panic.h>
#include <sof/ipc/msg.h>
Expand All @@ -32,6 +31,7 @@
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include "copier.h"
#include "host_copier.h"

static const struct comp_driver comp_host;
Expand Down
2 changes: 1 addition & 1 deletion src/audio/copier/host_copier.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include <sof/audio/ipc-config.h>
#include <ipc/stream.h>
#include <sof/lib/notifier.h>
#include <ipc4/copier.h>
#include "copier.h"

typedef void (*copy_callback_t)(struct comp_dev *dev, size_t bytes);

Expand Down
2 changes: 1 addition & 1 deletion src/audio/copier/ipcgtw_copier.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include <ipc4/gateway.h>
#include <sof/list.h>
#include <ipc/stream.h>
#include <ipc4/copier.h>
#include "copier.h"

/* Host communicates with IPC gateways via global IPC messages. To address a particular
* IPC gateway, its node_id is sent in message payload. Hence we need to keep a list of existing
Expand Down
2 changes: 1 addition & 1 deletion src/audio/pipeline/pipeline-stream.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include <rtos/string.h>
#include <ipc/stream.h>
#include <ipc/topology.h>
#include <ipc4/copier.h>
#include <../audio/copier/copier.h>
#include <ipc4/module.h>
#include <rtos/kernel.h>

Expand Down
2 changes: 1 addition & 1 deletion src/ipc/ipc4/dai.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
#include <ipc/header.h>
#include <ipc4/alh.h>
#include <ipc4/ssp.h>
#include <ipc4/copier.h>
#include <ipc4/fw_reg.h>
#include <ipc/dai.h>
#include <errno.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <../audio/copier/copier.h>
#include <../audio/copier/dai_copier.h>

LOG_MODULE_DECLARE(ipc, CONFIG_SOF_LOG_LEVEL);
Expand Down
1 change: 0 additions & 1 deletion src/ipc/ipc4/helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
#include <rimage/cavs/cavs_ext_manifest.h>
#include <rimage/sof/user/manifest.h>
#include <ipc4/base-config.h>
#include <ipc4/copier.h>
#include <ipc/header.h>
#include <ipc4/notification.h>
#include <ipc4/pipeline.h>
Expand Down

0 comments on commit 34b26a0

Please sign in to comment.