mirror of https://github.com/thesofproject/sof.git
Tools: Testbench: Change struct of struct zeros initialize
The simple {0} is not accepted by xt-xcc compiler. It gives "warning: missing braces around initializer". Adding sufficient number of braces to match the struct definition fixes the build. Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
This commit is contained in:
parent
8a48c78704
commit
f73055aa71
|
@ -177,7 +177,7 @@ int tb_pipeline_params(struct ipc *ipc, struct pipeline *p,
|
||||||
{
|
{
|
||||||
struct ipc_comp_dev *pcm_dev;
|
struct ipc_comp_dev *pcm_dev;
|
||||||
struct comp_dev *cd;
|
struct comp_dev *cd;
|
||||||
struct sof_ipc_pcm_params params = {0};
|
struct sof_ipc_pcm_params params = {{0}};
|
||||||
char message[DEBUG_MSG_LEN];
|
char message[DEBUG_MSG_LEN];
|
||||||
int fs_period;
|
int fs_period;
|
||||||
int period;
|
int period;
|
||||||
|
|
|
@ -142,7 +142,7 @@ int tplg_register_asrc(struct tplg_context *ctx)
|
||||||
int tplg_register_buffer(struct tplg_context *ctx)
|
int tplg_register_buffer(struct tplg_context *ctx)
|
||||||
{
|
{
|
||||||
struct sof *sof = ctx->sof;
|
struct sof *sof = ctx->sof;
|
||||||
struct sof_ipc_buffer buffer = {0};
|
struct sof_ipc_buffer buffer = {{{0}}};
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
ret = tplg_create_buffer(ctx, &buffer);
|
ret = tplg_create_buffer(ctx, &buffer);
|
||||||
|
@ -256,7 +256,7 @@ int tplg_register_pga(struct tplg_context *ctx)
|
||||||
int tplg_register_pipeline(struct tplg_context *ctx)
|
int tplg_register_pipeline(struct tplg_context *ctx)
|
||||||
{
|
{
|
||||||
struct sof *sof = ctx->sof;
|
struct sof *sof = ctx->sof;
|
||||||
struct sof_ipc_pipe_new pipeline = {0};
|
struct sof_ipc_pipe_new pipeline = {{0}};
|
||||||
FILE *file = ctx->file;
|
FILE *file = ctx->file;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
@ -680,7 +680,7 @@ static int load_fileread(struct tplg_context *ctx, int dir)
|
||||||
struct sof *sof = ctx->sof;
|
struct sof *sof = ctx->sof;
|
||||||
struct testbench_prm *tp = ctx->tp;
|
struct testbench_prm *tp = ctx->tp;
|
||||||
FILE *file = ctx->file;
|
FILE *file = ctx->file;
|
||||||
struct sof_ipc_comp_file fileread = {0};
|
struct sof_ipc_comp_file fileread = {{{0}}};
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
fileread.config.frame_fmt = find_format(tp->bits_in);
|
fileread.config.frame_fmt = find_format(tp->bits_in);
|
||||||
|
@ -730,7 +730,7 @@ static int load_filewrite(struct tplg_context *ctx, int dir)
|
||||||
struct sof *sof = ctx->sof;
|
struct sof *sof = ctx->sof;
|
||||||
struct testbench_prm *tp = ctx->tp;
|
struct testbench_prm *tp = ctx->tp;
|
||||||
FILE *file = ctx->file;
|
FILE *file = ctx->file;
|
||||||
struct sof_ipc_comp_file filewrite = {0};
|
struct sof_ipc_comp_file filewrite = {{{0}}};
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
ret = tplg_load_filewrite(ctx, &filewrite);
|
ret = tplg_load_filewrite(ctx, &filewrite);
|
||||||
|
|
Loading…
Reference in New Issue