]> git.ipfire.org Git - thirdparty/linux.git/commit
ALSA: seq: Skip notifications unless subscribed to announce port
authorTakashi Iwai <tiwai@suse.de>
Thu, 28 Nov 2024 07:48:00 +0000 (08:48 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 2 Dec 2024 09:25:31 +0000 (10:25 +0100)
commitec42af4a1fe383af4a4fbbe2bc0e9cc1e8e65620
tree99f394a6df0a7e062c861f6b238dfcc1d908184b
parentb8e49e24cdba27a0810a0988e810e2c68f2033cb
ALSA: seq: Skip notifications unless subscribed to announce port

The notification via system announce port isn't a lightweight task,
hence it'd be better to skip if there is no subscription is done for
the announce port.  Implement a simple counter for checking that by
hooking the subscribe and unsubscribe callbacks.

Link: https://patch.msgid.link/20241128074801.32253-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/seq/seq_system.c