Skip to content

Commit

Permalink
ump_msg: Fix the wrong snd_ump_msg_system_t argument in little-endian
Browse files Browse the repository at this point in the history
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: 040356e ("ump: Add helpers to parse / set UMP packet data")
Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
tiwai committed Jun 26, 2024
1 parent 32e2c8d commit 8734673
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/ump_msg.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 8734673

Please sign in to comment.