Skip to content

Commit

Permalink
audio: dai: fix the error reported by CI after enable inline
Browse files Browse the repository at this point in the history
after enable inline build option, CI build is reporting not
initialize this structure, init it to remove the error.

Signed-off-by: Baofeng Tian <baofeng.tian@intel.com>
  • Loading branch information
btian1 authored and kv2019i committed Aug 18, 2023
1 parent 05dcf1c commit 897f516
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/audio/dai-zephyr.c
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,8 @@ static int dai_verify_params(struct dai_data *dd, struct comp_dev *dev,
struct sof_ipc_stream_params hw_params;
int ret;

memset(&hw_params, 0, sizeof(hw_params));

ret = dai_common_get_hw_params(dd, dev, &hw_params, params->direction);
if (ret < 0) {
comp_err(dev, "dai_verify_params(): dai_verify_params failed ret %d", ret);
Expand Down

0 comments on commit 897f516

Please sign in to comment.