|
126 | 126 | #define SOF_IPC_TRACE_DMA_POSITION SOF_CMD_TYPE(0x002) |
127 | 127 |
|
128 | 128 | /* Get message component id */ |
129 | | -#define SOF_IPC_MESSAGE_ID(x) (x & 0xffff) |
| 129 | +#define SOF_IPC_MESSAGE_ID(x) ((x) & 0xffff) |
130 | 130 |
|
131 | 131 | /* maximum message size for mailbox Tx/Rx */ |
132 | 132 | #define SOF_IPC_MSG_MAX_SIZE 128 |
@@ -240,7 +240,6 @@ struct sof_ipc_compound_hdr { |
240 | 240 | #define SOF_DAI_INTEL_SSP_QUIRK_PSPSRWFDFD (1 << 5) |
241 | 241 | /* here is the possibility to define others aux macros */ |
242 | 242 |
|
243 | | - |
244 | 243 | #define SOF_DAI_INTEL_SSP_FRAME_PULSE_WIDTH_MAX 38 |
245 | 244 |
|
246 | 245 | /** \brief Types of DAI */ |
@@ -347,13 +346,13 @@ struct sof_ipc_dai_dmic_params { |
347 | 346 | uint32_t pdmclk_max; /* Maximum microphone clock in Hz (min...N) */ |
348 | 347 | uint32_t fifo_fs_a; /* FIFO A sample rate in Hz (8000..96000) */ |
349 | 348 | uint32_t fifo_fs_b; /* FIFO B sample rate in Hz (8000..96000) */ |
350 | | - /* TODO: FIFO word lengths can be retrieved from SOF_DAI_FMT */ |
351 | 349 | uint16_t fifo_bits_a; /* FIFO A word length (16 or 32) */ |
352 | 350 | uint16_t fifo_bits_b; /* FIFO B word length (16 or 32) */ |
353 | 351 | uint16_t duty_min; /* Min. mic clock duty cycle in % (20..80) */ |
354 | 352 | uint16_t duty_max; /* Max. mic clock duty cycle in % (min..80) */ |
355 | | - uint32_t num_pdm_active; /* Number of active controllers */ |
356 | | - struct sof_ipc_dai_dmic_pdm_ctrl pdm[]; |
| 353 | + uint32_t num_pdm_active; /* Number of active pdm controllers */ |
| 354 | + /* variable number of pdm controller config */ |
| 355 | + struct sof_ipc_dai_dmic_pdm_ctrl pdm[0]; |
357 | 356 | } __attribute__((packed)); |
358 | 357 |
|
359 | 358 | /* general purpose DAI configuration */ |
|
0 commit comments