From: Takashi Iwai Date: Wed, 26 Jun 2024 14:53:17 +0000 (+0200) Subject: ump_msg: Fix the wrong snd_ump_msg_system_t argument in little-endian X-Git-Tag: v1.2.13~29 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=8734673c21cfa1da0d1fa2c83fb5d4328f7c1c59;p=alsa-lib.git ump_msg: Fix the wrong snd_ump_msg_system_t argument in little-endian 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 --- diff --git a/include/ump_msg.h b/include/ump_msg.h index 2defea6b..068f8860 100644 --- a/include/ump_msg.h +++ b/include/ump_msg.h @@ -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 */