summaryrefslogtreecommitdiff
path: root/sound/usb
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2024-08-07 11:22:59 +0200
committerTakashi Iwai <tiwai@suse.de>2024-08-07 11:31:38 +0200
commitebaa86c0bddd2c47c516bf2096b17c0bed71d914 (patch)
tree0322b60bcac4162573cdf2529c9e9ecb03c9454c /sound/usb
parentac3a9185bd5f547cb16ef1388e8786ad5a6e8858 (diff)
ALSA: usb-audio: Update UMP group attributes for GTB blocks, too
When a FB is created from a GTB instead of UMP FB Info inquiry, we missed the update of the corresponding UMP Group attributes. Export the call of updater and let it be called from the USB driver. Fixes: 0642a3c5cacc ("ALSA: ump: Update substream name from assigned FB names") Signed-off-by: Takashi Iwai <tiwai@suse.de> Link: https://patch.msgid.link/20240807092303.1935-5-tiwai@suse.de
Diffstat (limited to 'sound/usb')
-rw-r--r--sound/usb/midi2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/usb/midi2.c b/sound/usb/midi2.c
index 4fb43d9743d7..692dfc3c182f 100644
--- a/sound/usb/midi2.c
+++ b/sound/usb/midi2.c
@@ -877,6 +877,8 @@ static int create_gtb_block(struct snd_usb_midi2_ump *rmidi, int dir, int blk)
}
}
+ snd_ump_update_group_attrs(rmidi->ump);
+
usb_audio_dbg(umidi->chip,
"Created a UMP block %d from GTB, name=%s, flags=0x%x\n",
blk, fb->info.name, fb->info.flags);