Skip to content

Commit

Permalink
Audio: basefw: Change attribute packed and aligned
Browse files Browse the repository at this point in the history
Signed-off-by: Grzegorz Bernat <grzegorzx.bernat@intel.com>
  • Loading branch information
gbernatxintel committed Apr 15, 2024
1 parent da25211 commit 7b8dc32
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/audio/base_fw.c
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ static int basefw_libraries_info_get(uint32_t *data_offset, char *data)
if (lib_id == 0)
desc = (struct sof_man_fw_desc *)IMR_BOOT_LDR_MANIFEST_BASE;
else
desc = lib_manager_get_library_module_desc(lib_id);
desc = (struct sof_man_fw_desc *)lib_manager_get_library_manifest(lib_id);
#else
return -EINVAL;
#endif
Expand Down
8 changes: 3 additions & 5 deletions src/include/ipc4/base_fw.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
#ifndef __SOF_IPC4_BASE_FW_H__
#define __SOF_IPC4_BASE_FW_H__

#include <rimage/sof/user/manifest.h>

/* Three clk src states :low power XTAL, low power ring
* and high power ring oscillator
*/
Expand Down Expand Up @@ -644,7 +642,7 @@ struct ipc4_library_props {
/* Base FW is always reported with id 0. */
uint32_t id;
/* Name of the library. */
uint8_t name[SOF_MAN_FW_HDR_FW_NAME_LEN];
uint8_t name[8];
/* Major version of the library. */
uint16_t major_version;
/* Minor version of the library. */
Expand All @@ -655,14 +653,14 @@ struct ipc4_library_props {
uint16_t build_version;
/* Number of modules packed into the library. */
uint32_t num_module_entries;
} __attribute__((packed, aligned(4)));
} __packed __aligned(4);

struct ipc4_libraries_info {
/* Specifies number of items in libraries array. */
uint32_t library_count;
/* Array of libraries properties. */
struct ipc4_library_props libraries[1];
} __attribute__((packed, aligned(4)));
} __packed __aligned(4);

struct ipc4_log_state_info {
/*
Expand Down

0 comments on commit 7b8dc32

Please sign in to comment.