]> git.alsa-project.org Git - alsa-lib.git/commitdiff
ump_msg: Fix the wrong snd_ump_msg_system_t argument in little-endian
authorTakashi Iwai <tiwai@suse.de>
Wed, 26 Jun 2024 14:53:17 +0000 (16:53 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 26 Jun 2024 14:53:17 +0000 (16:53 +0200)
For the little-endian format, the parameters are stored incorrectly
in snd_ump_msg_system_t type.  Swap the both parameter positions to
correct to the right positions.

Fixes: 040356ecf06b ("ump: Add helpers to parse / set UMP packet data")
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/ump_msg.h

index 2defea6b16e9e2f66be1f02adb583929dd890666..068f88605230bd0d25a005d2cc58e3f95eb90794 100644 (file)
@@ -157,8 +157,8 @@ typedef struct snd_ump_msg_system {
        uint8_t parm1;          /**< First parameter */
        uint8_t parm2;          /**< Second parameter */
 #else
-       uint8_t parm1;          /**< First parameter */
        uint8_t parm2;          /**< Second parameter */
+       uint8_t parm1;          /**< First parameter */
        uint8_t status;         /**< Status */
        uint8_t group:4;        /**< UMP Group */
        uint8_t type:4;         /**< UMP packet type */