]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ASoC: topology: ABI - Use __le32 instead of __u32 in snd_soc_tplg_dapm_widget
authorVedang Patel <vedang.patel@intel.com>
Wed, 30 Sep 2015 09:30:05 +0000 (17:30 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 2 Oct 2015 16:59:48 +0000 (17:59 +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@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
include/uapi/sound/asoc.h

index 4bef63f5e1ff11400da5a60818475181f70e4527..88210a8e450f3ccf085cfe4a1eabd14987dcd00f 100644 (file)
@@ -356,11 +356,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