mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
[ALSA] seq: set client name in snd_seq_create_kernel_client()
All users of snd_seq_create_kernel_client() have to set the client name anyway, so we can just pass the name as parameter. This relieves us from having to muck around with a struct snd_seq_client_info in these cases. Signed-off-by: Clemens Ladisch <[email protected]>
This commit is contained in:
parent
83e8ad6984
commit
7b6d92451a
12 changed files with 43 additions and 146 deletions
|
|
@ -75,7 +75,9 @@ struct snd_seq_port_callback {
|
|||
};
|
||||
|
||||
/* interface for kernel client */
|
||||
int snd_seq_create_kernel_client(struct snd_card *card, int client_index);
|
||||
int snd_seq_create_kernel_client(struct snd_card *card, int client_index,
|
||||
const char *name_fmt, ...)
|
||||
__attribute__ ((format (printf, 3, 4)));
|
||||
int snd_seq_delete_kernel_client(int client);
|
||||
int snd_seq_kernel_client_enqueue(int client, struct snd_seq_event *ev, int atomic, int hop);
|
||||
int snd_seq_kernel_client_dispatch(int client, struct snd_seq_event *ev, int atomic, int hop);
|
||||
|
|
|
|||
Loading…
Reference in a new issue