Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions
hwdep.h File Reference
#include <sound/asound.h>
#include <linux/poll.h>

Go to the source code of this file.

Data Structures

struct  snd_hwdep_ops
 
struct  snd_hwdep
 

Functions

int snd_hwdep_new (struct snd_card *card, char *id, int device, struct snd_hwdep **rhwdep)
 

Function Documentation

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.