Skip to content

Commit

Permalink
copier: remove redundant parameters when create endpoint buffer
Browse files Browse the repository at this point in the history
Remove no use or redundant parameters in create endpoint buffer
function.

Signed-off-by: Baofeng Tian <baofeng.tian@intel.com>
  • Loading branch information
btian1 authored and kv2019i committed Aug 8, 2023
1 parent 84c52b4 commit 2d1f53a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/audio/copier/copier_dai.c
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ int copier_dai_create(struct comp_dev *dev, struct copier_data *cd,

/* create multi_endpoint_buffer for ALH multi-gateway case */
if (dai_count > 1) {
ret = create_endpoint_buffer(dev, cd, config, copier, type, true, 0);
ret = create_endpoint_buffer(dev, cd, copier, true);
if (ret < 0)
return ret;
}
Expand Down
6 changes: 2 additions & 4 deletions src/audio/copier/copier_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,10 @@ void copier_update_params(struct copier_data *cd, struct comp_dev *dev,

int create_endpoint_buffer(struct comp_dev *dev,
struct copier_data *cd,
struct comp_ipc_config *config,
const struct ipc4_copier_module_cfg *copier_cfg,
enum ipc4_gateway_type type,
bool create_multi_endpoint_buffer,
int index)
bool create_multi_endpoint_buffer)
{
struct comp_ipc_config *config = &dev->ipc_config;
enum sof_ipc_frame in_frame_fmt, out_frame_fmt;
enum sof_ipc_frame in_valid_fmt, out_valid_fmt;
enum sof_ipc_frame valid_fmt;
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 @@ -246,7 +246,7 @@ int copier_ipcgtw_create(struct comp_dev *dev, struct copier_data *cd,
*/
config->type = SOF_COMP_HOST;

ret = create_endpoint_buffer(dev, cd, config, copier, ipc4_gtw_none, false, 0);
ret = create_endpoint_buffer(dev, cd, copier, false);
if (ret < 0)
return ret;

Expand Down
5 changes: 1 addition & 4 deletions src/include/ipc4/copier.h
Original file line number Diff line number Diff line change
Expand Up @@ -282,11 +282,8 @@ pcm_converter_func get_converter_func(const struct ipc4_audio_format *in_fmt,
struct comp_ipc_config;
int create_endpoint_buffer(struct comp_dev *dev,
struct copier_data *cd,
struct comp_ipc_config *config,
const struct ipc4_copier_module_cfg *copier_cfg,
enum ipc4_gateway_type type,
bool create_multi_endpoint_buffer,
int index);
bool create_multi_endpoint_buffer);

enum sof_ipc_stream_direction
get_gateway_direction(enum ipc4_connector_node_id_type node_id_type);
Expand Down

0 comments on commit 2d1f53a

Please sign in to comment.