snd_hwdep_new

Langue: en

Autres versions - même langue

Version: June 2009 (debian - 07/07/09)

Section: 9 (Appels noyau Linux)

NAME

snd_hwdep_new - create a new hwdep instance

SYNOPSIS

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

ARGUMENTS

card

the card instance

id

the id string

device

the device index (zero-based)

rhwdep

the pointer to store the new hwdep instance

DESCRIPTION

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.