Skip to content

Commit ff9dd23

Browse files
committed
ASoC: SOF: 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 <[email protected]>
1 parent 9fc79c4 commit ff9dd23

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/uapi/sound/sof-ipc.h

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

257258
/* DMIC Configuration Request - SOF_IPC_DAI_DMIC_CONFIG */
@@ -765,6 +766,7 @@ struct sof_ipc_fw_version {
765766
uint8_t date[12];
766767
uint8_t time[10];
767768
uint8_t tag[6];
769+
uint8_t pad[2]; /* Make sure the total size is 4 bytes aligned */
768770
} __attribute__((packed));
769771

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

0 commit comments

Comments
 (0)