Skip to content

Commit fd85a26

Browse files
committed
ipc: Refine some IPC data structures to make its size 4bytes aligned
Host communicates with dsp by sending or receiving data in memory windows which are in PCI MMIO space. Some platforms like ICL require the transaction size is 4bytes aligned. So it is better to make the data size 4bytes aligned to make it work on all platforms. Signed-off-by: Rander Wang <rander.wang@linux.intel.com>
1 parent 7a2f8c2 commit fd85a26

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)