Skip to content

Commit 6800717

Browse files
committed
fixup! ASoC: apple: aop: Ensure all fields are aligned
Signed-off-by: Janne Grunau <j@jannau.net>
1 parent ccd2cd2 commit 6800717

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

sound/soc/apple/aop_audio.rs

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,9 +221,16 @@ struct AudioSetDeviceProp<T> {
221221
// conflicts ith pin_init. Instead just ensure that it has the same size as if
222222
// it where packed.
223223
static_assert!(mem::size_of::<AudioSetDeviceProp<PDMConfig>>() == 52 + mem::size_of::<PDMConfig>());
224-
static_assert!(mem::size_of::<AudioSetDeviceProp<DecimatorConfig>>() == 52 + mem::size_of::<DecimatorConfig>());
225-
static_assert!(mem::size_of::<AudioSetDeviceProp<LpaiChannelConfig>>() == 52 + mem::size_of::<LpaiChannelConfig>());
226-
static_assert!(mem::size_of::<AudioSetDeviceProp<PowerSetting>>() == 52 + mem::size_of::<PowerSetting>());
224+
static_assert!(
225+
mem::size_of::<AudioSetDeviceProp<DecimatorConfig>>() == 52 + mem::size_of::<DecimatorConfig>()
226+
);
227+
static_assert!(
228+
mem::size_of::<AudioSetDeviceProp<LpaiChannelConfig>>()
229+
== 52 + mem::size_of::<LpaiChannelConfig>()
230+
);
231+
static_assert!(
232+
mem::size_of::<AudioSetDeviceProp<PowerSetting>>() == 52 + mem::size_of::<PowerSetting>()
233+
);
227234

228235
impl<T: Default> AudioSetDeviceProp<T> {
229236
fn new(dev_id: u32, modifier: u32, data: T) -> AudioSetDeviceProp<T> {

0 commit comments

Comments
 (0)