-
Notifications
You must be signed in to change notification settings - Fork 311
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tools: Testbench: Add to IPC4 version UUID based components load, apply initial byte control, etc. #9542
base: main
Are you sure you want to change the base?
Tools: Testbench: Add to IPC4 version UUID based components load, apply initial byte control, etc. #9542
Changes from all commits
6a07a2d
26d66e4
f647a52
b6650bc
1a0470f
7cd25e1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* SPDX-License-Identifier: BSD-3-Clause | ||
* | ||
* Copyright(c) 2017-2024 Intel Corporation | ||
*/ | ||
|
||
#ifndef __SOF_AUDIO_SRC_SRC_IPC_H__ | ||
#define __SOF_AUDIO_SRC_SRC_IPC_H__ | ||
|
||
#include <sof/audio/ipc-config.h> | ||
#include <ipc4/base-config.h> | ||
#include <stdint.h> | ||
|
||
/* src component private data */ | ||
struct ipc4_config_src { | ||
struct ipc4_base_module_cfg base; | ||
uint32_t sink_rate; | ||
}; | ||
|
||
#endif /* __SOF_AUDIO_SRC_SRC_IPC_H__ */ |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,6 +37,9 @@ struct file_comp_lookup { | |
#define TB_NAME_SIZE 256 | ||
#define TB_MAX_CONFIG_COUNT 2 | ||
#define TB_MAX_CONFIG_NAME_SIZE 64 | ||
#define TB_MAX_VOLUME_SIZE 120 | ||
#define TB_MAX_DATA_SIZE 512 | ||
#define TB_MAX_CTLS 16 | ||
|
||
struct tb_mq_desc { | ||
char queue_name[TB_NAME_SIZE]; | ||
|
@@ -52,6 +55,27 @@ struct tb_config { | |
int channels; | ||
unsigned long format; | ||
}; | ||
|
||
struct tb_ctl { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we include the ABI header rather than duplicate ? I guess this comes from ALSA asoc.h ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure, this struct is a direct copy from SOF plugin. If we change, we should change both to be able to merge the sources later to a common library like tplg_parser. What do you think @ranj063 ? |
||
unsigned int module_id; | ||
unsigned int instance_id; | ||
unsigned int type; | ||
unsigned int volume_table[TB_MAX_VOLUME_SIZE]; | ||
unsigned int index; | ||
char data[TB_MAX_DATA_SIZE]; | ||
union { | ||
struct snd_soc_tplg_mixer_control mixer_ctl; | ||
struct snd_soc_tplg_enum_control enum_ctl; | ||
struct snd_soc_tplg_bytes_control bytes_ctl; | ||
}; | ||
}; | ||
|
||
struct tb_glb_state { | ||
char magic[8]; /* SOF_MAGIC */ | ||
uint32_t num_ctls; /* number of ctls */ | ||
size_t size; /* size of this structure in bytes */ | ||
struct tb_ctl *ctl; | ||
}; | ||
#endif | ||
|
||
/* | ||
|
@@ -114,6 +138,7 @@ struct testbench_prm { | |
struct tb_config config[TB_MAX_CONFIG_COUNT]; | ||
int num_configs; | ||
size_t period_size; | ||
struct tb_glb_state glb_ctx; | ||
#endif | ||
}; | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we have size at the start ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not the struct for config blobs. I only moved this structure to be separate from large src_common.h that caused a build problem.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, but this is an IPC header, so this should be for host/module configuration.