Skip to content

Commit 9a4ab16

Browse files
committed
ALSA: ump: Don't update FB name for static blocks
When a device tries to update the FB name string even if its Endpoint is declared as static, we should skip it, just already done for the FB info update reply. Fixes: 37e0e14 ("ALSA: ump: Support UMP Endpoint and Function Block parsing") Cc: <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent 21451df commit 9a4ab16

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

sound/core/ump.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -806,6 +806,13 @@ static int ump_handle_fb_name_msg(struct snd_ump_endpoint *ump,
806806
if (!fb)
807807
return -ENODEV;
808808

809+
if (ump->parsed &&
810+
(ump->info.flags & SNDRV_UMP_EP_INFO_STATIC_BLOCKS)) {
811+
ump_dbg(ump, "Skipping static FB name update (blk#%d)\n",
812+
fb->info.block_id);
813+
return 0;
814+
}
815+
809816
ret = ump_append_string(ump, fb->info.name, sizeof(fb->info.name),
810817
buf->raw, 3);
811818
/* notify the FB name update to sequencer, too */

0 commit comments

Comments
 (0)