From 8734673c21cfa1da0d1fa2c83fb5d4328f7c1c59 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Wed, 26 Jun 2024 16:53:17 +0200 Subject: [PATCH] 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 --- include/ump_msg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 2.47.1