Repository navigation
Commit fe3ea09
committed
ipc4: use fixed-width types in ipc4_audio_format
struct ipc4_audio_format used bare enum members. On ARM EABI targets (e.g
i.MX95 Cortex-M7) the toolchain defaults to -fshort-enums, which shrinks the
enum-typed members. This makes host-supplied channels_count/valid_bit_depth
be on the wrong offset.
Fix this by using fixed uint32_t type instead of enums. Note that the
same struct on the Linux kernel side uses uint32_t so this patch
also aligns ipc4_audio_format structs on FW side / Host side.
Signed-off-by; Daniel Baluta <daniel.baluta@nxp.com>1 parent 73c674a commit fe3ea09
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
119 | | - | |
| 118 | + | |
| 119 | + | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
| 125 | + | |
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| |||
0 commit comments