hc
2024-05-16 8d2a02b24d66aa359e83eebc1ed3c0f85367a1cb
kernel/sound/core/seq/seq_clientmgr.h
....@@ -1,22 +1,7 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * ALSA sequencer Client Manager
34 * Copyright (c) 1998-1999 by Frank van de Pol <fvdpol@coil.demon.nl>
4
- *
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License as published by
8
- * the Free Software Foundation; either version 2 of the License, or
9
- * (at your option) any later version.
10
- *
11
- * This program is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- * GNU General Public License for more details.
15
- *
16
- * You should have received a copy of the GNU General Public License
17
- * along with this program; if not, write to the Free Software
18
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
- *
205 */
216 #ifndef __SND_SEQ_CLIENTMGR_H
227 #define __SND_SEQ_CLIENTMGR_H
....@@ -93,14 +78,14 @@
9378 /* dispatch event to client(s) */
9479 int snd_seq_dispatch_event(struct snd_seq_event_cell *cell, int atomic, int hop);
9580
96
-/* exported to other modules */
97
-int snd_seq_kernel_client_enqueue(int client, struct snd_seq_event *ev, int atomic, int hop);
98
-int snd_seq_kernel_client_enqueue_blocking(int client, struct snd_seq_event * ev,
99
- struct file *file, int atomic, int hop);
10081 int snd_seq_kernel_client_write_poll(int clientid, struct file *file, poll_table *wait);
10182 int snd_seq_client_notify_subscription(int client, int port,
10283 struct snd_seq_port_subscribe *info, int evtype);
10384
85
+/* only for OSS sequencer */
86
+bool snd_seq_client_ioctl_lock(int clientid);
87
+void snd_seq_client_ioctl_unlock(int clientid);
88
+
10489 extern int seq_client_load[15];
10590
10691 #endif