Skip to content

Commit 174a6df

Browse files
committed
ALSA: seq: ump: Notify port changes to system port
For allowing applications to track the FB active changes, this patch adds the notification from the system port at each time a FB change is handled and the active flag or re-grouping happens. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent 4a16a3a commit 174a6df

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

sound/core/seq/seq_system.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ void snd_seq_system_broadcast(int client, int port, int type)
8585
ev.type = type;
8686
snd_seq_kernel_client_dispatch(sysclient, &ev, 0, 0);
8787
}
88+
EXPORT_SYMBOL_GPL(snd_seq_system_broadcast);
8889

8990
/* entry points for broadcasting system events */
9091
int snd_seq_system_notify(int client, int port, struct snd_seq_event *ev)

sound/core/seq/seq_ump_client.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include <sound/seq_kernel.h>
1414
#include <sound/seq_device.h>
1515
#include "seq_clientmgr.h"
16+
#include "seq_system.h"
1617

1718
struct seq_ump_client;
1819
struct seq_ump_group;
@@ -273,6 +274,8 @@ static void update_port_infos(struct seq_ump_client *client)
273274
new);
274275
if (err < 0)
275276
goto error;
277+
/* notify to system port */
278+
snd_seq_system_client_ev_port_change(client->seq_client, i);
276279
}
277280
error:
278281
kfree(new);

0 commit comments

Comments
 (0)