From: Vedang Patel Date: Thu, 5 Nov 2015 12:48:54 +0000 (+0800) Subject: topology: ABI - Use __le32 instead of __u32 in snd_soc_tplg_dapm_widget X-Git-Tag: v1.1.0~7 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=f934c3de4b2299770276fabe06fb2df2d9f79e5e;p=alsa-lib.git topology: ABI - Use __le32 instead of __u32 in snd_soc_tplg_dapm_widget This fixes the endianness of the ABI parameters in the struct. The field 'num_kcontrols' is also extended from 16 bits to 32 bits. Signed-off-by: Vedang Patel Signed-off-by: Mengdong Lin Signed-off-by: Jaroslav Kysela --- diff --git a/include/sound/asoc.h b/include/sound/asoc.h index b08ff3a2..acff6ec4 100644 --- a/include/sound/asoc.h +++ b/include/sound/asoc.h @@ -347,11 +347,11 @@ struct snd_soc_tplg_dapm_widget { __le32 shift; /* bits to shift */ __le32 mask; /* non-shifted mask */ __le32 subseq; /* sort within widget type */ - __u32 invert; /* invert the power bit */ - __u32 ignore_suspend; /* kept enabled over suspend */ - __u16 event_flags; - __u16 event_type; - __u16 num_kcontrols; + __le32 invert; /* invert the power bit */ + __le32 ignore_suspend; /* kept enabled over suspend */ + __le16 event_flags; + __le16 event_type; + __le32 num_kcontrols; struct snd_soc_tplg_private priv; /* * kcontrols that relate to this widget