Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
hwdep.c File Reference
#include <linux/major.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/time.h>
#include <linux/mutex.h>
#include <linux/module.h>
#include <sound/core.h>
#include <sound/control.h>
#include <sound/minors.h>
#include <sound/hwdep.h>
#include <sound/info.h>

Go to the source code of this file.

Macros

#define snd_hwdep_ioctl_compat   NULL
 
#define snd_hwdep_proc_init()
 
#define snd_hwdep_proc_done()
 

Functions

 MODULE_AUTHOR ("Jaroslav Kysela <[email protected]>")
 
 MODULE_DESCRIPTION ("Hardware dependent layer")
 
 MODULE_LICENSE ("GPL")
 
int snd_hwdep_new (struct snd_card *card, char *id, int device, struct snd_hwdep **rhwdep)
 

Macro Definition Documentation

#define snd_hwdep_ioctl_compat   NULL

Definition at line 327 of file hwdep.c.

#define snd_hwdep_proc_done ( )

Definition at line 521 of file hwdep.c.

#define snd_hwdep_proc_init ( )

Definition at line 520 of file hwdep.c.

Function Documentation

MODULE_AUTHOR ( "Jaroslav Kysela <[email protected]>"  )
MODULE_DESCRIPTION ( "Hardware dependent layer"  )
MODULE_LICENSE ( "GPL"  )
int snd_hwdep_new ( struct snd_card card,
char id,
int  device,
struct snd_hwdep **  rhwdep 
)

snd_hwdep_new - create a new hwdep instance : the card instance : the id string : the device index (zero-based) : the pointer to store the new hwdep instance

Creates a new hwdep instance with the given index on the card. The callbacks (hwdep->ops) must be set on the returned instance after this call manually by the caller.

Returns zero if successful, or a negative error code on failure.

Definition at line 361 of file hwdep.c.