aplaymidi2: Use snd_ump_get_byte() helper

For simplifying code, use snd_ump_get_byte() to retrieve the meta text
data.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Takashi Iwai 2024-07-28 10:36:44 +02:00
parent 0188f93f02
commit e26aa680aa

View file

@ -362,7 +362,7 @@ static void show_text(const uint32_t *ump)
len = 0;
for (i = 0; i < 12 && len < (int)sizeof(textbuf); i++) {
textbuf[len] = fh->meta.data[i / 4] >> ((3 - (i % 4)) * 8);
textbuf[len] = snd_ump_get_byte(ump, 4 + i);
if (!textbuf[len])
break;
switch (textbuf[len]) {