]> git.hungrycats.org Git - linux/commit
ALSA: seq: ump: Skip useless ports for static blocks
authorTakashi Iwai <tiwai@suse.de>
Wed, 17 Jul 2024 08:33:01 +0000 (10:33 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 27 Jul 2024 09:36:19 +0000 (11:36 +0200)
commit93a77374e2ae24c2d195f84f5edf239b927f87e9
treeb97404ed653c371f0d4f11e6a8c14de2b3ab6645
parent56eb8b96126e995fc21e92fd42c5474633a10ca4
ALSA: seq: ump: Skip useless ports for static blocks

commit 3bfd7c0ba184de99e9f5083b29e5308f30767265 upstream.

When the UMP Endpoint is configured with static blocks, the block
configuration will never change, hence the unused ports will be
unchanged as well.  Creating sequencer ports for those unused ports
is simply useless, and it might be rather confusing for users.
The idea behind the inactive ports was for allowing connections
from/to ports that can become usable later, but this will never
happen for inactive groups in static blocks.

Let's change the sequencer UMP binding to skip those unused ports when
the UMP EP is with static blocks.

Fixes: 81fd444aa371 ("ALSA: seq: Bind UMP device")
Cc: <stable@vger.kernel.org>
Link: https://patch.msgid.link/20240717083322.25892-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/core/seq/seq_ump_client.c