]> git.alsa-project.org Git - alsa-lib.git/commitdiff
topology: ABI - Use __le32 instead of __u32 in snd_soc_tplg_dapm_widget
authorVedang Patel <vedang.patel@intel.com>
Thu, 5 Nov 2015 12:48:54 +0000 (20:48 +0800)
committerJaroslav Kysela <perex@perex.cz>
Thu, 5 Nov 2015 13:53:24 +0000 (14:53 +0100)
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 <vedang.patel@intel.com>
Signed-off-by: Mengdong Lin <mengdong.lin@linux.intel.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
include/sound/asoc.h

index b08ff3a232d1762ac9febcf63f9379b7fe23d646..acff6ec45ecd283b377a1107db44a937bd425518 100644 (file)
@@ -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