Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: 37e0e14128e0 ("ALSA: ump: Support UMP Endpoint and Function Block parsing")
Cc: <stable@vger.kernel.org>
Link: https://patch.msgid.link/20240722135929.8612-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>

+7
+7
sound/core/ump.c
··· 806 806 if (!fb) 807 807 return -ENODEV; 808 808 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 + 809 816 ret = ump_append_string(ump, fb->info.name, sizeof(fb->info.name), 810 817 buf->raw, 3); 811 818 /* notify the FB name update to sequencer, too */