Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
seq_clientmgr.c File Reference
#include <linux/init.h>
#include <linux/export.h>
#include <linux/slab.h>
#include <sound/core.h>
#include <sound/minors.h>
#include <linux/kmod.h>
#include <sound/seq_kernel.h>
#include "seq_clientmgr.h"
#include "seq_memory.h"
#include "seq_queue.h"
#include "seq_timer.h"
#include "seq_info.h"
#include "seq_system.h"
#include <sound/seq_device.h>

Go to the source code of this file.

Data Structures

struct  seq_ioctl_table
 

Macros

#define SNDRV_SEQ_GLOBAL_CLIENTS   16
 
#define SNDRV_SEQ_CLIENTS_PER_CARD   4
 
#define SNDRV_SEQ_DYNAMIC_CLIENTS_BEGIN   128
 
#define SNDRV_SEQ_LFLG_INPUT   0x0001
 
#define SNDRV_SEQ_LFLG_OUTPUT   0x0002
 
#define SNDRV_SEQ_LFLG_OPEN   (SNDRV_SEQ_LFLG_INPUT|SNDRV_SEQ_LFLG_OUTPUT)
 
#define PERM_RD   (SNDRV_SEQ_PORT_CAP_READ|SNDRV_SEQ_PORT_CAP_SUBS_READ)
 
#define PERM_WR   (SNDRV_SEQ_PORT_CAP_WRITE|SNDRV_SEQ_PORT_CAP_SUBS_WRITE)
 
#define snd_seq_ioctl_compat   NULL
 

Functions

struct snd_seq_clientsnd_seq_client_use_ptr (int clientid)
 
int __init client_init_data (void)
 
int snd_seq_dispatch_event (struct snd_seq_event_cell *cell, int atomic, int hop)
 
int snd_seq_client_notify_subscription (int client, int port, struct snd_seq_port_subscribe *info, int evtype)
 
int snd_seq_set_queue_tempo (int client, struct snd_seq_queue_tempo *tempo)
 
 EXPORT_SYMBOL (snd_seq_set_queue_tempo)
 
int snd_seq_create_kernel_client (struct snd_card *card, int client_index, const char *name_fmt,...)
 
 EXPORT_SYMBOL (snd_seq_create_kernel_client)
 
int snd_seq_delete_kernel_client (int client)
 
 EXPORT_SYMBOL (snd_seq_delete_kernel_client)
 
int snd_seq_kernel_client_enqueue (int client, struct snd_seq_event *ev, int atomic, int hop)
 
 EXPORT_SYMBOL (snd_seq_kernel_client_enqueue)
 
int snd_seq_kernel_client_enqueue_blocking (int client, struct snd_seq_event *ev, struct file *file, int atomic, int hop)
 
 EXPORT_SYMBOL (snd_seq_kernel_client_enqueue_blocking)
 
int snd_seq_kernel_client_dispatch (int client, struct snd_seq_event *ev, int atomic, int hop)
 
 EXPORT_SYMBOL (snd_seq_kernel_client_dispatch)
 
int snd_seq_kernel_client_ctl (int clientid, unsigned int cmd, void *arg)
 
 EXPORT_SYMBOL (snd_seq_kernel_client_ctl)
 
int snd_seq_kernel_client_write_poll (int clientid, struct file *file, poll_table *wait)
 
 EXPORT_SYMBOL (snd_seq_kernel_client_write_poll)
 
int __init snd_sequencer_device_init (void)
 
void __exit snd_sequencer_device_done (void)
 

Macro Definition Documentation

Definition at line 1373 of file seq_clientmgr.c.

Definition at line 1374 of file seq_clientmgr.c.

#define snd_seq_ioctl_compat   NULL

Definition at line 2218 of file seq_clientmgr.c.

#define SNDRV_SEQ_CLIENTS_PER_CARD   4

Definition at line 60 of file seq_clientmgr.c.

#define SNDRV_SEQ_DYNAMIC_CLIENTS_BEGIN   128

Definition at line 62 of file seq_clientmgr.c.

#define SNDRV_SEQ_GLOBAL_CLIENTS   16

Definition at line 58 of file seq_clientmgr.c.

#define SNDRV_SEQ_LFLG_INPUT   0x0001

Definition at line 64 of file seq_clientmgr.c.

#define SNDRV_SEQ_LFLG_OPEN   (SNDRV_SEQ_LFLG_INPUT|SNDRV_SEQ_LFLG_OUTPUT)

Definition at line 66 of file seq_clientmgr.c.

#define SNDRV_SEQ_LFLG_OUTPUT   0x0002

Definition at line 65 of file seq_clientmgr.c.

Function Documentation

int __init client_init_data ( void  )

Definition at line 210 of file seq_clientmgr.c.

EXPORT_SYMBOL ( snd_seq_set_queue_tempo  )
EXPORT_SYMBOL ( snd_seq_create_kernel_client  )
EXPORT_SYMBOL ( snd_seq_delete_kernel_client  )
EXPORT_SYMBOL ( snd_seq_kernel_client_enqueue  )
EXPORT_SYMBOL ( snd_seq_kernel_client_dispatch  )
EXPORT_SYMBOL ( snd_seq_kernel_client_ctl  )
EXPORT_SYMBOL ( snd_seq_kernel_client_write_poll  )
int snd_seq_client_notify_subscription ( int  client,
int  port,
struct snd_seq_port_subscribe info,
int  evtype 
)

Definition at line 1410 of file seq_clientmgr.c.

struct snd_seq_client* snd_seq_client_use_ptr ( int  clientid)
read

Definition at line 133 of file seq_clientmgr.c.

int snd_seq_create_kernel_client ( struct snd_card card,
int  client_index,
const char name_fmt,
  ... 
)

Definition at line 2225 of file seq_clientmgr.c.

int snd_seq_delete_kernel_client ( int  client)

Definition at line 2277 of file seq_clientmgr.c.

int snd_seq_dispatch_event ( struct snd_seq_event_cell cell,
int  atomic,
int  hop 
)

Definition at line 831 of file seq_clientmgr.c.

int snd_seq_kernel_client_ctl ( int  clientid,
unsigned int  cmd,
void arg 
)

Definition at line 2401 of file seq_clientmgr.c.

int snd_seq_kernel_client_dispatch ( int  client,
struct snd_seq_event ev,
int  atomic,
int  hop 
)

Definition at line 2366 of file seq_clientmgr.c.

int snd_seq_kernel_client_enqueue ( int  client,
struct snd_seq_event ev,
int  atomic,
int  hop 
)

Definition at line 2337 of file seq_clientmgr.c.

int snd_seq_kernel_client_enqueue_blocking ( int  client,
struct snd_seq_event ev,
struct file file,
int  atomic,
int  hop 
)

Definition at line 2350 of file seq_clientmgr.c.

int snd_seq_kernel_client_write_poll ( int  clientid,
struct file file,
poll_table wait 
)

Definition at line 2419 of file seq_clientmgr.c.

int snd_seq_set_queue_tempo ( int  client,
struct snd_seq_queue_tempo tempo 
)

Definition at line 1713 of file seq_clientmgr.c.

void __exit snd_sequencer_device_done ( void  )

Definition at line 2588 of file seq_clientmgr.c.

int __init snd_sequencer_device_init ( void  )

Definition at line 2565 of file seq_clientmgr.c.