Skip to content

Commit e902549

Browse files
authored
Merge pull request #139 from RanderWang/ipc_4bytes
ipc: Refine some IPC data structures to make its size 4bytes aligned
2 parents 6088b7b + fd85a26 commit e902549

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/include/uapi/ipc.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,7 @@ struct sof_ipc_dai_dmic_pdm_ctrl {
298298
uint16_t polarity_mic_b; /* Optionally invert mic B signal (0 or 1) */
299299
uint16_t clk_edge; /* Optionally swap data clock edge (0 or 1) */
300300
uint16_t skew; /* Adjust PDM data sampling vs. clock (0..15) */
301+
uint16_t pad; /* Make sure the total size is 4 bytes aligned */
301302
} __attribute__((packed));
302303

303304
/* This struct contains the global settings for all 2ch PDM controllers. The
@@ -832,6 +833,7 @@ struct sof_ipc_fw_version {
832833
uint8_t date[12];
833834
uint8_t time[10];
834835
uint8_t tag[6];
836+
uint8_t pad[2]; /* Make sure the total size is 4 bytes aligned */
835837
} __attribute__((packed));
836838

837839
/* FW ready Message - sent by firmware when boot has completed */

0 commit comments

Comments
 (0)