SND_DEVICE_NEW

Section: ()
Updated: 06 October 2005
Index Return to Main Contents

 

NAME

snd_device_new - create an ALSA device component  

SYNOPSIS

"SYNOPSIS"

int snd_device_new (snd_card_t * card, snd_device_type_t type, void * device_data, snd_device_ops_t * ops);  

ARGUMENTS

card
the card instance
type
the device type, SNDRV_DEV_TYPE_XXX
device_data
the data pointer of this device
ops
the operator table
 

DESCRIPTION

Creates a new device component for the given data pointer. The device will be assigned to the card and managed together by the card.

The data pointer plays a role as the identifier, too, so the pointer address must be unique and unchanged.

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


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION

This document was created by man2html, using the manual pages.
Time: 07:07:28 GMT, October 06, 2005